A bunch of statics to support the Repository artifacts.
Type Params | Return Type | Name and description |
---|---|---|
|
static String |
badge(Serializable id, GormEntity entity) |
|
static Map |
buildLightMessageParams(GormEntity entity) build a map of message params as @buildMessageParams, but light version to speed up it ident -> entity id domainLabel -> domain class name arg -> the array [domainLabel,ident] |
|
static Map |
buildMessageParams(GormEntity entity) build a map of message params with ident,domainLabel and args ident -> the value of the name field is the dom has one, or the id if not. |
|
static Map |
created(GormEntity entity, boolean buildLight = false) |
|
static Locale |
defaultLocale() |
|
static Map |
deleted(GormEntity entity, Serializable ident, boolean buildLight = false) |
|
static Map |
notDeleted(GormEntity entity, Serializable ident, boolean buildLight = false) |
|
static Map |
notFound(String domainClassName, Map params) returns a messageMap not.found.message for a not found error |
|
static Map |
notFoundId(String domainClassName, Serializable id) |
|
static Map |
notSaved(GormEntity entity, boolean buildLight = false) |
|
static Map |
notSavedDataAccess(GormEntity entity, boolean buildLight = false) |
|
static Map |
notUpdated(GormEntity entity, boolean buildLight = false) |
|
static Map |
optimisticLockingFailure(GormEntity entity, boolean buildLight = false) |
|
static String |
propName(String prop) |
|
static String |
resolveDomainLabel(GormEntity entity) |
|
static String |
resolveMessage(String code, String defaultMsg) |
|
static Map |
saved(GormEntity entity, boolean buildLight = false) |
|
static Map |
setup(String messageCode, Object arg, String defaultMessage = "") just a short method to return a messageMap from the vals passed in |
|
static Map |
updated(GormEntity entity, boolean buildLight = false) |
build a map of message params as @buildMessageParams, but light version to speed up it ident -> entity id domainLabel -> domain class name arg -> the array [domainLabel,ident]
entity
- the domain instance to build the message params frombuild a map of message params with ident,domainLabel and args ident -> the value of the name field is the dom has one, or the id if not. domainLabel -> the label to use for the domain. just the class name unless there is a entry in message.properties arg -> the array [domainLabel,ident]
entity
- the domain instance to build the message params fromreturns a messageMap not.found.message for a not found error
params
- must have a key named id of the object that was not foundjust a short method to return a messageMap from the vals passed in