Class ConceptionResourceGuardFactory
java.lang.Object
ch.tocco.nice2.dms.impl.security.guard.AbstractEntityDocsGuardFactory
ch.tocco.nice2.dms.impl.security.guard.ResourceGuardFactory
ch.tocco.nice2.dms.impl.security.guard.ConceptionResourceGuardFactory
- All Implemented Interfaces:
GuardFactory
GuardFactory
for Resource entities in Entity.State.CONCEPTION
state that is based on
Entity
instances.
The ResourceGuardFactory
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.ResourceGuardFactory
ResourceGuardFactory.ResourcesData
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
ConstructorDescriptionConceptionResourceGuardFactory
(org.slf4j.Logger logger, SecurityManager securityManager, BusinessUnitManager businessUnitManager, DataModel dataModel, PersistenceService persistenceService) -
Method Summary
Modifier and TypeMethodDescriptionprotected ResourceGuardFactory.ResourcesData
getResourceData
(List<EntityReference> resources) protected List
<EntityReference> supportedEntities
(List<EntityReference> entityReferences) Methods inherited from class ch.tocco.nice2.dms.impl.security.guard.ResourceGuardFactory
createGuard
Methods inherited from class ch.tocco.nice2.dms.impl.security.guard.AbstractEntityDocsGuardFactory
getEntitiesFromSecuredObjects, getPrivilegedInvoker, isMailBoxFolder, loadRelatedEntityKeys, priority, supports
-
Constructor Details
-
ConceptionResourceGuardFactory
public ConceptionResourceGuardFactory(org.slf4j.Logger logger, SecurityManager securityManager, BusinessUnitManager businessUnitManager, DataModel dataModel, PersistenceService persistenceService)
-
-
Method Details
-
supportedEntities
- Overrides:
supportedEntities
in classResourceGuardFactory
- Returns:
- the number of given
EntityReference
that are supported by this guard.
-
getResourceData
- Overrides:
getResourceData
in classResourceGuardFactory
-