public interface UserServiceObjectContextForInputValidation extends UserServiceObjectContext
UserServiceObjectContextBuilder
Modifier and Type | Method and Description |
---|---|
void |
addError(String aMessage)
Adds the specified error message.
|
void |
addInfo(String aMessage)
Adds the specified information message.
|
void |
addMessage(UserMessage aMessage)
Adds a message that will be displayed in the standard message pane of the user
interface using same severity as
aMessage.getSeverity() . |
void |
addWarning(String aMessage)
Adds the specified warning message.
|
ValueContextForInputValidation |
getValueContext(ObjectKey anObjectKey)
Returns the value context for object
ObjectKey . |
ValueContextForInputValidation |
getValueContext(ObjectKey anObjectKey,
Path aPath)
Returns the value context for object
ObjectKey and
path aPath . |
getPermission, isDataDeleted
void addMessage(UserMessage aMessage)
aMessage.getSeverity()
.aMessage
- the message.void addError(String aMessage)
aMessage
- the message.addMessage(UserMessage)
void addWarning(String aMessage)
aMessage
- the message.addMessage(UserMessage)
void addInfo(String aMessage)
aMessage
- the message.addMessage(UserMessage)
ValueContextForInputValidation getValueContext(ObjectKey anObjectKey)
ObjectKey
.
This method returns the same result
as getValueContext(ObjectKey anObjectKey, Path.ROOT)
.
getValueContext
in interface UserServiceObjectContext
anObjectKey
- the key of the object in the object context.RuntimeException
- if anObjectKey
is invalid.ValueContextForInputValidation getValueContext(ObjectKey anObjectKey, Path aPath)
ObjectKey
and
path aPath
.getValueContext
in interface UserServiceObjectContext
anObjectKey
- the key of the object in the object context.aPath
- a path to an attribute of the object.RuntimeException
- if either anObjectKey
or aPath
are
invalid.