org.squashtest.tm.service.security.acls.domain
Class InheritableAclsObjectIdentityRetrievalStrategy

java.lang.Object
  extended by org.squashtest.tm.service.security.acls.domain.InheritableAclsObjectIdentityRetrievalStrategy
All Implemented Interfaces:
org.springframework.security.acls.model.ObjectIdentityRetrievalStrategy

@Component(value="squashtest.core.security.ObjectIdentityRetrievalStrategy")
public class InheritableAclsObjectIdentityRetrievalStrategy
extends Object
implements org.springframework.security.acls.model.ObjectIdentityRetrievalStrategy

This ObjectIdentityRetrievalStrategy checks if an entity should inherit ACLs from another entity. If so, the object identity will be retrieved from the "constrained" object.

Author:
Gregory Fouquet

Constructor Summary
InheritableAclsObjectIdentityRetrievalStrategy()
           
 
Method Summary
 org.springframework.security.acls.model.ObjectIdentity getObjectIdentity(Object domainObject)
          If the domain object is annotated with InheritsAcls, will return an ObjectIdentity according to the annotation rules.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InheritableAclsObjectIdentityRetrievalStrategy

public InheritableAclsObjectIdentityRetrievalStrategy()
Method Detail

getObjectIdentity

public org.springframework.security.acls.model.ObjectIdentity getObjectIdentity(Object domainObject)
If the domain object is annotated with InheritsAcls, will return an ObjectIdentity according to the annotation rules. Otherwise, simple delegates the retrieval.

Specified by:
getObjectIdentity in interface org.springframework.security.acls.model.ObjectIdentityRetrievalStrategy


Copyright © 2010-2013 Henix, henix.fr. All Rights Reserved.