public class DerbyAccessControl extends Object implements com.googlecode.fascinator.api.access.AccessControl
This plugin is a Fascinator access control plugin using Derby database
Standard configuration table:
| Option | Description | Required | Default |
|---|---|---|---|
| derbyHome | Path in which derby database will be created and used | Yes | ${fascinator.home}/database |
"accesscontrol": {
"type" : "derby",
"derby" : {
"derbyHome" : "${fascinator.home}/database"
}
}
None
| Constructor and Description |
|---|
DerbyAccessControl() |
| 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()
Return an empty security schema for the portal to investigate and/or
populate.
|
String |
getId()
Gets an identifier for this type of plugin.
|
String |
getName()
Gets a name for this plugin.
|
com.googlecode.fascinator.api.PluginDescription |
getPluginDetails()
Gets a PluginDescription object relating to this plugin.
|
List<String> |
getPossibilities(String field)
Retrieve a list of possible field values for a given field if the plugin
supports this feature.
|
List<String> |
getRoles(String recordId)
A basic wrapper for getSchemas() to return just the roles of the schemas.
|
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)
Initializes the plugin using the specified JSON configuration
|
void |
init(String jsonString)
Initializes the plugin using the specified JSON String
|
void |
removeSchema(com.googlecode.fascinator.api.access.AccessControlSchema oldSecurity)
Remove a security implementation.
|
void |
shutdown()
Shuts down the plugin
|
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(String jsonString) throws com.googlecode.fascinator.api.access.AccessControlException
init in interface com.googlecode.fascinator.api.PluginjsonString - JSON configuration stringPluginException - if there was an error in initializationcom.googlecode.fascinator.api.access.AccessControlExceptionpublic void init(File jsonFile) throws com.googlecode.fascinator.api.access.AccessControlException
init in interface com.googlecode.fascinator.api.PluginjsonFile - JSON configuration filecom.googlecode.fascinator.api.access.AccessControlException - if there was an error in initializationpublic void shutdown()
throws com.googlecode.fascinator.api.access.AccessControlException
shutdown in interface com.googlecode.fascinator.api.Plugincom.googlecode.fascinator.api.access.AccessControlException - if there was an error during shutdownpublic 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> getUsers(String recordId) throws com.googlecode.fascinator.api.access.AccessControlException
getUsers in interface com.googlecode.fascinator.api.access.AccessControlcom.googlecode.fascinator.api.access.AccessControlExceptionpublic List<String> getRoles(String recordId) throws com.googlecode.fascinator.api.access.AccessControlException
getRoles in interface com.googlecode.fascinator.api.access.AccessControlrecordId - The record to retrieve roles for.com.googlecode.fascinator.api.access.AccessControlException - if there was an error during retrieval.public List<String> getPossibilities(String field) throws com.googlecode.fascinator.api.access.AccessControlException
getPossibilities in interface com.googlecode.fascinator.api.access.AccessControlfield - The field name.com.googlecode.fascinator.api.access.AccessControlException - if the field doesn't exist or there was an error during
retrievalCopyright © 2009-2015. All Rights Reserved.