Class ResourceContentGuardFactory
java.lang.Object
ch.tocco.nice2.dms.impl.security.guard.AbstractEntityDocsGuardFactory
ch.tocco.nice2.dms.impl.security.guard.ResourceContentGuardFactory
- All Implemented Interfaces:
GuardFactory
- Direct Known Subclasses:
ConceptionResourceContentGuardFactory
GuardFactory
for Resource_content entities which delegates to the guard
of the related Resource instance.-
Nested Class Summary
Nested classes/interfaces inherited from class ch.tocco.nice2.dms.impl.security.guard.AbstractEntityDocsGuardFactory
AbstractEntityDocsGuardFactory.AbstractEntityDocsGuard
-
Field Summary
Fields inherited from class ch.tocco.nice2.dms.impl.security.guard.AbstractEntityDocsGuardFactory
businessUnitManager, dataModel, persistenceService, securityManager
-
Constructor Summary
ConstructorDescriptionResourceContentGuardFactory
(SecurityManager securityManager, DataModel dataModel, PersistenceService persistenceService, BusinessUnitManager businessUnitManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected List
<EntityPath> createEntityPaths
(List<EntityReference> resourceContents) createGuard
(List<?> secured, GuardContext guardContext) protected List
<EntityReference> supportedEntities
(List<EntityReference> entityReferences) Methods inherited from class ch.tocco.nice2.dms.impl.security.guard.AbstractEntityDocsGuardFactory
getEntitiesFromSecuredObjects, getPrivilegedInvoker, isMailBoxFolder, loadRelatedEntityKeys, priority, supports
-
Constructor Details
-
ResourceContentGuardFactory
public ResourceContentGuardFactory(SecurityManager securityManager, DataModel dataModel, PersistenceService persistenceService, BusinessUnitManager businessUnitManager)
-
-
Method Details
-
supportedEntities
- Specified by:
supportedEntities
in classAbstractEntityDocsGuardFactory
- Returns:
- the number of given
EntityReference
that are supported by this guard.
-
createGuard
- Returns:
- a
Guard
for the given secured object
-
createEntityPaths
-