Interface ComponentAuthorization

  • All Known Implementing Classes:
    TodoComponentAuthorization

    public interface ComponentAuthorization
    Component security provides a way to check a user have enough rights to access a given object in a Silverpeas component instance. Each Silverpeas component should implements this interface according to the objects or resources it manages.
    • Method Detail

      • isRelatedTo

        boolean isRelatedTo​(String instanceId)
        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.
        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.