Class FreshRequesterUser
java.lang.Object
edu.internet2.middleware.grouper.app.freshServiceRequester.FreshRequesterUser
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringPrefix for provisioning entity attributes which represent a Freshservice custom field. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcreateTableFreshUser(DdlVersionBean ddlVersionBean, Database database) static FreshRequesterUserfromJson(com.fasterxml.jackson.databind.JsonNode entityNode) Get a GrouperRequester object from json Freshservice responsestatic FreshRequesterUserfromProvisioningEntity(ProvisioningEntity targetEntity, Set<String> fieldNamesToSet) Convert from a provisioning entity to a RequesterHibernate-friendly "T"/"F" mapping to support databases that store booleans as strings.Hibernate mapping helper: persist customFields map as JSON in the custom_fields column.getEmail()getId()Get the Requester's IDHibernate-friendly "T"/"F" mapping to support databases that store booleans as strings.voidvoidsetActiveString(String activeString) Hibernate-friendly "T"/"F" mapping to support databases that store booleans as strings.voidsetAddress(String address) voidsetCustomFields(Map<String, Object> customFields) voidsetCustomFieldsJson(String customFieldsJson) Hibernate mapping helper: load customFields map from JSON stored in the custom_fields column.voidsetDepartmentId(Long departmentId) voidvoidsetExternalId(String externalId) voidsetFirstName(String firstName) voidSet the Requester's IDvoidsetIsAgent(Boolean isAgent) voidsetIsAgentString(String isAgentString) Hibernate-friendly "T"/"F" mapping to support databases that store booleans as strings.voidsetJobTitle(String jobTitle) voidsetLastName(String lastName) voidsetReportingManagerId(Long reportingManagerId) voidsetWorkPhoneNumber(String workPhoneNumber) com.fasterxml.jackson.databind.node.ObjectNodeConvert a GrouperRequester to jsonConvert to a Grouper provisioning entity
-
Field Details
-
CUSTOM_FIELD_ATTRIBUTE_PREFIX
Prefix for provisioning entity attributes which represent a Freshservice custom field.- See Also:
-
-
Constructor Details
-
FreshRequesterUser
public FreshRequesterUser()
-
-
Method Details
-
createTableFreshUser
-
getId
Get the Requester's ID- Returns:
- the Requester's ID
-
setId
Set the Requester's ID- Parameters:
id- the new ID to set
-
getFirstName
-
setFirstName
-
getLastName
-
setLastName
-
getEmail
-
setEmail
-
getIsAgent
-
setIsAgent
-
getIsAgentString
Hibernate-friendly "T"/"F" mapping to support databases that store booleans as strings. -
setIsAgentString
Hibernate-friendly "T"/"F" mapping to support databases that store booleans as strings. -
getJobTitle
-
setJobTitle
-
getWorkPhoneNumber
-
setWorkPhoneNumber
-
getDepartmentId
-
setDepartmentId
-
getReportingManagerId
-
setReportingManagerId
-
getAddress
-
setAddress
-
getExternalId
-
setExternalId
-
getCustomFields
-
setCustomFields
-
getCustomFieldsJson
Hibernate mapping helper: persist customFields map as JSON in the custom_fields column. -
setCustomFieldsJson
Hibernate mapping helper: load customFields map from JSON stored in the custom_fields column. -
getActive
-
setActive
-
getActiveString
Hibernate-friendly "T"/"F" mapping to support databases that store booleans as strings. -
setActiveString
Hibernate-friendly "T"/"F" mapping to support databases that store booleans as strings. -
toProvisioningEntity
Convert to a Grouper provisioning entity- Returns:
- the converted entity
-
fromProvisioningEntity
public static FreshRequesterUser fromProvisioningEntity(ProvisioningEntity targetEntity, Set<String> fieldNamesToSet) Convert from a provisioning entity to a Requester- Parameters:
targetEntity- the Grouper provisioning entity to convertfieldNamesToSet- the field names to be set- Returns:
- the Requester created from the provisioning entity
-
fromJson
Get a GrouperRequester object from json Freshservice response- Parameters:
entityNode- the node containing the GrouperRequester- Returns:
- the GrouperRequester object
-
toJson
Convert a GrouperRequester to json- Parameters:
fieldNamesToSet- the field names we'll be setting- Returns:
- the json representation of the GrouperRequester
-