Class ConceptionResourceContentGuardFactory
java.lang.Object
ch.tocco.nice2.dms.impl.security.guard.AbstractEntityDocsGuardFactory
ch.tocco.nice2.dms.impl.security.guard.ResourceContentGuardFactory
ch.tocco.nice2.dms.impl.security.guard.ConceptionResourceContentGuardFactory
- All Implemented Interfaces:
GuardFactory
GuardFactory
for Resource_content entities in Entity.State.CONCEPTION
state that is based on
Entity
instances.
The ResourceContentGuardFactory
cannot be used for Entity.State.CONCEPTION
entities because it is
based on queries.
This is not a performance issue because nothing needs to be loaded from the database.-
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
ConstructorDescriptionConceptionResourceContentGuardFactory
(SecurityManager securityManager, DataModel dataModel, PersistenceService persistenceService, BusinessUnitManager businessUnitManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected List
<EntityPath> createEntityPaths
(List<EntityReference> resourceContents) protected List
<EntityReference> supportedEntities
(List<EntityReference> entityReferences) Methods inherited from class ch.tocco.nice2.dms.impl.security.guard.ResourceContentGuardFactory
createGuard
Methods inherited from class ch.tocco.nice2.dms.impl.security.guard.AbstractEntityDocsGuardFactory
getEntitiesFromSecuredObjects, getPrivilegedInvoker, isMailBoxFolder, loadRelatedEntityKeys, priority, supports
-
Constructor Details
-
ConceptionResourceContentGuardFactory
public ConceptionResourceContentGuardFactory(SecurityManager securityManager, DataModel dataModel, PersistenceService persistenceService, BusinessUnitManager businessUnitManager)
-
-
Method Details
-
supportedEntities
- Overrides:
supportedEntities
in classResourceContentGuardFactory
- Returns:
- the number of given
EntityReference
that are supported by this guard.
-
createEntityPaths
- Overrides:
createEntityPaths
in classResourceContentGuardFactory
-