Class PublicationCaddyManagerHandler

    • Field Detail

      • opRefine

        protected java.lang.String opRefine
      • opTrash

        protected java.lang.String opTrash
      • refcids

        protected java.lang.String[] refcids
      • reftypes

        protected java.lang.String[] reftypes
      • noCategory

        protected boolean noCategory
      • noCommonCategory

        protected boolean noCommonCategory
      • authorId

        protected java.lang.String authorId
      • commonAuthorId

        protected java.lang.String commonAuthorId
      • newWSId

        protected java.lang.String newWSId
      • commonWSId

        protected java.lang.String commonWSId
      • commonTracked

        protected boolean commonTracked
      • commonTrackedAvailable

        protected boolean commonTrackedAvailable
      • isTrackedProvided

        protected boolean isTrackedProvided
      • isTracked

        protected boolean isTracked
      • templates

        protected java.lang.String[] templates
      • commonTemplates

        protected java.lang.String[] commonTemplates
      • pstatus

        protected int pstatus
      • pdate

        protected java.util.Date pdate
      • commonPdate

        protected java.util.Date commonPdate
      • edate

        protected java.util.Date edate
      • commonEdate

        protected java.util.Date commonEdate
      • adate

        protected java.util.Date adate
      • commonAdate

        protected java.util.Date commonAdate
      • noPdate

        protected boolean noPdate
      • noEdate

        protected boolean noEdate
      • noAdate

        protected boolean noAdate
      • commonMainLanguage

        protected java.lang.String commonMainLanguage
      • mainLanguage

        protected java.lang.String mainLanguage
      • majorUpdate

        protected boolean majorUpdate
      • removeFriendlyURLs

        protected boolean removeFriendlyURLs
      • generateFriendlyURLs

        protected boolean generateFriendlyURLs
      • noReadRight

        protected boolean noReadRight
      • authorizedMemberSet

        protected java.util.TreeSet<Member> authorizedMemberSet
      • commonAuthorizedMemberSet

        protected java.util.TreeSet<Member> commonAuthorizedMemberSet
      • authorizedMemberSetAddCount

        protected int authorizedMemberSetAddCount
      • authorizedGroups

        protected Group[] authorizedGroups
      • commonAuthorizedGroups

        protected Group[] commonAuthorizedGroups
      • authorizedGroupsAddCount

        protected int authorizedGroupsAddCount
      • noUpdateRight

        protected boolean noUpdateRight
      • restrictUpdateRights

        protected java.lang.Boolean restrictUpdateRights
      • updateGroups

        protected Group[] updateGroups
      • commonUpdateGroups

        protected Group[] commonUpdateGroups
      • updateGroupsAddCount

        protected int updateGroupsAddCount
      • updateMemberSet

        protected java.util.TreeSet<Member> updateMemberSet
      • commonUpdateMemberSet

        protected java.util.TreeSet<Member> commonUpdateMemberSet
      • updateMemberSetAddCount

        protected int updateMemberSetAddCount
      • categorySet

        protected java.util.TreeSet<Category> categorySet
      • commonCategorySet

        protected java.util.TreeSet<Category> commonCategorySet
      • commonClass

        protected java.lang.Class<? extends Publication> commonClass
      • commonSuperClass

        protected java.lang.Class<? extends Publication> commonSuperClass
      • commonWFState

        protected WFState commonWFState
      • newAuthor

        protected Member newAuthor
      • containsOnlyTrashablePublication

        protected boolean containsOnlyTrashablePublication
      • containsOnlyUntrashablePublication

        protected boolean containsOnlyUntrashablePublication
      • isChildValidated

        protected boolean isChildValidated
      • isExactCategoryValidated

        protected boolean isExactCategoryValidated
      • exactCategory

        protected boolean exactCategory
      • cssFile

        protected java.lang.String cssFile
      • skinClasses

        protected java.lang.String skinClasses
      • skinFooter

        protected java.lang.String skinFooter
      • skinFooterML

        protected java.util.HashMap<java.lang.String,​java.lang.String> skinFooterML
      • expandState

        protected java.lang.String expandState
      • popupState

        protected java.lang.String popupState
      • backImage

        protected java.lang.String backImage
      • isBorderValidated

        protected boolean isBorderValidated
      • border

        protected int border
      • backColor

        protected java.lang.String backColor
      • borderColor

        protected java.lang.String borderColor
      • isInsetTopValidated

        protected boolean isInsetTopValidated
      • insetTop

        protected int insetTop
      • isInsetLeftValidated

        protected boolean isInsetLeftValidated
      • insetLeft

        protected int insetLeft
      • isCellPaddingValidated

        protected boolean isCellPaddingValidated
      • cellPadding

        protected int cellPadding
      • isInsetRightValidated

        protected boolean isInsetRightValidated
      • insetRight

        protected int insetRight
      • isInsetBottomValidated

        protected boolean isInsetBottomValidated
      • insetBottom

        protected int insetBottom
      • width

        protected java.lang.String width
      • alignTable

        protected java.lang.String alignTable
      • alignV

        protected java.lang.String alignV
      • alignH

        protected java.lang.String alignH
      • cacheType

        protected java.lang.String cacheType
      • cacheSensibility

        protected java.lang.String cacheSensibility
      • invalidClass

        protected java.lang.String[] invalidClass
      • isInvalidTimeValidated

        protected boolean isInvalidTimeValidated
      • invalidTime

        protected long invalidTime
      • behaviorCopy

        protected java.lang.String behaviorCopy
      • condition

        protected java.lang.String[] condition
      • abilities

        protected java.lang.String[] abilities
    • Constructor Detail

      • PublicationCaddyManagerHandler

        public PublicationCaddyManagerHandler()
    • Method Detail

      • computeWorkingPubSet

        protected void computeWorkingPubSet()
      • compute

        protected void compute()
        This methods computes all the common attributes of the publication in the caddy.
      • 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 AbstractCaddyManagerHandler
        Returns:
        false if no redirection is needed, true otherwise
        Throws:
        java.io.IOException - IO Exception
      • validateCommonPdateEdate

        public boolean validateCommonPdateEdate()
      • setOpRefine

        public void setOpRefine​(java.lang.String v)
      • setRefineCids

        public void setRefineCids​(java.lang.String[] refcids)
        Sets the cids to be used in refine operation to select publications which belong to the corresponding categories (remove all the others from the caddy).
        Parameters:
        refcids - The id of the category that is to be used to select a subset of the caddy.
      • setRefineTypes

        public void setRefineTypes​(java.lang.String[] reftypes)
        Important: This setter trigger an immediate action modifying the caddy content! Sets the types of publication to keep in the caddy.
        Parameters:
        reftypes - The types to keep in the caddy.
      • setOpTrash

        public void setOpTrash​(java.lang.String v)
      • setSilentUpdate

        public void setSilentUpdate​(java.lang.String val)
      • getCategorySet

        public java.util.SortedSet<Category> getCategorySet()
        Returns:
        a Set of Category
      • isExpanded

        public boolean isExpanded​(Category cat,
                                  java.lang.String inputName)
        Check if the specified category has been expanded in the treecat
        Parameters:
        cat - the category to check, must not be null
        inputName - this parameter is not used
        Returns:
        true if the given category must be expanded
        Since:
        jcms-3.0
      • isWFHomogeneous

        public boolean isWFHomogeneous()
        Check if publication in the caddy use the same Workflow.
        Returns:
        true if all publication in the caddy use the same Workflow
        Since:
        jcms-4.1
      • getCommonWorkflow

        public Workflow getCommonWorkflow()
      • getCommonWFState

        public WFState getCommonWFState()
      • isTypeHomogeneous

        public boolean isTypeHomogeneous()
        Check if publication in the caddy are of same class.
        Returns:
        true if all publication in the caddy are of the same type
        Since:
        jcms-4.1
      • getCommonClass

        public java.lang.Class<? extends Publication> getCommonClass()
      • getCommonSuperClass

        public java.lang.Class<? extends Publication> getCommonSuperClass()
        Retrieve the common super class of all publicaiton in the caddy
        Returns:
        a class, return null, Publication.class is guaranteed to be at least the most commont one
        Since:
        jcms-10.0.4 / JCMS-5407
      • isPortletSkinable

        public boolean isPortletSkinable()
        Check if all publication in the caddy are PortletSkinable.
        Returns:
        true if all publication in the caddy are PortletSkinable
        Since:
        jcms-10.0.4 / JCMS-5407
      • isPortalElement

        public boolean isPortalElement()
        Check if all publication in the caddy are PortalElement.
        Returns:
        true if all publication in the caddy are PortalElement
        Since:
        jcms-10.0.4 / JCMS-5407
      • isPortlet

        public boolean isPortlet()
        Check if all publication in the caddy are Portlet.
        Returns:
        true if all publication in the caddy are Portlet
        Since:
        jcms-10.0.4 / JCMS-5407
      • isPortal

        public boolean isPortal()
        Check if all publication in the caddy are Portal.
        Returns:
        true if all publication in the caddy are Portal
        Since:
        jcms-10.0.4 / JCMS-5407
      • containsOnlyTrashablePublication

        public boolean containsOnlyTrashablePublication()
        Check if all publication in the caddy are trashable
        Returns:
        true if all publication in the caddy are trashable
        Since:
        jcms-10.0.5 / JCMS-8353
      • containsOnlyUntrashablePublication

        public boolean containsOnlyUntrashablePublication()
        Check if all publication in the caddy are untrashable
        Returns:
        true if all publication in the caddy are untrashable
        Since:
        jcms-10.0.7 / JCMS-9473
      • getAuthorId

        public java.lang.String getAuthorId()
      • getAuthor

        public Member getAuthor()
      • setAuthorId

        public void setAuthorId​(java.lang.String v)
      • getAvailableNewWS

        public Workspace getAvailableNewWS()
      • setNewWSId

        public void setNewWSId​(java.lang.String v)
      • getTemplates

        public java.lang.String[] getTemplates()
        Retrieve the templates value that were asked to be set for publication.
        Returns:
        an array of template name or null if no templates was requested
      • setTemplates

        public void setTemplates​(java.lang.String[] templates)
        Set the templates to define for the set of publication in the caddy.
        Parameters:
        templates - an array of template name, or null to skipp
      • getPstatus

        public int getPstatus()
        Get the value of pstatus.
        Returns:
        Value of pstatus.
      • setPstatus

        public void setPstatus​(int v)
        Set the value of pstatus.
        Parameters:
        v - Value to assign to pstatus.
      • setPdate

        public void setPdate​(java.lang.String v)
        Set the value of pdate.
        Parameters:
        v - Value to assign to pdate.
      • setEdate

        public void setEdate​(java.lang.String v)
        Set the value of edate.
        Parameters:
        v - Value to assign to edate.
      • setAdate

        public void setAdate​(java.lang.String v)
        Set the value of adate.
        Parameters:
        v - Value to assign to adate.
      • getNoPdate

        public boolean getNoPdate()
        Get the value of noPdate.
        Returns:
        Value of noPdate.
      • setNoPdate

        public void setNoPdate​(boolean v)
        Set the value of noPdate.
        Parameters:
        v - Value to assign to noPdate.
      • getNoEdate

        public boolean getNoEdate()
        Get the value of noEdate.
        Returns:
        Value of noEdate.
      • setNoEdate

        public void setNoEdate​(boolean v)
        Set the value of noEdate.
        Parameters:
        v - Value to assign to noEdate.
      • getNoAdate

        public boolean getNoAdate()
        Get the value of noAdate.
        Returns:
        Value of noAdate.
      • setNoAdate

        public void setNoAdate​(boolean v)
        Set the value of noAdate.
        Parameters:
        v - Value to assign to noAdate.
      • setAuthorizedMemberIds

        public void setAuthorizedMemberIds​(java.lang.String[] mbrIds)
        Set the value of authorizedMemberIds.
        Parameters:
        mbrIds - Value to assign to authorizedMemberIds.
        Since:
        jcms-2.1
      • getAvailableAuthorizedGroups

        public Group[] getAvailableAuthorizedGroups()
      • getAvailableAuthor

        public Member getAvailableAuthor()
      • getAvailableTemplates

        public java.lang.String[] getAvailableTemplates()
      • setAuthorizedGroups

        public void setAuthorizedGroups​(java.lang.String[] v)
      • setAuthorizedGroupsAddCount

        public void setAuthorizedGroupsAddCount​(int v)
      • setAuthorizedMemberSetAddCount

        public void setAuthorizedMemberSetAddCount​(int v)
      • setUpdateMemberSetAddCount

        public void setUpdateMemberSetAddCount​(int v)
      • getAuthorizedGroupsCount

        public int getAuthorizedGroupsCount()
      • getAuthorizedGroupsAddCount

        public int getAuthorizedGroupsAddCount()
      • getAvailableAuthorizedMemberSet

        public java.util.Set<Member> getAvailableAuthorizedMemberSet()
      • getAvailableUpdateMemberSet

        public java.util.Set<Member> getAvailableUpdateMemberSet()
      • getAvailablePdate

        public java.util.Date getAvailablePdate()
      • getAvailableEdate

        public java.util.Date getAvailableEdate()
      • getAvailableAdate

        public java.util.Date getAvailableAdate()
      • getAvailableRestrictUpdateRights

        public java.lang.Boolean getAvailableRestrictUpdateRights()
      • setRestrictUpdateRights

        public void setRestrictUpdateRights​(java.lang.String v)
      • setUpdateMemberIds

        public void setUpdateMemberIds​(java.lang.String[] mbrIds)
        Set the value of updateMemberIds.
        Parameters:
        mbrIds - Value to assign to updateMemberIds.
        Since:
        jcms-3.2
      • getAvailableUpdateGroups

        public Group[] getAvailableUpdateGroups()
      • setUpdateGroups

        public void setUpdateGroups​(java.lang.String[] v)
      • setUpdateGroupsAddCount

        public void setUpdateGroupsAddCount​(int v)
      • getUpdateGroupsCount

        public int getUpdateGroupsCount()
      • getUpdateGroupsAddCount

        public int getUpdateGroupsAddCount()
      • getAuthorizedMemberSetCount

        public int getAuthorizedMemberSetCount()
      • getUpdateMemberSetCount

        public int getUpdateMemberSetCount()
      • getUpdateMemberSetAddCount

        public int getUpdateMemberSetAddCount()
      • getNoReadRight

        public boolean getNoReadRight()
        Get the value of noReadRight.
        Returns:
        Value of noReadRight.
      • setNoReadRight

        public void setNoReadRight​(boolean v)
        Set the value of noReadRight.
        Parameters:
        v - Value to assign to noReadRight.
      • getNoUpdateRight

        public boolean getNoUpdateRight()
        Get the value of noUpdateRight.
        Returns:
        Value of noUpdateRight.
      • setNoUpdateRight

        public void setNoUpdateRight​(boolean v)
        Set the value of noUpdateRight.
        Parameters:
        v - Value to assign to noUpdateRight.
      • setNoCategory

        public void setNoCategory​(boolean v)
        Set the value of noCategory.
        Parameters:
        v - Value to assign to noCategory.
      • getNoCategory

        public boolean getNoCategory()
        Gets the value of noCategory
        Returns:
        true if category should be removed from all publication
      • setNoCommonCategory

        public void setNoCommonCategory​(boolean v)
        Set the value of noCommonCategory.
        Parameters:
        v - Value to assign to noCommonCategory.
      • getNoCommonCategory

        public boolean getNoCommonCategory()
        Gets the value of noCommonCategory
        Returns:
        true if category common to all publication should be removed
      • setCids

        public void setCids​(java.lang.String[] cids)
        Set the value of cids.
        Parameters:
        cids - Value to assign to cids.
      • setTracked

        public void setTracked​(boolean track)
        Set whether publication should be tracked or not.
        Parameters:
        track - true to enable reader tracker for all publication false to disable it
        Since:
        jcms-5.0.0
      • isCommonTrackedAvailable

        public boolean isCommonTrackedAvailable()
        Check if a common tracked value was found for all publication of the caddy
        Returns:
        true if a common value could be computed, false if value differ
        Since:
        jcms-5.0.0
      • getCommonTracked

        public boolean getCommonTracked()
        Retrieve the tracked value common to all publication, this getter is only valid if isCommonTrackedAvailable() is true.
        Returns:
        the common tracked value of all publication
        Since:
        jcms-5.0.0
      • setMainLanguage

        public void setMainLanguage​(java.lang.String lang)
        Set the main language to assign to all publication.
        Parameters:
        lang - an ISO-639 language code
        Since:
        jcms-5.5.0
      • getCommonMainLanguage

        public java.lang.String getCommonMainLanguage()
        Retrieve the mainlanguage common to all publication, if any.
        Returns:
        an ISO-639 language code or null if no common language could be computed
        Since:
        jcms-5.5.0
      • setMajorUpdate

        public void setMajorUpdate​(java.lang.String v)
        Set whether the update perform by the caddy on publication should be a major updated
        Parameters:
        v - the value of this parameter is ignored, as long as this method is invoked the update will be a major update
        Since:
        jcms-5.7.0
      • getRemoveFriendlyURLs

        public boolean getRemoveFriendlyURLs()
        Check if friendly url will be removed during update.
        Returns:
        true if friendly urls should be removed for all publication of the caddy
        Since:
        jcms-5.5.0
      • setRemoveFriendlyURLs

        public void setRemoveFriendlyURLs​(boolean remove)
        Set if friendly urls should be removed for all publication of the caddy
        Parameters:
        remove - true to remove friendly url, false to leave as is
        Since:
        jcms-5.5.0
      • getGenerateFriendlyURLs

        public boolean getGenerateFriendlyURLs()
        Check whether friendly URL should be automatically generated from publication's category and title.
        Returns:
        true if friendly URL will be generated
        Since:
        jcms-5.5.0
      • setGenerateFriendlyURLs

        public void setGenerateFriendlyURLs​(boolean generate)
        Set whether friendly URL should be automatically generated from publication's category and title.
        Parameters:
        generate - true to generate new friendly url (added to existing one), false to leave friendly url as is
        Since:
        jcms-5.5.0
      • setChild

        public void setChild​(java.lang.String id)
      • setExactCategory

        public void setExactCategory​(boolean v)
      • getAvailableExactCategory

        public boolean getAvailableExactCategory()
      • setCssFile

        public void setCssFile​(java.lang.String[] v)
      • getAvailableCssFile

        public java.lang.String getAvailableCssFile()
      • setSkinClasses

        public void setSkinClasses​(java.lang.String[] v)
      • getAvailableSkinClasses

        public java.lang.String getAvailableSkinClasses()
      • setSkinFooter

        public void setSkinFooter​(java.lang.String[] v)
      • getAllAvailableSkinFooterML

        public java.util.HashMap<java.lang.String,​java.lang.String> getAllAvailableSkinFooterML()
      • setExpandState

        public void setExpandState​(java.lang.String[] v)
      • getAvailableExpandState

        public java.lang.String getAvailableExpandState()
      • setPopupState

        public void setPopupState​(java.lang.String[] v)
      • getAvailablePopupState

        public java.lang.String getAvailablePopupState()
      • setBackImage

        public void setBackImage​(java.lang.String[] v)
      • getAvailableBackImage

        public java.lang.String getAvailableBackImage()
      • setBorder

        public void setBorder​(java.lang.String v)
      • getAvailableBorder

        public int getAvailableBorder()
      • setBackColor

        public void setBackColor​(java.lang.String[] v)
      • getAvailableBackColor

        public java.lang.String getAvailableBackColor()
      • setBorderColor

        public void setBorderColor​(java.lang.String[] v)
      • getAvailableBorderColor

        public java.lang.String getAvailableBorderColor()
      • setInsetTop

        public void setInsetTop​(java.lang.String v)
      • getAvailableInsetTop

        public int getAvailableInsetTop()
      • setInsetLeft

        public void setInsetLeft​(java.lang.String v)
      • getAvailableInsetLeft

        public int getAvailableInsetLeft()
      • setCellPadding

        public void setCellPadding​(java.lang.String v)
      • getAvailableCellPadding

        public int getAvailableCellPadding()
      • setInsetRight

        public void setInsetRight​(java.lang.String v)
      • getAvailableInsetRight

        public int getAvailableInsetRight()
      • setInsetBottom

        public void setInsetBottom​(java.lang.String v)
      • getAvailableInsetBottom

        public int getAvailableInsetBottom()
      • setWidth

        public void setWidth​(java.lang.String[] v)
      • getAvailableWidth

        public java.lang.String getAvailableWidth()
      • setAlignTable

        public void setAlignTable​(java.lang.String[] v)
      • getAvailableAlignTable

        public java.lang.String getAvailableAlignTable()
      • setAlignV

        public void setAlignV​(java.lang.String[] v)
      • getAvailableAlignV

        public java.lang.String getAvailableAlignV()
      • setAlignH

        public void setAlignH​(java.lang.String[] v)
      • getAvailableAlignH

        public java.lang.String getAvailableAlignH()
      • setCacheType

        public void setCacheType​(java.lang.String[] v)
      • getAvailableCacheType

        public java.lang.String getAvailableCacheType()
      • setCacheSensibility

        public void setCacheSensibility​(java.lang.String[] v)
      • getAvailableCacheSensibility

        public java.lang.String getAvailableCacheSensibility()
      • setInvalidClass

        public void setInvalidClass​(java.lang.String[] v)
      • getAvailableInvalidClass

        public java.lang.String[] getAvailableInvalidClass()
      • setInvalidTime

        public void setInvalidTime​(java.lang.String v)
      • getAvailableInvalidTime

        public long getAvailableInvalidTime()
      • setBehaviorCopy

        public void setBehaviorCopy​(java.lang.String[] v)
      • getAvailableBehaviorCopy

        public java.lang.String getAvailableBehaviorCopy()
      • setCondition

        public void setCondition​(java.lang.String[] v)
      • getAvailableCondition

        public java.lang.String[] getAvailableCondition()
      • setAbilities

        public void setAbilities​(java.lang.String[] abilities)
      • getAvailableAbilities

        public java.lang.String[] getAvailableAbilities()