Class AuthorizationResourceImpl

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String DOMAIN_PART_SUFFIX  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String ofInternalStream​(java.lang.String scopeName, @NonNull java.lang.String streamName)
      Creates a resource representation for use in authorization of actions related to the specified internal stream.
      java.lang.String ofKeyValueTableInScope​(java.lang.String scopeName, java.lang.String keyValueTableName)
      Creates a resource representation for use in authorization of actions pertaining to the specified KeyValueTable within the specified scope.
      java.lang.String ofKeyValueTablesInScope​(java.lang.String scopeName)
      Creates a resource representation for use in authorization of actions pertaining to the collection of Key-Value tables within the specified scope.
      java.lang.String ofReaderGroupInScope​(java.lang.String scopeName, java.lang.String readerGroupName)
      Creates a resource representation for use in authorization of actions pertaining to the specified reader group within the specified scope.
      java.lang.String ofReaderGroupsInScope​(java.lang.String scopeName)
      Creates a resource representation for use in authorization of actions pertaining to the collection of reader groups within the specified scope.
      java.lang.String ofScope​(java.lang.String scopeName)
      Creates a resource representation for use in authorization of actions pertaining to the specified scope.
      java.lang.String ofScopes()
      Creates a resource representation for use in authorization of actions pertaining to the collection of scopes in the system.
      java.lang.String ofStreamInScope​(java.lang.String scopeName, java.lang.String streamName)
      Creates a resource representation for use in authorization of actions pertaining to the specified stream within the specified scope.
      java.lang.String ofStreamsInScope​(java.lang.String scopeName)
      Creates a resource representation for use in authorization of actions pertaining to the collection of streams within the specified scope.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DOMAIN_PART_SUFFIX

        public static final java.lang.String DOMAIN_PART_SUFFIX
        See Also:
        Constant Field Values
    • Constructor Detail

      • AuthorizationResourceImpl

        public AuthorizationResourceImpl()
    • Method Detail

      • ofScopes

        public java.lang.String ofScopes()
        Description copied from interface: AuthorizationResource
        Creates a resource representation for use in authorization of actions pertaining to the collection of scopes in the system.
        Specified by:
        ofScopes in interface AuthorizationResource
        Returns:
        a string representing the collections of scopes in the system
      • ofScope

        public java.lang.String ofScope​(java.lang.String scopeName)
        Description copied from interface: AuthorizationResource
        Creates a resource representation for use in authorization of actions pertaining to the specified scope.
        Specified by:
        ofScope in interface AuthorizationResource
        Parameters:
        scopeName - the name of the scope
        Returns:
        a string representing the scope with the specified name
      • ofStreamsInScope

        public java.lang.String ofStreamsInScope​(java.lang.String scopeName)
        Description copied from interface: AuthorizationResource
        Creates a resource representation for use in authorization of actions pertaining to the collection of streams within the specified scope.
        Specified by:
        ofStreamsInScope in interface AuthorizationResource
        Parameters:
        scopeName - the name of the scope
        Returns:
        a string representing the collection of streams under the scope with the specified name
      • ofStreamInScope

        public java.lang.String ofStreamInScope​(java.lang.String scopeName,
                                                java.lang.String streamName)
        Description copied from interface: AuthorizationResource
        Creates a resource representation for use in authorization of actions pertaining to the specified stream within the specified scope.
        Specified by:
        ofStreamInScope in interface AuthorizationResource
        Parameters:
        scopeName - the name of the scope
        streamName - the name of the stream
        Returns:
        a string representing the specified stream within the specified scope
      • ofReaderGroupsInScope

        public java.lang.String ofReaderGroupsInScope​(java.lang.String scopeName)
        Description copied from interface: AuthorizationResource
        Creates a resource representation for use in authorization of actions pertaining to the collection of reader groups within the specified scope.
        Specified by:
        ofReaderGroupsInScope in interface AuthorizationResource
        Parameters:
        scopeName - the name of the scope
        Returns:
        a string representing the specified the collection of reader groups
      • ofReaderGroupInScope

        public java.lang.String ofReaderGroupInScope​(java.lang.String scopeName,
                                                     java.lang.String readerGroupName)
        Description copied from interface: AuthorizationResource
        Creates a resource representation for use in authorization of actions pertaining to the specified reader group within the specified scope.
        Specified by:
        ofReaderGroupInScope in interface AuthorizationResource
        Parameters:
        scopeName - the name of the scope
        readerGroupName - the name of the reader group
        Returns:
        a string representing the specified reader group
      • ofKeyValueTablesInScope

        public java.lang.String ofKeyValueTablesInScope​(java.lang.String scopeName)
        Description copied from interface: AuthorizationResource
        Creates a resource representation for use in authorization of actions pertaining to the collection of Key-Value tables within the specified scope.
        Specified by:
        ofKeyValueTablesInScope in interface AuthorizationResource
        Parameters:
        scopeName - the name of the scope
      • ofKeyValueTableInScope

        public java.lang.String ofKeyValueTableInScope​(java.lang.String scopeName,
                                                       java.lang.String keyValueTableName)
        Description copied from interface: AuthorizationResource
        Creates a resource representation for use in authorization of actions pertaining to the specified KeyValueTable within the specified scope.
        Specified by:
        ofKeyValueTableInScope in interface AuthorizationResource
        Parameters:
        scopeName - the name of the scope
        keyValueTableName - the name of the KeyValueTable
        Returns:
        a string representing the specified kvtable within the specified scope
      • ofInternalStream

        public java.lang.String ofInternalStream​(java.lang.String scopeName,
                                                 @NonNull
                                                 @NonNull java.lang.String streamName)
        Description copied from interface: AuthorizationResource
        Creates a resource representation for use in authorization of actions related to the specified internal stream.
        Specified by:
        ofInternalStream in interface AuthorizationResource
        Parameters:
        scopeName - the name of the scope
        streamName - the name of the internal stream
        Returns:
        a string representing the resource