Class LARightStore

  • All Implemented Interfaces:
    NSObject

    public class LARightStore
    extends NSObject
    Persistent storage for @c LARight instances. API-Since: 16.0
    • Constructor Detail

      • LARightStore

        protected LARightStore​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static LARightStore allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • removeAllRightsWithCompletion

        public void removeAllRightsWithCompletion​(@NotNull
                                                  @NotNull LARightStore.Block_removeAllRightsWithCompletion handler)
        Removes all rights stored by the client
        Parameters:
        handler - Completion handler with an error on failure.
      • removeRightCompletion

        public void removeRightCompletion​(@NotNull
                                          @NotNull LAPersistedRight right,
                                          @NotNull
                                          @NotNull LARightStore.Block_removeRightCompletion handler)
        Removes a right from the persistent storage along with its associated resources.
        Parameters:
        right -
        handler - Completion handler with an error on failure.
      • removeRightForIdentifierCompletion

        public void removeRightForIdentifierCompletion​(@NotNull
                                                       @NotNull java.lang.String identifier,
                                                       @NotNull
                                                       @NotNull LARightStore.Block_removeRightForIdentifierCompletion handler)
        Removes right with provided identifier from persistant storage.
        Parameters:
        identifier - Identifier of @c LAPersistedRight instance to remove.
        handler - Completion handler with an error on failure.
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • rightForIdentifierCompletion

        public void rightForIdentifierCompletion​(@NotNull
                                                 @NotNull java.lang.String identifier,
                                                 @NotNull
                                                 @NotNull LARightStore.Block_rightForIdentifierCompletion handler)
        Fetches a right stored under the given identifier.
        Parameters:
        identifier - Identifier associated with a previously stored right.
        handler - Completion handler with the fetched right or an error on failure.
      • saveRightIdentifierCompletion

        public void saveRightIdentifierCompletion​(@NotNull
                                                  @NotNull LARight right,
                                                  @NotNull
                                                  @NotNull java.lang.String identifier,
                                                  @NotNull
                                                  @NotNull LARightStore.Block_saveRightIdentifierCompletion handler)
        Persists a right for later usage.
        Parameters:
        right -
        identifier - Identifier to be associated with the right. Useful for later retrieval.
        handler - Completion handler with the persisted right or an error on failure.
      • saveRightIdentifierSecretCompletion

        public void saveRightIdentifierSecretCompletion​(@NotNull
                                                        @NotNull LARight right,
                                                        @NotNull
                                                        @NotNull java.lang.String identifier,
                                                        @NotNull
                                                        @NotNull NSData secret,
                                                        @NotNull
                                                        @NotNull LARightStore.Block_saveRightIdentifierSecretCompletion handler)
        Persists a right for later usage.
        Parameters:
        right -
        identifier - Identifier to be associated with the right. Useful for later retrieval.
        secret - Secret data to be associated with the provided right.
        handler - Completion handler with the persisted right or an error on failure.
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • sharedStore

        @NotNull
        public static @NotNull LARightStore sharedStore()
        Shared instance of @c LARightStore.
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • version_static

        public static long version_static()
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.