Class DefaultPlugin

    • Constructor Detail

      • DefaultPlugin

        public DefaultPlugin()
    • Method Detail

      • init

        public void init()
        Description copied from interface: PluginIF
        INTERNAL: Called by the framework to finalize initialization. Called when there are no more parameters.
        Specified by:
        init in interface PluginIF
      • generateHTML

        public String generateHTML​(ContextTag context)
        Description copied from interface: PluginIF
        INTERNAL: Called by the framework to make the plugin produce the HTML that is going to represent it on a web page in the web application.
        Specified by:
        generateHTML in interface PluginIF
        Returns:
        An HTML string to be written into the page. If the returned string is null it means that the plugin does not wish to be displayed on this page.
      • getId

        public String getId()
        Description copied from interface: PluginIF
        INTERNAL: Returns the ID of this plugin.
        Specified by:
        getId in interface PluginIF
      • setId

        public void setId​(String id)
        Description copied from interface: PluginIF
        INTERNAL: Sets the ID of this plugin.
        Specified by:
        setId in interface PluginIF
      • resetGroups

        public void resetGroups()
        Description copied from interface: PluginIF
        INTERNAL: Reset all group settings for this plugin. After this operation this plugin will belong to no group.
        Specified by:
        resetGroups in interface PluginIF
      • getGroups

        public List getGroups()
        Description copied from interface: PluginIF
        INTERNAL: Returns the groups this plugin belongs to. Each group is represented by a string containing the group id.
        Specified by:
        getGroups in interface PluginIF
      • addGroup

        public void addGroup​(String groupId)
        Description copied from interface: PluginIF
        INTERNAL: Add the specified group to groups this plugin belongs to.
        Specified by:
        addGroup in interface PluginIF
      • setGroups

        public void setGroups​(List groups)
        Description copied from interface: PluginIF
        INTERNAL: Sets the groups this plugin belongs to.
        Specified by:
        setGroups in interface PluginIF
      • getTitle

        public String getTitle()
        Description copied from interface: PluginIF
        INTERNAL: Returns the title of this plugin.
        Specified by:
        getTitle in interface PluginIF
      • setTitle

        public void setTitle​(String title)
        Description copied from interface: PluginIF
        INTERNAL: Sets the title of this plugin.
        Specified by:
        setTitle in interface PluginIF
      • getDescription

        public String getDescription()
        Description copied from interface: PluginIF
        INTERNAL: Gets the description of this plugin.
        Specified by:
        getDescription in interface PluginIF
      • setDescription

        public void setDescription​(String description)
        Description copied from interface: PluginIF
        INTERNAL: Sets the description of this plugin.
        Specified by:
        setDescription in interface PluginIF
      • getURI

        public String getURI()
        Description copied from interface: PluginIF
        INTERNAL: Returns the URI of this plugin.
        Specified by:
        getURI in interface PluginIF
      • setURI

        public void setURI​(String uri)
        Description copied from interface: PluginIF
        INTERNAL: Sets the URI of this plugin.

        Note: This has not to contain the web application context path.

        Example: plugins/hello/hello.jsp

        Specified by:
        setURI in interface PluginIF
      • getTarget

        public String getTarget()
        Description copied from interface: PluginIF
        INTERNAL: Returns the URI frame target of this plugin.
        Specified by:
        getTarget in interface PluginIF
      • setTarget

        public void setTarget​(String target)
        Description copied from interface: PluginIF
        INTERNAL: Sets the URI frame target of this plugin.
        Specified by:
        setTarget in interface PluginIF
      • getState

        public int getState()
        Description copied from interface: PluginIF
        INTERNAL: Returns the state of this plugin.
        Specified by:
        getState in interface PluginIF
      • setState

        public void setState​(int state)
        Description copied from interface: PluginIF
        INTERNAL: Sets the state of this plugin.
        Specified by:
        setState in interface PluginIF
      • getParameter

        public String getParameter​(String name)
        Description copied from interface: PluginIF
        INTERNAL: Returns the value of the parameter.
        Specified by:
        getParameter in interface PluginIF
      • setParameter

        public void setParameter​(String name,
                                 String value)
        Description copied from interface: PluginIF
        INTERNAL: Called by the framework to give the plugin the value of a configuration parameter.
        Specified by:
        setParameter in interface PluginIF
      • getPluginDirectory

        public String getPluginDirectory()
        Description copied from interface: PluginIF
        INTERNAL: Returns the path to the plugin directory. This is the path in the file system the server is running in, if the web application is deployed as an unexploded WAR.
        Specified by:
        getPluginDirectory in interface PluginIF
      • setPluginDirectory

        public void setPluginDirectory​(String path)
        Description copied from interface: PluginIF
        INTERNAL: Called by the framework to give the plugin the directory its plugin.xml file was found in. This is useful for plugins which wish to use other files found in the same directory.
        Specified by:
        setPluginDirectory in interface PluginIF
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getStateAsString

        protected String getStateAsString()