Class PageLinkConfig

    • Field Detail

      • PAGE_LINK_TYPE_HOME_PAGE

        public static final int PAGE_LINK_TYPE_HOME_PAGE
        See Also:
        Constant Field Values
      • PAGE_LINK_TYPE_ADMINISTRATION

        public static final int PAGE_LINK_TYPE_ADMINISTRATION
        See Also:
        Constant Field Values
      • PAGE_LINK_TYPE_ERROR_PAGE

        public static final int PAGE_LINK_TYPE_ERROR_PAGE
        See Also:
        Constant Field Values
    • Constructor Detail

      • PageLinkConfig

        public PageLinkConfig()
    • Method Detail

      • getId

        public String getId()
        Returns:
        Returns the id.
      • setId

        public void setId​(String id)
        Parameters:
        id - The id to set.
      • getPageId

        public String getPageId()
        Returns:
        Returns the pageId.
      • setPageId

        public void setPageId​(String pageId)
        Parameters:
        pageId - The pageId to set.
      • getType

        public int getType()
        Returns:
        Returns the type.
      • setType

        public void setType​(int type)
        Parameters:
        type - The type to set.
      • setWebsite

        @Deprecated
        public void setWebsite​(String websiteStr)
        Deprecated.
        Since 6.2.0 replaced by #setWebsiteObject(IWebsite)
        This method defines the website to the page link. The website must exist previously on database.

        The website will be identified by the main URL defined on the Website Administration. If not found one website that the main URL match with the website parameter, an IllegalArgumentException will be raised.
        Parameters:
        websiteStr - The website main URL of the website target, that will be used on the page link.
      • getChannelId

        public String getChannelId()
        The channel id for a page link applies only to the type 0.
        Returns:
        Returns the channelId
        Since:
        5.0.0
      • setChannelId

        public void setChannelId​(String channelId)
        Sets the channel for the page link.
        Parameters:
        channelId - The channelId to set.
        Since:
        5.0.0
      • setCapabilities

        public void setCapabilities​(String capabilities)
        Sets the capabilities.
        Parameters:
        capabilities - the capabilities to store.
        Throws:
        IllegalArgumentException - if the given capabilities is an invalid EL.
        Since:
        6.0.0
      • setPriority

        public void setPriority​(int priority)
        Sets the priority.
        Parameters:
        priority - the priority to store.
        Since:
        6.0.0
      • getCapabilities

        public String getCapabilities()
        Returns the capabilities.
        Returns:
        the capabilities.
        Since:
        6.0.0
      • getPriority

        public int getPriority()
        Returns the priority of the page link.
        Returns:
        the priority.
      • setWebsite

        public void setWebsite​(IWebsite website)
        Sets the websiteData.
        Parameters:
        website - the website value to set.
        Since:
        6.2.0
      • getWebsiteObject

        public IWebsite getWebsiteObject()
        Returns the website object that contains all informations about the website and URLs.
        Returns:
        the the website object that contains all informations about the website and URLs.
        Since:
        6.2.0
      • setUsesAllWebsiteBaseURLs

        protected void setUsesAllWebsiteBaseURLs​(boolean usesAllWebsiteBaseURLs)
        Sets the usesAllWebsiteBaseURLs.

        When the parameter usesAllWebsiteBaseURLs is set to true, automatically clears the list of URLs' identifiers associated with this page link.

        Parameters:
        usesAllWebsiteBaseURLs - the usesAllWebsiteBaseURLs value to set.
        Since:
        6.2.0
      • isUsesAllWebsiteBaseURLs

        public boolean isUsesAllWebsiteBaseURLs()
        Indicates whether all website base URLs will be used or not.
        Returns:
        the true if all website base URLs will are used, otherwise false.
        Since:
        6.2.0
      • setName

        public void setName​(String name)
        Sets the name
        Parameters:
        name - the name.
        Since:
        6.2.0
      • getName

        public String getName()
        Returns the name.
        Returns:
        the name.
        Since:
        6.2.0