public final class Action extends Object implements Localizable<Action>
Action
class which acts as a DTO for the actions.Modifier and Type | Class and Description |
---|---|
static class |
Action.Builder |
static class |
Action.ReferencedWorkObject |
Modifier and Type | Method and Description |
---|---|
static Action.Builder |
builder() |
static Action.Builder |
builder(Action actionTemplate) |
String |
getButtonLabel() |
String |
getDescription() |
String |
getEndpoint() |
com.edorasware.commons.core.util.string.I18NString |
getErrorMessage() |
String |
getForm() |
String |
getGroup() |
String |
getIcon() |
String |
getId() |
String |
getName() |
Action.ReferencedWorkObject |
getReferencedWorkObject() |
com.edorasware.commons.core.util.string.I18NString |
getSuccessMessage() |
String |
getUrl() |
boolean |
isEnabled() |
boolean |
isHidden() |
Action |
localize(org.springframework.context.MessageSource messageSource,
Locale locale)
Localizes the current instance and returns a localized version of the implementing class with respect to the specified
Locale . |
String |
toString() |
public String getId()
public String getName()
public String getForm()
public String getEndpoint()
public String getButtonLabel()
public String getIcon()
public boolean isEnabled()
public String getDescription()
public boolean isHidden()
public String getUrl()
public String getGroup()
public Action.ReferencedWorkObject getReferencedWorkObject()
public Action localize(org.springframework.context.MessageSource messageSource, Locale locale)
Localizable
Locale
.localize
in interface Localizable<Action>
messageSource
- the message source which translates the i18n codes for the localizationlocale
- the specified locale in which the i18n codes are translatedpublic com.edorasware.commons.core.util.string.I18NString getSuccessMessage()
public com.edorasware.commons.core.util.string.I18NString getErrorMessage()
public static Action.Builder builder()
public static Action.Builder builder(Action actionTemplate)
Copyright © 2010 - 2017 edorasware ag. All Rights Reserved.