Class ResourceGuardFactory

java.lang.Object
ch.tocco.nice2.dms.impl.security.guard.AbstractEntityDocsGuardFactory
ch.tocco.nice2.dms.impl.security.guard.ResourceGuardFactory
All Implemented Interfaces:
GuardFactory
Direct Known Subclasses:
ConceptionResourceGuardFactory

@Component public class ResourceGuardFactory extends AbstractEntityDocsGuardFactory
GuardFactory for entity document resources (Resource entities which are attached to another entity (or field)). There are no ACL rules for these entities. In general, if a user may read or write the related entity (and field) he can also read or write (and delete) the attached resource. Some additional conditions are checked as well (like mail_box). This handles both entities and EntityPath of entitydoc resources.