org.squashtest.tm.service.security.acls.domain
Class DatabaseBackedObjectIdentityGeneratorStrategy
java.lang.Object
org.squashtest.tm.service.security.acls.domain.DatabaseBackedObjectIdentityGeneratorStrategy
- All Implemented Interfaces:
- org.springframework.security.acls.model.ObjectIdentityGenerator
@Component(value="squashtest.core.security.ObjectIdentityGeneratorStrategy")
public class DatabaseBackedObjectIdentityGeneratorStrategy
- extends Object
- implements org.springframework.security.acls.model.ObjectIdentityGenerator
This ObjectIdentityGenerator fetches the entity using hibernate and delegates the creation of ObjectIdentity to a ObjectIdentityRetrievalStrategy.
- Author:
- bsiri
|
Method Summary |
org.springframework.security.acls.model.ObjectIdentity |
createObjectIdentity(Serializable id,
String type)
Creates an ObjectIdentity by :
1. fetching the entity using the given id and type
2. delegating to objectRetrivalStrategy |
void |
setSessionFactory(org.hibernate.SessionFactory sessionFactory)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DatabaseBackedObjectIdentityGeneratorStrategy
public DatabaseBackedObjectIdentityGeneratorStrategy()
setSessionFactory
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
createObjectIdentity
public org.springframework.security.acls.model.ObjectIdentity createObjectIdentity(Serializable id,
String type)
- Creates an ObjectIdentity by :
1. fetching the entity using the given id and type
2. delegating to
objectRetrivalStrategy
- Specified by:
createObjectIdentity in interface org.springframework.security.acls.model.ObjectIdentityGenerator
Copyright © 2010-2013 Henix, henix.fr. All Rights Reserved.