Class AbstractAction

  • All Implemented Interfaces:
    IAction, fr.paris.lutece.portal.service.i18n.Localizable, fr.paris.lutece.portal.service.rbac.RBACAction
    Direct Known Subclasses:
    DefaultAction, UnitAction, UnitUserAction

    public abstract class AbstractAction
    extends java.lang.Object
    implements IAction
    AbstractAction
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractAction()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)
      java.lang.String getDescription()
      Returns the Description
      java.lang.String getDescriptionKey()
      Returns the DescriptionKey
      java.lang.String getIcon()
      Returns the icon
      int getIdAction()
      Get the id action
      java.lang.String getName()
      Returns the Name
      java.lang.String getNameKey()
      Returns the NameKey
      java.lang.String getPermission()
      Returns the permission associated to the action
      java.lang.String getUrl()
      Return the Url
      int hashCode()
      void setDescriptionKey​(java.lang.String strDescriptionKey)
      Sets the DescriptionKey
      void setIcon​(java.lang.String strIcon)
      Sets the icon
      void setIdAction​(int nIdAction)
      Set the id action
      void setLocale​(java.util.Locale locale)
      Implements Localizable
      void setNameKey​(java.lang.String strNameKey)
      Sets the NameKey
      void setPermission​(java.lang.String strPermission)
      Sets the Permission
      void setUrl​(java.lang.String strUrl)
      Set the Url
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractAction

        public AbstractAction()
    • Method Detail

      • setIdAction

        public void setIdAction​(int nIdAction)
        Set the id action
        Specified by:
        setIdAction in interface IAction
        Parameters:
        nIdAction - the nIdAction to set
      • getIdAction

        public int getIdAction()
        Get the id action
        Specified by:
        getIdAction in interface IAction
        Returns:
        the nIdAction
      • setLocale

        public void setLocale​(java.util.Locale locale)
        Implements Localizable
        Specified by:
        setLocale in interface IAction
        Specified by:
        setLocale in interface fr.paris.lutece.portal.service.i18n.Localizable
        Parameters:
        locale - The current locale
      • getUrl

        public java.lang.String getUrl()
        Return the Url
        Specified by:
        getUrl in interface IAction
        Returns:
        The Url
      • setUrl

        public void setUrl​(java.lang.String strUrl)
        Set the Url
        Specified by:
        setUrl in interface IAction
        Parameters:
        strUrl - The Url
      • getNameKey

        public java.lang.String getNameKey()
        Returns the NameKey
        Specified by:
        getNameKey in interface IAction
        Returns:
        The NameKey
      • getName

        public java.lang.String getName()
        Returns the Name
        Specified by:
        getName in interface IAction
        Returns:
        The Name
      • setNameKey

        public void setNameKey​(java.lang.String strNameKey)
        Sets the NameKey
        Specified by:
        setNameKey in interface IAction
        Parameters:
        strNameKey - The NameKey
      • getDescriptionKey

        public java.lang.String getDescriptionKey()
        Returns the DescriptionKey
        Specified by:
        getDescriptionKey in interface IAction
        Returns:
        The DescriptionKey
      • getDescription

        public java.lang.String getDescription()
        Returns the Description
        Specified by:
        getDescription in interface IAction
        Returns:
        The Description
      • setDescriptionKey

        public void setDescriptionKey​(java.lang.String strDescriptionKey)
        Sets the DescriptionKey
        Specified by:
        setDescriptionKey in interface IAction
        Parameters:
        strDescriptionKey - The DescriptionKey
      • getIcon

        public java.lang.String getIcon()
        Returns the icon
        Specified by:
        getIcon in interface IAction
        Returns:
        The icon
      • setIcon

        public void setIcon​(java.lang.String strIcon)
        Sets the icon
        Specified by:
        setIcon in interface IAction
        Parameters:
        strIcon - The icon
      • getPermission

        public java.lang.String getPermission()
        Returns the permission associated to the action
        Specified by:
        getPermission in interface IAction
        Specified by:
        getPermission in interface fr.paris.lutece.portal.service.rbac.RBACAction
        Returns:
        The permission
      • setPermission

        public void setPermission​(java.lang.String strPermission)
        Sets the Permission
        Specified by:
        setPermission in interface IAction
        Parameters:
        strPermission - The Permission
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object