Class AbstractPortletRegistryElement

    • Constructor Detail

      • AbstractPortletRegistryElement

        public AbstractPortletRegistryElement()
    • Method Detail

      • setCollectionProperty

        public void setCollectionProperty​(String key,
                                          Map<String,​Object> values)
        Description copied from interface: PortletRegistryElement
        Set the values for the Collection tag specified by the key. This Collection tag is contained within the registry element. Each key in the Map is represented as a value of the "name" attribute in the String tag and value for the key is represented as a value for the "value" attribute in the String tag. This String tag is contained within the Collection tag
        Specified by:
        setCollectionProperty in interface PortletRegistryElement
        Parameters:
        key - the value for the "name" attribute of the Collection tag.
        values - represented by "name" and "value" attribute of the String tags.
      • getCollectionProperty

        public Map<String,​Object> getCollectionProperty​(String key)
        Description copied from interface: PortletRegistryElement
        Returns the values contained in the Collection tag specified by the key. The Collection tag contains String tags. This String tag has either "name" attribute or both "name" and "value" attribute. If the String tag has only "name" attribute, the Map returned contains the value of the "name" attribute as both key and value. If the String tag has both "name" and "value" attribute, the Map returned contains the value of the "name" attribute as key and value of the "value" attribute as value.
        Specified by:
        getCollectionProperty in interface PortletRegistryElement
        Returns:
        a Map, the value of attributes "name" and "value" of String tag.
      • setCollectionProperty

        public void setCollectionProperty​(String key,
                                          List<String> values)
        Description copied from interface: PortletRegistryElement
        Set the values for the Collection tag specified by the key. This Collection tag is contained within the registry element. Each value in the list is represented as a value of the "value" attribute in the String tag. This String tag is contained within the Collection tag.
        Specified by:
        setCollectionProperty in interface PortletRegistryElement
        Parameters:
        key - the value for the "name" attribute of the Collection tag.
        values - represented by "value" attribute of the String tags.
      • getStringProperty

        public String getStringProperty​(String key)
        Description copied from interface: PortletRegistryElement
        Returns the value of the "name" attribute for the String tag specified by the key.
        Specified by:
        getStringProperty in interface PortletRegistryElement
        Returns:
        a String, the value represented by the "name" attribute for the String tag
      • getName

        public String getName()
        Description copied from interface: PortletRegistryElement
        Returns the value of "name" attribute of the registry element
        Specified by:
        getName in interface PortletRegistryElement
        Returns:
        a String, the value of "name" attribute of the registry element.
      • setName

        public void setName​(String name)
        Description copied from interface: PortletRegistryElement
        Set the value of the "name" attribute of the registry element.
        Specified by:
        setName in interface PortletRegistryElement
        Parameters:
        name - the value of the "name" attribute of the registry element.
      • getPortletName

        public String getPortletName()
        Description copied from interface: PortletRegistryElement
        Returns the value of "portletName" attribute of the registry element
        Specified by:
        getPortletName in interface PortletRegistryElement
        Returns:
        a String, the value of "portletName" attribute of the registry element.
      • setPortletName

        public void setPortletName​(String portletName)
        Description copied from interface: PortletRegistryElement
        Set the value of the "portletName" attribute of the registry element.
        Specified by:
        setPortletName in interface PortletRegistryElement
        Parameters:
        portletName - the value of the "portletName" attribute of the registry element.
      • getLang

        public String getLang()
        Description copied from interface: PortletRegistryElement
        Returns the value of the "lang" attribute for the String tag specified by the key.
        Specified by:
        getLang in interface PortletRegistryElement
        Returns:
        a String, the value represented by the "lang" attribute for the String tag
      • setLang

        public void setLang​(String lang)
        Description copied from interface: PortletRegistryElement
        Set the value of the "lang" attribute of the String tag.
        Specified by:
        setLang in interface PortletRegistryElement
        Parameters:
        lang - the value represented by the "lang" attribute for the String tag
      • getUserName

        public String getUserName()
        Description copied from interface: PortletRegistryElement
        Returns the value of "userName" attribute of the registry element
        Specified by:
        getUserName in interface PortletRegistryElement
        Returns:
        a String, the value of "userName" attribute of the registry element.
      • setUserName

        public void setUserName​(String userName)
        Description copied from interface: PortletRegistryElement
        Set the value of the "userName" attribute of the registry element.
        Specified by:
        setUserName in interface PortletRegistryElement
        Parameters:
        userName - the value of the "userName" attribute of the registry element.
      • getRemote

        public String getRemote()
        Description copied from interface: PortletRegistryElement
        Returns the value of "isRemote" attribute of the registry element
        Specified by:
        getRemote in interface PortletRegistryElement
        Returns:
        a String, the value of "isRemote" attribute of the registry element.
      • setRemote

        public void setRemote​(String isRemote)
        Description copied from interface: PortletRegistryElement
        Set the value of the "isRemote" attribute of the registry element.
        Specified by:
        setRemote in interface PortletRegistryElement
        Parameters:
        isRemote - the value of the "isRemote" attribute of the registry element.
      • getStringCollectionTable

        protected Map<String,​String> getStringCollectionTable()
      • populateValues

        protected void populateValues​(Element rootTag)
      • create

        protected void create​(Document document,
                              Element propertiesTag)