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 TypeMethodDescriptionvoidAdds the specified error message.voidAdds the specified information message.voidaddMessage(UserMessage aMessage) Adds a message that will be displayed in the standard message pane of the user interface using same severity asaMessage.getSeverity().voidaddWarning(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 objectObjectKeyand 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:
getValueContextin interfaceUserServiceObjectContext- Parameters:
anObjectKey- the key of the object in the object context.- Returns:
- The value context.
- Throws:
RuntimeException- ifanObjectKeyis invalid.
-
getValueContext
Returns the value context for objectObjectKeyand pathaPath.- Specified by:
getValueContextin 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 eitheranObjectKeyoraPathare invalid.
-