|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.fascinator.access.hibernate.HibernateAccessControl
public class HibernateAccessControl
Hibernate-based access control
| Constructor Summary | |
|---|---|
HibernateAccessControl()
|
|
| Method Summary | |
|---|---|
void |
applySchema(AccessControlSchema newSecurity)
Apply/store a new security implementation. |
AccessControlSchema |
getEmptySchema()
|
String |
getId()
|
String |
getName()
|
PluginDescription |
getPluginDetails()
|
List<String> |
getPossibilities(String field)
|
List<String> |
getRoles(String recordId)
|
List<AccessControlSchema> |
getSchemas(String recordId)
Get a list of schemas that have been applied to a record. |
List<String> |
getUsers(String recordId)
|
void |
init(File jsonFile)
|
void |
init(String jsonString)
|
void |
removeSchema(AccessControlSchema oldSecurity)
Remove a security implementation. |
void |
shutdown()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HibernateAccessControl()
| Method Detail |
|---|
public String getId()
getId in interface Pluginpublic String getName()
getName in interface Pluginpublic PluginDescription getPluginDetails()
getPluginDetails in interface Plugin
public void init(File jsonFile)
throws PluginException
init in interface PluginPluginException
public void init(String jsonString)
throws PluginException
init in interface PluginPluginException
public void shutdown()
throws PluginException
shutdown in interface PluginPluginExceptionpublic AccessControlSchema getEmptySchema()
getEmptySchema in interface AccessControl
public List<AccessControlSchema> getSchemas(String recordId)
throws AccessControlException
getSchemas in interface AccessControlrecordId - The record to retrieve information about.
AccessControlException - if there was an error during retrieval.
public void applySchema(AccessControlSchema newSecurity)
throws AccessControlException
applySchema in interface AccessControlnewSecurity - The new schema to apply.
AccessControlException - if storage of the schema fails.
public void removeSchema(AccessControlSchema oldSecurity)
throws AccessControlException
removeSchema in interface AccessControloldSecurity - The schema to remove.
AccessControlException - if removal of the schema fails.
public List<String> getRoles(String recordId)
throws AccessControlException
getRoles in interface AccessControlAccessControlException
public List<String> getUsers(String recordId)
throws AccessControlException
getUsers in interface AccessControlAccessControlException
public List<String> getPossibilities(String field)
throws AccessControlException
getPossibilities in interface AccessControlAccessControlException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||