Class ActivityAction

    • Constructor Detail

      • ActivityAction

        public ActivityAction()
    • Method Detail

      • getId

        public String getId()
        Returns the identifier of this action.
        Returns:
        the identifier of this action.
        Since:
        8.2.0
      • setId

        public void setId​(String id)
        Sets the identifier of this action.
        Parameters:
        id - the identifier.
        Since:
        8.2.0
      • getStringResource

        public IResource getStringResource()
        Returns the string resource used to localize this action's strings.
        Returns:
        the string localization resource.
        Since:
        8.2.0
      • setStringResource

        public void setStringResource​(IResource stringResource)
        Sets the string localization resource paths for this action based on a string localization resource object.
        Parameters:
        stringResource - the string localization resource object.
        Since:
        8.2.0
        See Also:
        setStringResourcePath(String)
      • setStringResourcePath

        public void setStringResourcePath​(String stringResourcePath)
        Sets the string localization resource path for this action.
        Parameters:
        stringResourcePath - the string localization resource path.
        Since:
        8.2.0
        See Also:
        setStringResource(IResource)
      • getDisplayName

        public String getDisplayName()
        Returns the display name of this action.
        Returns:
        a plain-text value, possibly a localizable string key.
        Since:
        8.2.0
        See Also:
        #getStringResourcePaths()
      • setDisplayName

        public void setDisplayName​(String displayName)
        Sets the display name of this action.
        Parameters:
        displayName - the plain-text display name value, possibly a localizable string key.
        Since:
        8.2.0
        See Also:
        getStringResource()
      • getLocalizedDisplayName

        public String getLocalizedDisplayName​(Locale locale)
                                       throws PortalException
        Returns the localized display name of this action.
        Parameters:
        locale - the locale to use to localize the display name.
        Returns:
        the plain-text display name value.
        Throws:
        PortalException - if there was a problem while applying the localization on the value.
        Since:
        8.2.0