public interface DataCache
Modifier and Type | Method and Description |
---|---|
AuthenticationResult |
createObject(java.lang.String objectName,
int objectType)
Creates a new object of the given type in the Libertor's object cache.
|
void |
remove(java.lang.String objectName)
Removes the object
objectName from the Liberator's object cache. |
AuthenticationResult createObject(java.lang.String objectName, int objectType)
Creates a new object of the given type in the Libertor's object cache. Creation may fail in the following ways;
AuthenticationResult.OK
: indicates a new object was successfully created AuthenticationResult.DENY
: indicates creation failed as an object with the
provided objectName
already exists. Note: the existing object may, or may not, be of a different type to the
type specified to this method.AuthenticationResult.ERROR
: indicates creation failed as there is an existing
directory of the same name as the parameter objectName
objectName
- the name of the object to be created in the Liberator cache.objectType
- the type of object that will be created.AuthenticationResult
indicating whether the object was successfully created or not.
AuthenticationResult.OK
indicates creation was successful, AuthenticationResult.DENY
indicates the object already exists and AuthenticationResult.ERROR/
indicates the creation has failed.void remove(java.lang.String objectName)
objectName
from the Liberator's object cache.objectName
- the name of the object that will be removed.Please send bug reports and comments to Caplin support