Class EmailNotifierVariableResolver.ObjectTypeDecorator
- java.lang.Object
-
- lumis.portal.activitystream.ActivityObjectType
-
- lumis.portal.activitystream.notifier.email.EmailNotifierVariableResolver.ObjectTypeDecorator
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- EmailNotifierVariableResolver
public class EmailNotifierVariableResolver.ObjectTypeDecorator extends ActivityObjectType
Support class that extendsActivityObjectType
and implements new localization methods that use theEmailNotifierVariableResolver.locale
and can be used with EL.- Since:
- 8.2.0
- Version:
- $Revision: 24683 $ $Date: 2021-08-23 18:55:58 -0300 (Mon, 23 Aug 2021) $
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ObjectTypeDecorator(ActivityObjectType activityObjectType)
-
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 object type.String
getId()
Returns the identifier of this object type.String
getLocalizedDisplayName()
Returns the localized display name of this object type using the resolver locale.String
getLocalizedDisplayName(Locale locale)
Returns the localized display name of this object type.IResource
getStringResource()
Returns the string resource used to localize this object type's strings.int
hashCode()
void
setDisplayName(String displayName)
Sets the display name of this object type.void
setId(String id)
Sets the identifier of this object type.void
setStringResource(IResource stringResource)
Sets the string localization resource paths for this object type based on a string localization resource object.void
setStringResourcePath(String stringResourcePath)
Sets the string localization resource path for this object type.String
toString()
-
-
-
Constructor Detail
-
ObjectTypeDecorator
public ObjectTypeDecorator(ActivityObjectType activityObjectType)
-
-
Method Detail
-
getId
public String getId()
Description copied from class:ActivityObjectType
Returns the identifier of this object type.- Overrides:
getId
in classActivityObjectType
- Returns:
- the identifier of this object type.
-
setId
public void setId(String id)
Description copied from class:ActivityObjectType
Sets the identifier of this object type.- Overrides:
setId
in classActivityObjectType
- Parameters:
id
- the identifier.
-
getStringResource
public IResource getStringResource()
Description copied from class:ActivityObjectType
Returns the string resource used to localize this object type's strings.- Overrides:
getStringResource
in classActivityObjectType
- Returns:
- the string localization resource.
-
setStringResource
public void setStringResource(IResource stringResource)
Description copied from class:ActivityObjectType
Sets the string localization resource paths for this object type based on a string localization resource object.- Overrides:
setStringResource
in classActivityObjectType
- Parameters:
stringResource
- the string localization resource object.- See Also:
ActivityObjectType.setStringResourcePath(String)
-
setStringResourcePath
public void setStringResourcePath(String stringResourcePath)
Description copied from class:ActivityObjectType
Sets the string localization resource path for this object type.- Overrides:
setStringResourcePath
in classActivityObjectType
- Parameters:
stringResourcePath
- the string localization resource path.- See Also:
ActivityObjectType.setStringResource(IResource)
-
getDisplayName
public String getDisplayName()
Description copied from class:ActivityObjectType
Returns the display name of this object type.- Overrides:
getDisplayName
in classActivityObjectType
- Returns:
- a plain-text value, possibly a localizable string key.
- See Also:
#getStringResourcePaths()
-
setDisplayName
public void setDisplayName(String displayName)
Description copied from class:ActivityObjectType
Sets the display name of this object type.- Overrides:
setDisplayName
in classActivityObjectType
- Parameters:
displayName
- the plain-text display name value, possibly a localizable string key.- See Also:
ActivityObjectType.getStringResource()
-
getLocalizedDisplayName
public String getLocalizedDisplayName(Locale locale) throws PortalException
Description copied from class:ActivityObjectType
Returns the localized display name of this object type.- Overrides:
getLocalizedDisplayName
in classActivityObjectType
- 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 classActivityObjectType
-
getLocalizedDisplayName
public String getLocalizedDisplayName() throws PortalException
Returns the localized display name of this object type using the resolver locale.- 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
-
-