Class EmailNotifierVariableResolver.ActionDecorator
- java.lang.Object
-
- lumis.portal.activitystream.ActivityAction
-
- lumis.portal.activitystream.notifier.email.EmailNotifierVariableResolver.ActionDecorator
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- EmailNotifierVariableResolver
public class EmailNotifierVariableResolver.ActionDecorator extends ActivityAction
Support class that extendsActivityAction
and implements new localization methods that use theEmailNotifierVariableResolver.locale
and can be used with EL.- Since:
- 8.2.0
- Version:
- $Revision: 24477 $ $Date: 2021-04-28 11:30:36 -0300 (Wed, 28 Apr 2021) $
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ActionDecorator(ActivityAction activityAction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getDisplayName()
Returns the display name of this action.String
getId()
Returns the identifier of this action.String
getLocalizedDisplayName()
String
getLocalizedDisplayName(Locale locale)
Returns the localized display name of this action.IResource
getStringResource()
Returns the string resource used to localize this action's strings.int
hashCode()
void
setDisplayName(String displayName)
Sets the display name of this action.void
setId(String id)
Sets the identifier of this action.void
setStringResource(IResource stringResource)
Sets the string localization resource paths for this action based on a string localization resource object.void
setStringResourcePath(String stringResourcePath)
Sets the string localization resource path for this action.String
toString()
-
-
-
Constructor Detail
-
ActionDecorator
public ActionDecorator(ActivityAction activityAction)
-
-
Method Detail
-
getId
public String getId()
Description copied from class:ActivityAction
Returns the identifier of this action.- Overrides:
getId
in classActivityAction
- Returns:
- the identifier of this action.
-
setId
public void setId(String id)
Description copied from class:ActivityAction
Sets the identifier of this action.- Overrides:
setId
in classActivityAction
- Parameters:
id
- the identifier.
-
getStringResource
public IResource getStringResource()
Description copied from class:ActivityAction
Returns the string resource used to localize this action's strings.- Overrides:
getStringResource
in classActivityAction
- Returns:
- the string localization resource.
-
setStringResource
public void setStringResource(IResource stringResource)
Description copied from class:ActivityAction
Sets the string localization resource paths for this action based on a string localization resource object.- Overrides:
setStringResource
in classActivityAction
- Parameters:
stringResource
- the string localization resource object.- See Also:
ActivityAction.setStringResourcePath(String)
-
setStringResourcePath
public void setStringResourcePath(String stringResourcePath)
Description copied from class:ActivityAction
Sets the string localization resource path for this action.- Overrides:
setStringResourcePath
in classActivityAction
- Parameters:
stringResourcePath
- the string localization resource path.- See Also:
ActivityAction.setStringResource(IResource)
-
getDisplayName
public String getDisplayName()
Description copied from class:ActivityAction
Returns the display name of this action.- Overrides:
getDisplayName
in classActivityAction
- Returns:
- a plain-text value, possibly a localizable string key.
- See Also:
#getStringResourcePaths()
-
setDisplayName
public void setDisplayName(String displayName)
Description copied from class:ActivityAction
Sets the display name of this action.- Overrides:
setDisplayName
in classActivityAction
- Parameters:
displayName
- the plain-text display name value, possibly a localizable string key.- See Also:
ActivityAction.getStringResource()
-
getLocalizedDisplayName
public String getLocalizedDisplayName(Locale locale) throws PortalException
Description copied from class:ActivityAction
Returns the localized display name of this action.- Overrides:
getLocalizedDisplayName
in classActivityAction
- 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.
-
toString
public String toString()
- Overrides:
toString
in classActivityAction
-
getLocalizedDisplayName
public String getLocalizedDisplayName() throws PortalException
- Throws:
PortalException
-
-