Interface ComponentInstancePublicationAccessControlExtension
-
- All Known Implementing Classes:
DefaultInstancePublicationAccessControlExtension
public interface ComponentInstancePublicationAccessControlExtension
This interface extends access controller extension for a Publication resource.This interface defines an extension for
PublicationAccessControl
which is specific to aSilverpeasComponentInstance
.If a component has specific rules about
PublicationAccessControl
mechanism, it should implement this interface in order to apply them.Any application that requires to implement this interface MUST qualify with the
Named
annotation by a name satisfying the following convention[COMPONENT NAME]InstancePublicationAccessControlExtension
. For example, for an application Kmelia, the implementation must be qualified with@Named ("kmeliaInstancePublicationAccessControlExtension")
- Author:
- silveryocha
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ComponentInstancePublicationAccessControlExtension.Constants
Constants are predefined value used by a contribution manager to work with and that carries a semantic that has to be shared by all the implementations of this interface.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
canPublicationBePersistedOrDeletedBy(PublicationDetail publication, String instanceId, String userId, SilverpeasRole userRole, AccessControlContext context)
static ComponentInstancePublicationAccessControlExtension
getByInstanceId(String instanceId)
Gets theComponentInstancePublicationAccessControlExtension
according to the given identifier of component instance.
-
-
-
Method Detail
-
getByInstanceId
static ComponentInstancePublicationAccessControlExtension getByInstanceId(String instanceId)
Gets theComponentInstancePublicationAccessControlExtension
according to the given identifier of component instance.Instances of
ComponentInstancePublicationAccessControlExtension
are request scoped (or thread scoped on backend treatments).- Parameters:
instanceId
- the identifier of a component instance from which the qualified name of the implementation will be extracted.- Returns:
- a
ComponentInstancePublicationAccessControlExtension
implementation.
-
canPublicationBePersistedOrDeletedBy
boolean canPublicationBePersistedOrDeletedBy(PublicationDetail publication, String instanceId, String userId, SilverpeasRole userRole, AccessControlContext context)
-
-