java.lang.Object
edu.internet2.middleware.grouper.app.freshServiceRequester.FreshRequesterUser

public class FreshRequesterUser extends Object
  • Field Details

    • CUSTOM_FIELD_ATTRIBUTE_PREFIX

      public static final String 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

      public static void createTableFreshUser(DdlVersionBean ddlVersionBean, Database database)
    • getId

      public Long getId()
      Get the Requester's ID
      Returns:
      the Requester's ID
    • setId

      public void setId(Long id)
      Set the Requester's ID
      Parameters:
      id - the new ID to set
    • getFirstName

      public String getFirstName()
    • setFirstName

      public void setFirstName(String firstName)
    • getLastName

      public String getLastName()
    • setLastName

      public void setLastName(String lastName)
    • getEmail

      public String getEmail()
    • setEmail

      public void setEmail(String email)
    • getIsAgent

      public Boolean getIsAgent()
    • setIsAgent

      public void setIsAgent(Boolean isAgent)
    • getIsAgentString

      public String getIsAgentString()
      Hibernate-friendly "T"/"F" mapping to support databases that store booleans as strings.
    • setIsAgentString

      public void setIsAgentString(String isAgentString)
      Hibernate-friendly "T"/"F" mapping to support databases that store booleans as strings.
    • getJobTitle

      public String getJobTitle()
    • setJobTitle

      public void setJobTitle(String jobTitle)
    • getWorkPhoneNumber

      public String getWorkPhoneNumber()
    • setWorkPhoneNumber

      public void setWorkPhoneNumber(String workPhoneNumber)
    • getDepartmentId

      public Long getDepartmentId()
    • setDepartmentId

      public void setDepartmentId(Long departmentId)
    • getReportingManagerId

      public Long getReportingManagerId()
    • setReportingManagerId

      public void setReportingManagerId(Long reportingManagerId)
    • getAddress

      public String getAddress()
    • setAddress

      public void setAddress(String address)
    • getExternalId

      public String getExternalId()
    • setExternalId

      public void setExternalId(String externalId)
    • getCustomFields

      public Map<String,Object> getCustomFields()
    • setCustomFields

      public void setCustomFields(Map<String,Object> customFields)
    • getCustomFieldsJson

      public String getCustomFieldsJson()
      Hibernate mapping helper: persist customFields map as JSON in the custom_fields column.
    • setCustomFieldsJson

      public void setCustomFieldsJson(String customFieldsJson)
      Hibernate mapping helper: load customFields map from JSON stored in the custom_fields column.
    • getActive

      public Boolean getActive()
    • setActive

      public void setActive(Boolean active)
    • getActiveString

      public String getActiveString()
      Hibernate-friendly "T"/"F" mapping to support databases that store booleans as strings.
    • setActiveString

      public void setActiveString(String activeString)
      Hibernate-friendly "T"/"F" mapping to support databases that store booleans as strings.
    • toProvisioningEntity

      public ProvisioningEntity 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 convert
      fieldNamesToSet - the field names to be set
      Returns:
      the Requester created from the provisioning entity
    • fromJson

      public static FreshRequesterUser fromJson(com.fasterxml.jackson.databind.JsonNode entityNode)
      Get a GrouperRequester object from json Freshservice response
      Parameters:
      entityNode - the node containing the GrouperRequester
      Returns:
      the GrouperRequester object
    • toJson

      public com.fasterxml.jackson.databind.node.ObjectNode toJson(Set<String> fieldNamesToSet)
      Convert a GrouperRequester to json
      Parameters:
      fieldNamesToSet - the field names we'll be setting
      Returns:
      the json representation of the GrouperRequester