org.squashtest.tm.service.security.acls.domain
@Component(value="squashtest.core.security.ObjectIdentityGeneratorStrategy") public class DatabaseBackedObjectIdentityGeneratorStrategy extends Object implements org.springframework.security.acls.model.ObjectIdentityGenerator
ObjectIdentityGenerator fetches the entity using hibernate and delegates the creation of ObjectIdentity to a ObjectIdentityRetrievalStrategy.| Constructor and Description |
|---|
DatabaseBackedObjectIdentityGeneratorStrategy() |
| Modifier and Type | Method and Description |
|---|---|
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) |
public DatabaseBackedObjectIdentityGeneratorStrategy()
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
public org.springframework.security.acls.model.ObjectIdentity createObjectIdentity(Serializable id, String type)
objectRetrivalStrategycreateObjectIdentity in interface org.springframework.security.acls.model.ObjectIdentityGeneratorCopyright © 2010-2014 Henix, henix.fr. All Rights Reserved.