Class ActionImpl

    • Constructor Detail

      • ActionImpl

        public ActionImpl()
        Constructor
    • Method Detail

      • getLabels

        public ContextualDesignations getLabels()
        Description copied from interface: Action
        Get all the labels
        Specified by:
        getLabels in interface Action
        Returns:
        an object containing the collection of the labels
      • getLabel

        public String getLabel​(String role,
                               String language)
        Description copied from interface: Action
        Get label in specific language for the given role
        Specified by:
        getLabel in interface Action
        Parameters:
        role - role for which the label is
        language - label's language
        Returns:
        wanted label as a String object. If label is not found, search label with given role and default language, if not found again, return the default label in given language, if not found again, return the default label in default language, if not found again, return empty string.
      • getAllowedUsers

        public QualifiedUsers getAllowedUsers()
        Get all the users allowed to execute this action
        Specified by:
        getAllowedUsers in interface Action
        Returns:
        object containing QualifiedUsers
      • getConsequences

        public Consequences getConsequences()
        Get all the consequences of this action
        Specified by:
        getConsequences in interface Action
        Returns:
        Consequences objects
      • getForm

        public Form getForm()
        Get the form associated with this action
        Specified by:
        getForm in interface Action
        Returns:
        form object
      • getName

        public String getName()
        Get the name of this action
        Specified by:
        getName in interface Action
        Returns:
        action's name
      • getKind

        public String getKind()
        Get the kind of this action (update, create or delete)
        Specified by:
        getKind in interface Action
        Returns:
        action's kind
      • getDescriptions

        public ContextualDesignations getDescriptions()
        Description copied from interface: Action
        Get all the descriptions
        Specified by:
        getDescriptions in interface Action
        Returns:
        an object containing the collection of the descriptions
      • getDescription

        public String getDescription​(String role,
                                     String language)
        Description copied from interface: Action
        Get description in specific language for the given role
        Specified by:
        getDescription in interface Action
        Parameters:
        role - role for which the description is
        language - description's language
        Returns:
        wanted description as a String object. If description is not found, search description with given role and default language, if not found again, return the default description in given language, if not found again, return the default description in default language, if not found again, return empty string.
      • createQualifiedUsers

        public QualifiedUsers createQualifiedUsers()
        Create and return an object implementing QalifiedUsers
      • setAllowedUsers

        public void setAllowedUsers​(QualifiedUsers allowedUsers)
        Set the list of users allowed to execute this action
        Specified by:
        setAllowedUsers in interface Action
        Parameters:
        allowedUsers - allowed users
      • setConsequences

        public void setConsequences​(Consequences consequences)
        Set the consequences of this action
        Specified by:
        setConsequences in interface Action
        Parameters:
        consequences -
      • setForm

        public void setForm​(Form form)
        Set the form associated to this action
        Specified by:
        setForm in interface Action
        Parameters:
        form - associated form
      • setName

        public void setName​(String name)
        Set the name of this action
        Specified by:
        setName in interface Action
        Parameters:
        name - action's name
      • setKind

        public void setKind​(String kind)
        Set the kind of this action
        Specified by:
        setKind in interface Action
        Parameters:
        kind - action's kind
      • getKey

        public String getKey()
        Get the unique key, used by equals method
        Returns:
        unique key