Class TodoComponentAuthorization

  • All Implemented Interfaces:
    ComponentAuthorization

    @Service
    public class TodoComponentAuthorization
    extends Object
    implements ComponentAuthorization
    Processor of authorization to access a given personal user task. Usually a task is always related to a given user (the owner) and it shouldn't be accessed or saw by another user unless he's also involved in this task.
    Author:
    mmoquillon
    • Constructor Detail

      • TodoComponentAuthorization

        public TodoComponentAuthorization()
    • Method Detail

      • isRelatedTo

        public boolean isRelatedTo​(String instanceId)
        Description copied from interface: ComponentAuthorization
        Is this service related to the specified component instance. The service is related to the specified instance if it is a service defined by the application from which the instance was spawned.
        Specified by:
        isRelatedTo in interface ComponentAuthorization
        Parameters:
        instanceId - the unique instance identifier of the component.
        Returns:
        true if the instance is spawn from the application to which the service is related. False otherwise.