Package com.caplin.server.auth
Interface DataCache
-
public interface DataCache
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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 objectobjectName
from the Liberator's object cache.
-
-
-
Method Detail
-
createObject
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 createdAuthenticationResult.DENY
: indicates creation failed as an object with the providedobjectName
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 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
AuthenticationResult
indicating whether the object was successfully created or not.AuthenticationResult.OK
indicates creation was successful,AuthenticationResult.DENY
indicates the object already exists andAuthenticationResult.ERROR/
indicates the creation has failed.
-
remove
void remove(java.lang.String objectName)
Removes the objectobjectName
from the Liberator's object cache.- Parameters:
objectName
- the name of the object that will be removed.
-
-