|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.cafesoft.cams.access.AbstractAccessControlRulePersistenceManager
AbstractAccessControlRulePersistenceManager provides generic
method implementations for AccessControlRulePersistenceManager.
Most or all AccessControlRulePersistenceManager implementations should
extend this class and implement the abstract methods.
| Field Summary | |
protected Config |
config
The Config from which resources are made available. |
protected boolean |
debug
A flag that enables/disables DEBUG-level messages |
protected Logger |
logger
Logger for this object |
| Constructor Summary | |
AbstractAccessControlRulePersistenceManager()
|
|
| Method Summary | |
abstract AccessControlRule |
acrCreate()
Create a new/empty AccessControlRule. |
abstract AccessControlRule |
acrLoad(Object object)
Load an AccessControlRule from persistent storage. |
abstract void |
acrRemove(AccessControlRule acr)
Remove an AccessControlRule from persistent storage. |
abstract void |
acrStore(AccessControlRule acr,
Object dest)
Store an AccessControlRule to persistent storage. |
void |
initialize(Config config)
Initialize the AccessControlRulePersistenceManager. |
boolean |
setDebug(boolean enable)
Enable or disable debugging. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected boolean debug
protected Config config
protected Logger logger
| Constructor Detail |
public AbstractAccessControlRulePersistenceManager()
| Method Detail |
public boolean setDebug(boolean enable)
enable - if true, enable debugging, else disable debugging.
public void initialize(Config config)
throws ConfigException
initialize in interface AccessControlRulePersistenceManagerconfig - the configuration object through which parameters
and context are available.
ConfigException - if an error initializing this
AccessControlRulePersistenceManager.public abstract AccessControlRule acrCreate()
acrCreate in interface AccessControlRulePersistenceManager
public abstract AccessControlRule acrLoad(Object object)
throws PersistenceException
acrLoad in interface AccessControlRulePersistenceManagerobject - the Object referencing the AccessControlRule
to be created. This may be a String, and XML DOM Element,
or any other Object suitable for the storage location of the
AccessControlRule.
PersistenceException - if an error creating the new
AccessControlRule.
IllegalArgumentException - if the parameter is null or
it's type is not supported by the factory implementation.
public abstract void acrStore(AccessControlRule acr,
Object dest)
throws PersistenceException
acrStore in interface AccessControlRulePersistenceManageracr - the AccessControlRule to be stored.dest - an object that may be needed for some AccessControlRule
storage destination types. For example, if the AccessControlRule
is a file, then a PrintStream might be provided. Some storage
destinations (e.g. a relational database), may not use this
parameter.
PersistenceException - if an error storing the
AccessControlRule.
IllegalArgumentException - if a required parameter is null,
or it's type is not supported by the implementation.
public abstract void acrRemove(AccessControlRule acr)
throws PersistenceException
acrRemove in interface AccessControlRulePersistenceManageracr - the AccessControlRule to be removed from persistent
storage.
PersistenceException - if an error creating the new
AccessControlRule.
IllegalArgumentException - if the parameter is null or
it's type is not supported by the factory implementation.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||