Package com.caplin.server.auth
Interface DataCache
public interface DataCache
-
Method Summary
Modifier and TypeMethodDescriptioncreateObject(String objectName, int objectType) Creates a new object of the given type in the Libertor's object cache.voidRemoves the objectobjectNamefrom the Liberator's object cache.
-
Method Details
-
createObject
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 createdAuthenticationResult.DENY: indicates creation failed as an object with the providedobjectNamealready 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 parameterobjectName
- Parameters:
objectName- the name of the object to be created in the Liberator cache.objectType- the type of object that will be created.- Returns:
- an
AuthenticationResultindicating whether the object was successfully created or not.AuthenticationResult.OKindicates creation was successful,AuthenticationResult.DENYindicates the object already exists andAuthenticationResult.ERROR/indicates the creation has failed.
-
remove
Removes the objectobjectNamefrom the Liberator's object cache.- Parameters:
objectName- the name of the object that will be removed.
-