Class ProcessApplicationRoleMap

java.lang.Object
com.appiancorp.suiteapi.common.RoleMap
com.appiancorp.suiteapi.process.ProcessApplicationRoleMap
All Implemented Interfaces:
XMLable, Serializable, Map

public class ProcessApplicationRoleMap extends RoleMap
Defines the roles of users and groups for a process object. The prossible roles are Editor, Viewer.
See Also:
  • Field Details

  • Constructor Details

    • ProcessApplicationRoleMap

      public ProcessApplicationRoleMap()
  • Method Details

    • getEditors

      public String[] getEditors()
      Retrieves the users who have editor permissions
      Returns:
      an Array containing the unique IDs (usernames) of the users
    • getEditorGroups

      public Long[] getEditorGroups()
      Retrieves the groups who have editor permissions
      Returns:
      Array containing the unique IDs of the groups
    • setEditors

      public void setEditors(String[] unames_)
      Sets the users who have editor permissions
      Parameters:
      unames_ - Array containing the unique IDs (usernames) of the users
    • setEditorGroups

      public void setEditorGroups(Long[] grids_)
      Sets the groups who have editor permissions
      Parameters:
      grids_ - Array containing the unique IDs of the groups
    • addEditors

      public void addEditors(String[] unames_)
      Appends to the users who have editor permissions
      Parameters:
      unames_ - Array containing the unique IDs (usernames) of the users to be added
    • addEditorGroups

      public void addEditorGroups(Long[] grids_)
      Appends to the groups who have editor permissions
      Parameters:
      grids_ - Array containing the unique IDs of the groups to be added
    • removeEditors

      public void removeEditors(String[] unames_)
      Deletes from the users who have editor permissions
      Parameters:
      unames_ - Array containing the unique IDs (usernames) of the users to be deleted
    • removeEditorGroups

      public void removeEditorGroups(Long[] grids_)
      Deletes from the groups who have editor permissions
      Parameters:
      grids_ - Array containing the unique IDs of the groups to be deleted
    • getViewers

      public String[] getViewers()
      Retrieves the users who have viewer permissions
      Returns:
      Array containing the unique IDs (usernames) of the users
    • getViewerGroups

      public Long[] getViewerGroups()
      Retrieves the groups who have viewer permissions
      Returns:
      Array containing the unique IDs of the groups
    • setViewers

      public void setViewers(String[] unames_)
      Sets the users who have viewer permissions
      Parameters:
      unames_ - Array containing the unique IDs (usernames) of the users
    • setViewerGroups

      public void setViewerGroups(Long[] grids_)
      Sets the groups who have viewer permissions
      Parameters:
      grids_ - Array containing the unique IDs of the groups
    • addViewers

      public void addViewers(String[] unames_)
      Appends to the users who have viewer permissions
      Parameters:
      unames_ - Array containing the unique IDs (usernames) of the users to be added
    • addViewerGroups

      public void addViewerGroups(Long[] grids_)
      Appends to the groups who have viewer permissions
      Parameters:
      grids_ - Array containing the unique IDs of the groups to be added
    • removeViewers

      public void removeViewers(String[] unames_)
      Deletes from the users who have viewer permissions
      Parameters:
      unames_ - Array containing the unique IDs (usernames) of the users to be deleted
    • removeViewerGroups

      public void removeViewerGroups(Long[] grids_)
      Deletes from the groups who have viewer permissions
      Parameters:
      grids_ - Array containing the unique IDs of the groups to be deleted