Interface DataCache


public interface DataCache
  • Method Summary

    Modifier and Type
    Method
    Description
    createObject(String objectName, int objectType)
    Creates a new object of the given type in the Libertor's object cache.
    void
    remove(String objectName)
    Removes the object objectName from the Liberator's object cache.
  • Method Details

    • createObject

      AuthenticationResult createObject(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
      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 and AuthenticationResult.ERROR/ indicates the creation has failed.
    • remove

      void remove(String objectName)
      Removes the object objectName from the Liberator's object cache.
      Parameters:
      objectName - the name of the object that will be removed.