Interface IDfAliasSet

All Superinterfaces:
IDfPersistentObject, IDfTypedObject

public interface IDfAliasSet extends IDfPersistentObject
Provides access to business policy aliasing-related data stored in dm_alias_set objects.
  • Field Details

    • CATETORY_UNKNOWN

      static final int CATETORY_UNKNOWN
      Represents the alias category when the alias value is unknown.
      See Also:
    • CATETORY_USER

      static final int CATETORY_USER
      Represents the alias category when the alias value is a user.
      See Also:
    • CATETORY_GROUP

      static final int CATETORY_GROUP
      Represents the alias category when the alias value is a group.
      See Also:
    • CATETORY_USER_OR_GROUP

      static final int CATETORY_USER_OR_GROUP
      Represents the alias category when the alias value is either a user or a group.
      See Also:
    • CATETORY_CABINET_PATH

      static final int CATETORY_CABINET_PATH
      Represents the alias category when the alias value is a cabinet path.
      See Also:
    • CATETORY_FOLDER_PATH

      static final int CATETORY_FOLDER_PATH
      Represents the alias category when the alias value is a folder path.
      See Also:
    • CATETORY_ACL_NAME

      static final int CATETORY_ACL_NAME
      Represents the alias category when the alias value is an ACL name.
      See Also:
  • Method Details

    • getOwnerName

      String getOwnerName() throws DfException
      Returns the user name of the owner of this alias set.
      Returns:
      the owner name of this alias set.
      Throws:
      DfException - if server error occurs.
      See Also:
    • setOwnerName

      void setOwnerName(String ownerName) throws DfException
      Sets the owner name of this alias set.
      Parameters:
      ownerName - name of the owner.
      Throws:
      DfException - if server error occurs.
      See Also:
    • getObjectName

      String getObjectName() throws DfException
      Returns the name of this alias set. This name is unique within this type. Each name here defines a unique alias-binding alias set.
      Returns:
      the name of the alias set.
      Throws:
      DfException - if server error occurs.
      See Also:
    • setObjectName

      void setObjectName(String objectName) throws DfException
      Sets the name of the alias set. This name is unique within this type. Each name here defines a unique alias-binding alias set.
      Parameters:
      objectName - the name of the alias set.
      Throws:
      DfException - if server error occurs.
      See Also:
    • getObjectDescription

      String getObjectDescription() throws DfException
      Returns the description of the alias set.
      Returns:
      the description of the alias set.
      Throws:
      DfException - if server error occurs.
      See Also:
    • setObjectDescription

      void setObjectDescription(String objectDescription) throws DfException
      Sets the description of the alias set.
      Parameters:
      objectDescription - the description of the alias set.
      Throws:
      DfException - if server error occurs.
      See Also:
    • getAliasCount

      int getAliasCount() throws DfException
      Returns the number of aliases in the alias set.
      Returns:
      the number of aliases in the alias set.
      Throws:
      DfException - if server error occurs.
    • getAliasName

      String getAliasName(int index) throws DfException
      Returns the alias name at the specified index in the list of aliases for the alias set scope.
      Parameters:
      index - the index position in this alias set.
      Returns:
      the alias name.
      Throws:
      DfException - if server error occurs.
      See Also:
    • setAliasName

      void setAliasName(int index, String aliasName) throws DfException
      Sets the alias name at the specified index in this alias set.
      Parameters:
      index - the index position in this alias set.
      aliasName - the alias name.
      Throws:
      DfException - if server error occurs.
      See Also:
    • getAliasValue

      String getAliasValue(int index) throws DfException
      Returns the value corresponding to the alias at the specified index in this alias set.
      Parameters:
      index - the index position in this alias set.
      Returns:
      the alias value.
      Throws:
      DfException - if server error occurs.
      See Also:
    • setAliasValue

      void setAliasValue(int index, String aliasValue) throws DfException
      Sets the value corresponding to the alias at the specified index in this alias set.
      Parameters:
      index - the index position in this alias set.
      aliasValue - the value to set for the alias
      Throws:
      DfException - if server error occurs.
      See Also:
    • getAliasCategory

      int getAliasCategory(int index) throws DfException
      Returns the category of the alias in the specified index position in this alias set.
      Parameters:
      index - the index position in this alias set.
      Returns:
      the category of the alias.
      Throws:
      DfException - if server error occurs.
      See Also:
    • setAliasCategory

      void setAliasCategory(int index, int aliasCategory) throws DfException
      Sets the category for the alias in the specified index position in the alias set. This value is set by the creator of the alias object and used by Documentum client applications.

      The server does not verify the category value against the alias value to ensure that alias value is in the specified category.

      Currently, only the following values are allowed:

           - 0 (Unknown)
           - 1 (User, alias_value is a user)
           - 2 (Group, alias_value is a group)
           - 3 (User or Group, alias_value is either a user or a group)
           - 4 (Cabinet Path, alias_value is a cabinet path)
           - 5 (Folder Path, alias_value is a folder path)
           - 6 (ACL Name, alias_value is an ACL name)
      Parameters:
      index - the index position in this alias set.
      aliasCategory - the alias category.
      Throws:
      DfException - if server error occurs.
      See Also:
    • getAliasUserCategory

      int getAliasUserCategory(int index) throws DfException
      Returns the user category of the alias at the specified index position in the alias set. The value is used by the creator of the alias set object. The server does not care about its value.
      Parameters:
      index - the index position in this alias set.
      Returns:
      the category of alias at the index in the list.
      Throws:
      DfException - if server error occurs.
      See Also:
    • setAliasUserCategory

      void setAliasUserCategory(int index, int aliasUserCategory) throws DfException
      Sets the user category of the alias at the specified index position in the alias set. This value is used by the creator of the alias set object. The server does not care about its value.
      Parameters:
      index -
      aliasUserCategory - user alias category in the list.
      Throws:
      DfException - if server error occurs.
      See Also:
    • getAliasDescription

      String getAliasDescription(int index) throws DfException
      Returns the description of the alias at the specified index position in this alias set.
      Parameters:
      index - the index position in this alias set.
      Returns:
      the alias description.
      Throws:
      DfException - if server error occurs.
      See Also:
    • setAliasDescription

      void setAliasDescription(int index, String aliasDescription) throws DfException
      Sets the description of the alias at the specified index position in this alias set.
      Parameters:
      index - the index position in this alias set.
      aliasDescription - the alias description.
      Throws:
      DfException - if server error occurs.
      See Also:
    • appendAlias

      int appendAlias(String name, String value, int category, int userCategory, String description) throws DfException
      Appends an alias to the alias set. This adds a new value to each of the attributes represented by the passed arguments. It returns the index to the new alias.
      Parameters:
      name - the name of the alias.
      value - the value of the alias.
      category - the integer valued category of the alias.
      userCategory - the integer valued user category that the user chooses to further categorize the alias value.
      description - the description of the alias.
      Returns:
      the index value for the alias appended.
      Throws:
      DfException - if the server error occurs or the alias name already exists.
      See Also:
    • removeAlias

      void removeAlias(String name) throws DfException
      Removes an alias from the alias set.
      Parameters:
      name - the name of the alias to be removed.
      Throws:
      DfException - if the server error occurs.
      See Also:
    • findAliasIndex

      int findAliasIndex(String name) throws DfException
      Returns the index position of an alias in the alias set. The index can be used to access other attributes related to the alias name.
      Parameters:
      name - the name of the alias.
      Returns:
      the index value of the alias. -1 is returned if the alias is not found.
      Throws:
      DfException - if the server error occurs.
    • removeAllAliases

      void removeAllAliases() throws DfException
      Removes all the aliases in the alias set.
      Throws:
      DfException - if the server error occurs.