Class AEVRoleMap

All Implemented Interfaces:
XMLable, Serializable, Map
Direct Known Subclasses:
PortalRoleMap

public class AEVRoleMap extends PublicRoleMap
This class can be used as base class for any object acting as RoleMap where User and Group can be added to view or edit a particular object.
See Also:
  • Field Details

  • Constructor Details

    • AEVRoleMap

      public AEVRoleMap()
  • Method Details

    • getEditors

      public String[] getEditors()
      Returns the usernames of Users whose role is Editor of object.
      Returns:
      string array of usernames
      See Also:
    • getEditorGroups

      public Long[] getEditorGroups()
      Returns the ID's of Groups whose role is Editor of object.
      Returns:
      Long array of group ID's
      See Also:
    • getViewers

      public String[] getViewers()
      Returns the usernames of Users whose role is Viewer of object.
      Returns:
      string array of usernames
      See Also:
    • getViewerGroups

      public Long[] getViewerGroups()
      Returns the ID's of Groups whose role is Viewer of object.
      Returns:
      Long array of group ID's
      See Also:
    • setEditors

      public void setEditors(String[] id_)
      Sets the Users identified by given usernames as editors.
      Parameters:
      id_ - array of usernames to set as editors
      See Also:
    • setEditorGroups

      public void setEditorGroups(Long[] id_)
      Sets the Groups identified by given ID's as editors.
      Parameters:
      id_ - array of Group ID's to set as editors
      See Also:
    • setViewers

      public void setViewers(String[] id_)
      Sets the Users identified by given usernames as viewers.
      Parameters:
      id_ - array of usernames to set as viewers
      See Also:
    • setViewerGroups

      public void setViewerGroups(Long[] id_)
      Sets the Groups identified by given ID's as viewers.
      Parameters:
      id_ - array of Group ID's to set as viewers
      See Also:
    • addEditors

      public void addEditors(String[] id_)
      Adds the Users identified by given usernames as editors to existing array of Editors.
      Parameters:
      id_ - array of usernames to add as editors
    • addEditorGroups

      public void addEditorGroups(Long[] id_)
      Adds the Groups identified by given ID's as editors to existing array of Group Editors.
      Parameters:
      id_ - array of ID's to add as editors
    • addViewers

      public void addViewers(String[] id_)
      Adds the Users identified by given usernames as viewers to existing array of Viewers.
      Parameters:
      id_ - array of usernames to add as viewers
    • addViewerGroups

      public void addViewerGroups(Long[] id_)
      Adds the Groups identified by given ID's as viewers to existing array of Group Viewers.
      Parameters:
      id_ - array of ID's to add as viewers
    • removeEditors

      public void removeEditors(String[] id_)
      Removes the Users identified by given usernames as editors.
      Parameters:
      id_ - array of usernames to remove as editors
    • removeEditorGroups

      public void removeEditorGroups(Long[] id_)
      Removes the Groups identified by given ID's as editors.
      Parameters:
      id_ - array of ID's to remove as editors
    • removeViewers

      public void removeViewers(String[] id_)
      Removes the Users identified by given usernames as viewers.
      Parameters:
      id_ - array of usernames to remove as viewers
    • removeViewerGroups

      public void removeViewerGroups(Long[] id_)
      Removes the Groups identified by given ID's as viewers.
      Parameters:
      id_ - array of ID's to remove as viewers