public class HibernateAccessControl extends Object implements com.googlecode.fascinator.api.access.AccessControl
| Constructor and Description |
|---|
HibernateAccessControl() |
| Modifier and Type | Method and Description |
|---|---|
void |
applySchema(com.googlecode.fascinator.api.access.AccessControlSchema newSecurity)
Apply/store a new security implementation.
|
com.googlecode.fascinator.api.access.AccessControlSchema |
getEmptySchema() |
String |
getId() |
String |
getName() |
com.googlecode.fascinator.api.PluginDescription |
getPluginDetails() |
List<String> |
getPossibilities(String field) |
List<String> |
getRoles(String recordId) |
List<com.googlecode.fascinator.api.access.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(com.googlecode.fascinator.api.access.AccessControlSchema oldSecurity)
Remove a security implementation.
|
void |
shutdown() |
public String getId()
getId in interface com.googlecode.fascinator.api.Pluginpublic String getName()
getName in interface com.googlecode.fascinator.api.Pluginpublic com.googlecode.fascinator.api.PluginDescription getPluginDetails()
getPluginDetails in interface com.googlecode.fascinator.api.Pluginpublic void init(File jsonFile) throws com.googlecode.fascinator.api.PluginException
init in interface com.googlecode.fascinator.api.Plugincom.googlecode.fascinator.api.PluginExceptionpublic void init(String jsonString) throws com.googlecode.fascinator.api.PluginException
init in interface com.googlecode.fascinator.api.Plugincom.googlecode.fascinator.api.PluginExceptionpublic void shutdown()
throws com.googlecode.fascinator.api.PluginException
shutdown in interface com.googlecode.fascinator.api.Plugincom.googlecode.fascinator.api.PluginExceptionpublic com.googlecode.fascinator.api.access.AccessControlSchema getEmptySchema()
getEmptySchema in interface com.googlecode.fascinator.api.access.AccessControlpublic List<com.googlecode.fascinator.api.access.AccessControlSchema> getSchemas(String recordId) throws com.googlecode.fascinator.api.access.AccessControlException
getSchemas in interface com.googlecode.fascinator.api.access.AccessControlrecordId - The record to retrieve information about.com.googlecode.fascinator.api.access.AccessControlException - if there was an error during retrieval.public void applySchema(com.googlecode.fascinator.api.access.AccessControlSchema newSecurity)
throws com.googlecode.fascinator.api.access.AccessControlException
applySchema in interface com.googlecode.fascinator.api.access.AccessControlnewSecurity - The new schema to apply.com.googlecode.fascinator.api.access.AccessControlException - if storage of the schema fails.public void removeSchema(com.googlecode.fascinator.api.access.AccessControlSchema oldSecurity)
throws com.googlecode.fascinator.api.access.AccessControlException
removeSchema in interface com.googlecode.fascinator.api.access.AccessControloldSecurity - The schema to remove.com.googlecode.fascinator.api.access.AccessControlException - if removal of the schema fails.public List<String> getRoles(String recordId) throws com.googlecode.fascinator.api.access.AccessControlException
getRoles in interface com.googlecode.fascinator.api.access.AccessControlcom.googlecode.fascinator.api.access.AccessControlExceptionpublic List<String> getUsers(String recordId) throws com.googlecode.fascinator.api.access.AccessControlException
getUsers in interface com.googlecode.fascinator.api.access.AccessControlcom.googlecode.fascinator.api.access.AccessControlExceptionCopyright © 2009-2015. All Rights Reserved.