Interface UserServiceObjectContextForInputValidation
- All Superinterfaces:
UserServiceObjectContext
- All Known Subinterfaces:
UserServiceEventContext
,UserServiceProcessEventOutcomeContext<S>
,UserServiceSetupDisplayContext<S>
,UserServiceValidateContext<S>
This interface provides methods to access or update objects registered for
the user service.
- Since:
- 5.8.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the specified error message.void
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 asaMessage.getSeverity()
.void
addWarning
(String aMessage) Adds the specified warning message.getValueContext
(ObjectKey anObjectKey) Returns the value context for objectObjectKey
.getValueContext
(ObjectKey anObjectKey, Path aPath) Returns the value context for objectObjectKey
and pathaPath
.Methods inherited from interface com.orchestranetworks.userservice.UserServiceObjectContext
getPermission, isDataDeleted
-
Method Details
-
addMessage
Adds a message that will be displayed in the standard message pane of the user interface using same severity asaMessage.getSeverity()
.- Parameters:
aMessage
- the message.
-
addError
Adds the specified error message.- Parameters:
aMessage
- the message.- See Also:
-
addWarning
Adds the specified warning message.- Parameters:
aMessage
- the message.- See Also:
-
addInfo
Adds the specified information message.- Parameters:
aMessage
- the message.- See Also:
-
getValueContext
Returns the value context for objectObjectKey
.This method returns the same result as
getValueContext(ObjectKey anObjectKey, Path.ROOT)
.- Specified by:
getValueContext
in interfaceUserServiceObjectContext
- Parameters:
anObjectKey
- the key of the object in the object context.- Returns:
- The value context.
- Throws:
RuntimeException
- ifanObjectKey
is invalid.
-
getValueContext
Returns the value context for objectObjectKey
and pathaPath
.- Specified by:
getValueContext
in interfaceUserServiceObjectContext
- Parameters:
anObjectKey
- the key of the object in the object context.aPath
- a path to an attribute of the object.- Returns:
- The value context.
- Throws:
RuntimeException
- if eitheranObjectKey
oraPath
are invalid.
-