Modifier and Type | Method and Description |
---|---|
static com.fasterxml.jackson.databind.node.ObjectNode |
businessToNode(Business hostConfig)
Converts the given
Business object into an ObjectNode . |
static List<RoleDefault.ROLE> |
getRoles(String hostName)
Returns the requested host's list of roles on the server.
|
static Business |
nodeToNewBusiness(com.fasterxml.jackson.databind.node.ObjectNode object)
Converts the given
ObjectNode into a Business object. |
static Business |
nodeToUpdatedBusiness(com.fasterxml.jackson.databind.node.ObjectNode object,
Business oldBusiness)
Returns the given
Business object updated with the values defined
in the ObjectNode
parameter. |
public static com.fasterxml.jackson.databind.node.ObjectNode businessToNode(Business hostConfig)
Business
object into an ObjectNode
.hostConfig
- the HostConfig object to convertpublic static Business nodeToNewBusiness(com.fasterxml.jackson.databind.node.ObjectNode object)
ObjectNode
into a Business
object.object
- the ObjectNode to convertRestErrorException
- if the given ObjectNode does not
represent a Business objectpublic static Business nodeToUpdatedBusiness(com.fasterxml.jackson.databind.node.ObjectNode object, Business oldBusiness)
Business
object updated with the values defined
in the ObjectNode
parameter. All fields missing from the ObjectNode parameter will stay
unchanged in the returned Business
object.object
- the ObjectNode to convert.oldBusiness
- the Business object to update.RestErrorException
- if the given ObjectNode does not
represent a Business objectpublic static List<RoleDefault.ROLE> getRoles(String hostName)
hostName
- the desired host's nameInternalServerErrorException
- if an unexpected error
occurredCopyright © 2009–2020 Waarp. All rights reserved.