Class CmsRestoreStateAction

    • Constructor Detail

      • CmsRestoreStateAction

        public CmsRestoreStateAction​(java.lang.String id,
                                     org.opencms.file.CmsObject cms)
        Default constructor.

        Parameters:
        id - the id of the action
        cms - the cms context
    • Method Detail

      • getCms

        public org.opencms.file.CmsObject getCms()
        Returns the cms context.

        Returns:
        the cms context
      • getResource

        public java.lang.String getResource()
        Returns the resource.

        Returns:
        the resource
      • isVisible

        public boolean isVisible()
        Specified by:
        isVisible in interface org.opencms.workplace.tools.I_CmsHtmlIconButton
        Overrides:
        isVisible in class org.opencms.workplace.tools.A_CmsHtmlIconButton
        See Also:
        A_CmsHtmlIconButton.isVisible()
      • setResource

        public void setResource​(java.lang.String resource)
        Sets the resource.

        Parameters:
        resource - the resource to set