Class EditGroupHandler

    • Field Detail

      • name

        protected java.lang.String name
      • nameML

        protected java.util.HashMap<java.lang.String,​java.lang.String> nameML
      • description

        protected java.lang.String description
      • order

        protected int order
      • cookieMaxAge

        protected int cookieMaxAge
      • webdavAccess

        protected boolean webdavAccess
      • parentSet

        protected java.util.HashSet parentSet
      • groupWorkspace

        protected Workspace groupWorkspace
      • visibility

        protected int visibility
      • DEFAULT_REDIRECT

        protected static final java.lang.String DEFAULT_REDIRECT
        See Also:
        Constant Field Values
      • group

        protected Group group
      • workingGroup

        protected Group workingGroup
      • publishSet

        protected java.util.HashSet publishSet
      • updateSet

        protected java.util.HashSet updateSet
      • deleteSet

        protected java.util.HashSet deleteSet
      • editCategorySet

        protected java.util.HashSet editCategorySet
      • useCategorySet

        protected java.util.TreeSet useCategorySet
      • rightsProvided

        protected boolean rightsProvided
      • parentIdsAddCount

        protected int parentIdsAddCount
      • ldapDN

        protected java.lang.String ldapDN
      • ldapSync

        protected boolean ldapSync
      • declaredManager

        protected Member declaredManager
      • assistant

        @Deprecated
        protected Member assistant
        Deprecated.
      • assistantSet

        protected java.util.TreeSet<Member> assistantSet
    • Constructor Detail

      • EditGroupHandler

        public EditGroupHandler()
    • Method Detail

      • processAction

        public boolean processAction()
                              throws java.io.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:
        java.io.IOException - IO Exception
      • getGroup

        public Group getGroup()
      • canPublish

        public boolean canPublish​(java.lang.Class clazz)
      • canUpdate

        public boolean canUpdate​(java.lang.Class clazz)
      • canDelete

        public boolean canDelete​(java.lang.Class clazz)
      • getCategorySet

        public java.util.Set getCategorySet​(java.lang.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,
                                  java.lang.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 java.util.List getAvailableTypeList()
      • setGroupWorkspace

        public void setGroupWorkspace​(java.lang.String wsId)
      • getAvailableGroupWorkspace

        public Workspace getAvailableGroupWorkspace()
      • getAvailableRootEditCatSet

        public java.util.Set getAvailableRootEditCatSet()
      • getAvailableRootUseCatSet

        public java.util.Set getAvailableRootUseCatSet()
      • getAvailableName

        public java.lang.String getAvailableName()
      • getAvailableNameML

        public java.util.HashMap<java.lang.String,​java.lang.String> getAvailableNameML()
      • getAllAvailableNameML

        public java.util.HashMap<java.lang.String,​java.lang.String> getAllAvailableNameML()
      • getAvailableName

        public java.lang.String getAvailableName​(java.lang.String lang)
      • setName

        public void setName​(java.lang.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 java.lang.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​(java.lang.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 java.lang.String[] getVisibilityValues()
      • getVisibilityLabels

        public java.lang.String[] getVisibilityLabels()
      • getAvailableWebdavAccess

        public boolean getAvailableWebdavAccess()
      • setWebdavAccess

        public void setWebdavAccess​(boolean webdavAccess)
      • getAvailableCookieMaxAge

        public int getAvailableCookieMaxAge()
      • setCookieMaxAge

        public void setCookieMaxAge​(int v)
      • setCanPublish

        public void setCanPublish​(java.lang.String[] v)
      • setCanUpdate

        public void setCanUpdate​(java.lang.String[] v)
      • setCanDelete

        public void setCanDelete​(java.lang.String[] v)
      • setCids

        public void setCids​(java.lang.String[] v)
      • setUsecids

        public void setUsecids​(java.lang.String[] v)
      • getAvailableUseCategorySet

        public java.util.TreeSet getAvailableUseCategorySet()
      • getAvailableEditCategorySet

        public java.util.Set getAvailableEditCategorySet()
      • getAvailableParentSet

        public java.util.HashSet getAvailableParentSet()
      • setParentIds

        public void setParentIds​(java.lang.String[] parentIds)
      • setParentSetAddCount

        public void setParentSetAddCount​(int v)
      • getParentIdsCount

        public int getParentIdsCount()
      • getAvailableLdapDN

        public java.lang.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​(java.lang.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​(java.lang.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​(java.lang.String id)
      • showDeclaredManager

        public boolean showDeclaredManager()
      • getAvailableAssistantSet

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

        public void setAssistants​(java.lang.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​(java.lang.String id)
        Deprecated.
        Deprecated, use setAssistants(String[]) instead.
        Parameters:
        id - legacy monovaluated assistant
        Since:
        jcms-10.0.6
      • showAssistant

        public boolean showAssistant()
      • setTeamPortal

        public void setTeamPortal​(java.lang.String id)