Class FolderGuardFactory
java.lang.Object
ch.tocco.nice2.dms.impl.security.guard.AbstractEntityDocsGuardFactory
ch.tocco.nice2.dms.impl.security.guard.FolderGuardFactory
- All Implemented Interfaces:
GuardFactory
- Direct Known Subclasses:
ConceptionFolderGuardFactory
GuardFactory
for entity document folders.
There are no ACL rules for these entities. In general, if a user may read or write the related entity he can
also read or write (and delete) the attached folder.
Some additional conditions are checked as well (like mail_box).-
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
ConstructorDescriptionFolderGuardFactory
(org.slf4j.Logger logger, SecurityManager securityManager, DataModel dataModel, PersistenceService persistenceService, BusinessUnitManager businessUnitManager) -
Method Summary
Modifier and TypeMethodDescriptioncreateGuard
(List<?> secured, GuardContext guardContext) protected List
<EntityReference> getRelatedEntities
(List<EntityReference> folders) 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
-
FolderGuardFactory
public FolderGuardFactory(org.slf4j.Logger logger, 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
-
getRelatedEntities
-