Class EditGroupHandler

All Implemented Interfaces:
JcmsConstants, JaliosConstants

public class EditGroupHandler extends EditDataHandler
This form handler process Group forms.
Author:
Olivier Dedieu
See Also:
  • Field Details

    • name

      protected String name
    • nameML

      protected HashMap<String,String> nameML
    • description

      protected String description
    • order

      protected int order
    • cookieMaxAge

      protected int cookieMaxAge
    • parentSet

      protected HashSet parentSet
    • notificationFormHandler

      protected EditNotificationHandler notificationFormHandler
    • groupWorkspace

      protected Workspace groupWorkspace
    • visibility

      protected int visibility
    • group

      protected Group group
    • workingGroup

      protected Group workingGroup
    • notification

      protected Notification notification
    • publishSet

      protected HashSet publishSet
    • updateSet

      protected HashSet updateSet
    • deleteSet

      protected HashSet deleteSet
    • editCategorySet

      protected HashSet editCategorySet
    • useCategorySet

      protected TreeSet useCategorySet
    • rightsProvided

      protected boolean rightsProvided
    • parentIdsAddCount

      protected int parentIdsAddCount
    • ldapDN

      protected String ldapDN
    • ldapSync

      protected boolean ldapSync
    • declaredManager

      protected Member declaredManager
    • assistant

      @Deprecated protected Member assistant
      Deprecated.
    • assistantSet

      protected TreeSet<Member> assistantSet
    • teamPortal

      protected PortalInterface teamPortal
    • acl

      protected AccessControlList acl
    • profilingCategorySet

      protected Set<Category> profilingCategorySet
  • Constructor Details

    • EditGroupHandler

      public EditGroupHandler()
  • Method Details

    • getPageTitle

      public String getPageTitle()
    • getBreadcrumbItems

      public List<BreadcrumbItem> getBreadcrumbItems()
    • processAction

      public boolean processAction() throws IOException
      Description copied from class: JcmsFormHandler
      Method to be implemented to check/validate action to be performed and process them.

      Default implementation is to return false. No need to call super method.

      This method may NOT be invoked at all if security validation are not met.

      You must ensure your handler and JSP can work properly without any code invoked in this method.

      Overrides:
      processAction in class EditDataHandler
      Returns:
      false if no redirection is needed, true otherwise
      Throws:
      IOException - IO Exception
    • getDataClass

      public Class getDataClass()
      Specified by:
      getDataClass in class EditDataHandler
    • getNameSettings

      public ControlSettings getNameSettings()
    • getDescriptionSettings

      public ControlSettings getDescriptionSettings()
    • getOrderSettings

      public ControlSettings getOrderSettings()
    • getVisibilitySettings

      public ControlSettings getVisibilitySettings()
    • getCookieMaxAgeSettings

      public ControlSettings getCookieMaxAgeSettings()
    • getParentsSettings

      public ControlSettings getParentsSettings()
    • getWorkspaceSettings

      public ControlSettings getWorkspaceSettings()
    • getHiddenWorkspaceSettings

      public ControlSettings getHiddenWorkspaceSettings()
    • getDeclaredManagerSettings

      public ControlSettings getDeclaredManagerSettings()
    • getAssistantsSettings

      public ControlSettings getAssistantsSettings()
    • getTeamPortalSettings

      public ControlSettings getTeamPortalSettings()
    • getLdapDNSettings

      public ControlSettings getLdapDNSettings()
    • getLdapSyncSettings

      public ControlSettings getLdapSyncSettings()
    • getProfilingCategoriesSettings

      public ControlSettings getProfilingCategoriesSettings()
    • getForcedWorkspaceSettings

      public ControlSettings getForcedWorkspaceSettings()
    • getRedirectSettings

      public ControlSettings getRedirectSettings()
    • getGroup

      public Group getGroup()
    • canPublish

      public boolean canPublish(Class clazz)
    • canUpdate

      public boolean canUpdate(Class clazz)
    • canDelete

      public boolean canDelete(Class clazz)
    • getCategorySet

      public Set getCategorySet(String inputName)
      Returns the root set bound to the given inputName
      Parameters:
      inputName - the name of category set to get
      Returns:
      a Set of Category
      Since:
      jcms-3.0
    • isExpanded

      public boolean isExpanded(Category cat, String inputName)
      Parameters:
      cat - the category to work on
      inputName - the name of the input
      Returns:
      true if the given category must be expanded
      Since:
      jcms-3.0
    • isAdminArea

      public boolean isAdminArea()
    • getAvailableTypeList

      public List getAvailableTypeList()
    • setGroupWorkspace

      public void setGroupWorkspace(String wsId)
    • getAvailableGroupWorkspace

      public Workspace getAvailableGroupWorkspace()
    • getAvailableRootEditCatSet

      public Set getAvailableRootEditCatSet()
    • getAvailableRootUseCatSet

      public Set getAvailableRootUseCatSet()
    • setId

      public void setId(String id)
      Overrides:
      setId in class EditDataHandler
    • getAvailableName

      public String getAvailableName()
    • getAvailableNameML

      public HashMap<String,String> getAvailableNameML()
    • getAllAvailableNameML

      public HashMap<String,String> getAllAvailableNameML()
    • getAvailableName

      public String getAvailableName(String lang)
    • setName

      public void setName(String[] v)
      Set the name (multilingual) to use for the group being edited.
      Parameters:
      v - the names to set in all site languages
    • getAvailableDescription

      public String getAvailableDescription()
      Get the available description for the group being edited.
      Returns:
      a string value, never return null.
      Since:
      jcms-9.0.1 -- JCMS-4405
    • setDescription

      public void setDescription(String... desc)
      Set the description (monolingual) to use for the group being edited.
      Parameters:
      desc - the description to set
      Since:
      jcms-9.0.1 -- JCMS-4405
    • getAvailableOrder

      public int getAvailableOrder()
    • setOrder

      public void setOrder(int v)
    • getAvailableVisibility

      public int getAvailableVisibility()
    • setVisibility

      public void setVisibility(int v)
    • getVisibilityValues

      public String[] getVisibilityValues()
    • getVisibilityLabels

      public String[] getVisibilityLabels()
    • getAvailableCookieMaxAge

      public int getAvailableCookieMaxAge()
    • setCookieMaxAge

      public void setCookieMaxAge(int v)
    • setCanPublish

      public void setCanPublish(String[] v)
    • setCanUpdate

      public void setCanUpdate(String[] v)
    • setCanDelete

      public void setCanDelete(String[] v)
    • setCids

      public void setCids(String[] v)
    • setUsecids

      public void setUsecids(String[] v)
    • getAvailableUseCategorySet

      public TreeSet getAvailableUseCategorySet()
    • getAvailableEditCategorySet

      public Set getAvailableEditCategorySet()
    • getAvailableParentSet

      public HashSet getAvailableParentSet()
    • setParentIds

      public void setParentIds(String[] parentIds)
    • setParentSetAddCount

      public void setParentSetAddCount(int v)
    • getParentIdsCount

      public int getParentIdsCount()
    • setNotificationFormHandler

      public void setNotificationFormHandler(EditNotificationHandler v)
    • getAvailableLdapDN

      public String getAvailableLdapDN()
      Return the distinguish name of the group being edited.
      Returns:
      the LDAP DN of the group being edited
      Since:
      jcms-5.7.0
    • setLdapDN

      public void setLdapDN(String ldapDN)
      Set the distinguish name of the group being edited.
      Parameters:
      ldapDN - an LDAP DN
      Since:
      jcms-5.7.0
    • getAvailableLdapSync

      public boolean getAvailableLdapSync()
      Return true if the group being edited should be synchronized with LDAP, false otherwise.
      Returns:
      true if LDAP sync is enabled for the group, false otherwise
      Since:
      jcms-5.7.0
    • setLdapSync

      public void setLdapSync(boolean ldapSync)
      Sets if the group being edited should be synchronized with LDAP (true), false otherwise.
      Parameters:
      ldapSync - true to enable LDAP synchronization, false otherwise
      Since:
      jcms-5.7.0
    • setAclId

      public void setAclId(String id)
      Define the ACL id to use for the group being edited.
      Parameters:
      id - an ACL id
      Since:
      jcms-7.0.0
    • getAvailableAccessControlList

      public AccessControlList getAvailableAccessControlList()
      Retrieve the ACL in use for the group being edited.
      Returns:
      an ACL or null
      Since:
      jcms-7.0.0
    • getAvailableDeclaredManager

      public Member getAvailableDeclaredManager()
    • setDeclaredManager

      public void setDeclaredManager(String id)
    • showDeclaredManager

      public boolean showDeclaredManager()
    • getAvailableAssistantSet

      public Set<Member> getAvailableAssistantSet()
      Returns:
      the set of assistants of this group
      Since:
      jcms-10.0.7 JCMS-9897
    • setAssistants

      public void setAssistants(String[] v)
      Parameters:
      v - multiple assistants to set
      Since:
      jcms-10.0.7 JCMS-9897
    • getAvailableAssistant

      @Deprecated public Member getAvailableAssistant()
      Deprecated.
      Deprecated, use getAvailableAssistantSet() instead.
      Returns:
      legacy monovaluated assistant
      Since:
      jcms-10.0.6
    • setAssistant

      @Deprecated public void setAssistant(String id)
      Deprecated.
      Deprecated, use setAssistants(String[]) instead.
      Parameters:
      id - legacy monovaluated assistant
      Since:
      jcms-10.0.6
    • showAssistant

      public boolean showAssistant()
    • getAvailableTeamPortal

      public PortalInterface getAvailableTeamPortal()
    • setTeamPortal

      public void setTeamPortal(String id)
    • getAvailableProfilingCategorySet

      public Set<Category> getAvailableProfilingCategorySet()
    • setProfilingCategories

      public void setProfilingCategories(String[] v)