com.identity4j.connector.office365.entity.User Maven / Gradle / Ivy
package com.identity4j.connector.office365.entity;
import java.util.List;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;
@JsonIgnoreProperties(ignoreUnknown=true)
public class User{
/**
* The following are the individual private members of a User object that holds
* a particular simple attribute of an User object.
*/
private String objectId;
private String objectReference;
private String objectType;
private Boolean accountEnabled;
private String city;
private String country;
private String department;
private String dirSyncEnabled;
private String displayName;
private String facsimileTelephoneNumber;
private String givenName;
private String jobTitle;
private String lastDirSyncTime;
private String mail;
private String mobile;
private String passwordPolicies;
private String physicalDeliveryOfficeName;
private String postalCode;
private String preferredLanguage;
private String state;
private String streetAddress;
private String surname;
private String telephoneNumber;
private String usageLocation;
private String userPrincipalName;
private String mailNickname;
private PasswordProfile passwordProfile;
/**
* The list groups holds a list of group entity this user belongs to.
*/
private List memberOf;
/**
* The list roles holds a list of role entity this user belongs to.
*/
private List roles;
/**
* The constructor for the User class. Initializes the dynamic lists and manager variables.
*/
public User(){
passwordProfile = new PasswordProfile();
}
/**
* @return the objectId
*/
public String getObjectId() {
return objectId;
}
/**
* @param objectId the objectId to set
*/
public void setObjectId(String objectId) {
this.objectId = objectId;
}
/**
* @return the objectReference
*/
public String getObjectReference() {
return objectReference;
}
/**
* @param objectReference the objectReference to set
*/
public void setObjectReference(String objectReference) {
this.objectReference = objectReference;
}
/**
* @return the objectType
*/
public String getObjectType() {
return objectType;
}
/**
* @param objectType the objectType to set
*/
public void setObjectType(String objectType) {
this.objectType = objectType;
}
/**
* @return the accountEnabled
*/
public Boolean getAccountEnabled() {
return accountEnabled;
}
/**
* @param accountEnabled the accountEnabled to set
*/
public void setAccountEnabled(Boolean accountEnabled) {
this.accountEnabled = accountEnabled;
}
/**
* @return the city
*/
public String getCity() {
return city;
}
/**
* @param city the city to set
*/
public void setCity(String city) {
this.city = city;
}
/**
* @return the country
*/
public String getCountry() {
return country;
}
/**
* @param country the country to set
*/
public void setCountry(String country) {
this.country = country;
}
/**
* @return the department
*/
public String getDepartment() {
return department;
}
/**
* @param department the department to set
*/
public void setDepartment(String department) {
this.department = department;
}
/**
* @return the dirSyncEnabled
*/
public String getDirSyncEnabled() {
return dirSyncEnabled;
}
/**
* @param dirSyncEnabled the dirSyncEnabled to set
*/
public void setDirSyncEnabled(String dirSyncEnabled) {
this.dirSyncEnabled = dirSyncEnabled;
}
/**
* @return the displayName
*/
public String getDisplayName() {
return displayName;
}
/**
* @param displayName the displayName to set
*/
public void setDisplayName(String displayName) {
this.displayName = displayName;
}
/**
* @return the facsimileTelephoneNumber
*/
public String getFacsimileTelephoneNumber() {
return facsimileTelephoneNumber;
}
/**
* @param facsimileTelephoneNumber the facsimileTelephoneNumber to set
*/
public void setFacsimileTelephoneNumber(String facsimileTelephoneNumber) {
this.facsimileTelephoneNumber = facsimileTelephoneNumber;
}
/**
* @return the givenName
*/
public String getGivenName() {
return givenName;
}
/**
* @param givenName the givenName to set
*/
public void setGivenName(String givenName) {
this.givenName = givenName;
}
/**
* @return the jobTitle
*/
public String getJobTitle() {
return jobTitle;
}
/**
* @param jobTitle the jobTitle to set
*/
public void setJobTitle(String jobTitle) {
this.jobTitle = jobTitle;
}
/**
* @return the lastDirSyncTime
*/
public String getLastDirSyncTime() {
return lastDirSyncTime;
}
/**
* @param lastDirSyncTime the lastDirSyncTime to set
*/
public void setLastDirSyncTime(String lastDirSyncTime) {
this.lastDirSyncTime = lastDirSyncTime;
}
/**
* @return the mail
*/
public String getMail() {
return mail;
}
/**
* @param mail the mail to set
*/
public void setMail(String mail) {
this.mail = mail;
}
/**
* @return the mobile
*/
public String getMobile() {
return mobile;
}
/**
* @param mobile the mobile to set
*/
public void setMobile(String mobile) {
this.mobile = mobile;
}
/**
* @return the passwordPolicies
*/
public String getPasswordPolicies() {
return passwordPolicies;
}
/**
* @param passwordPolicies the passwordPolicies to set
*/
public void setPasswordPolicies(String passwordPolicies) {
this.passwordPolicies = passwordPolicies;
}
/**
* @return the physicalDeliveryOfficeName
*/
public String getPhysicalDeliveryOfficeName() {
return physicalDeliveryOfficeName;
}
/**
* @param physicalDeliveryOfficeName the physicalDeliveryOfficeName to set
*/
public void setPhysicalDeliveryOfficeName(String physicalDeliveryOfficeName) {
this.physicalDeliveryOfficeName = physicalDeliveryOfficeName;
}
/**
* @return the postalCode
*/
public String getPostalCode() {
return postalCode;
}
/**
* @param postalCode the postalCode to set
*/
public void setPostalCode(String postalCode) {
this.postalCode = postalCode;
}
/**
* @return the preferredLanguage
*/
public String getPreferredLanguage() {
return preferredLanguage;
}
/**
* @param preferredLanguage the preferredLanguage to set
*/
public void setPreferredLanguage(String preferredLanguage) {
this.preferredLanguage = preferredLanguage;
}
/**
* @return the state
*/
public String getState() {
return state;
}
/**
* @param state the state to set
*/
public void setState(String state) {
this.state = state;
}
/**
* @return the streetAddress
*/
public String getStreetAddress() {
return streetAddress;
}
/**
* @param streetAddress the streetAddress to set
*/
public void setStreetAddress(String streetAddress) {
this.streetAddress = streetAddress;
}
/**
* @return the surname
*/
public String getSurname() {
return surname;
}
/**
* @param surname the surname to set
*/
public void setSurname(String surname) {
this.surname = surname;
}
/**
* @return the telephoneNumber
*/
public String getTelephoneNumber() {
return telephoneNumber;
}
/**
* @param telephoneNumber the telephoneNumber to set
*/
public void setTelephoneNumber(String telephoneNumber) {
this.telephoneNumber = telephoneNumber;
}
/**
* @return the usageLocation
*/
public String getUsageLocation() {
return usageLocation;
}
/**
* @param usageLocation the usageLocation to set
*/
public void setUsageLocation(String usageLocation) {
this.usageLocation = usageLocation;
}
/**
* @return the userPrincipalName
*/
public String getUserPrincipalName() {
return userPrincipalName;
}
/**
* @param userPrincipalName the userPrincipalName to set
*/
public void setUserPrincipalName(String userPrincipalName) {
this.userPrincipalName = userPrincipalName;
}
public String getMailNickname() {
return mailNickname;
}
public void setMailNickname(String mailNickname) {
this.mailNickname = mailNickname;
}
/**
* @return the groups
*/
public List getMemberOf() {
return memberOf;
}
/**
* @param memberOf the groups to set
*/
public void setMemberOf(List memberOf) {
this.memberOf = memberOf;
}
/**
* @return the roles
*/
public List getRoles() {
return roles;
}
/**
* @param roles the roles to set
*/
public void setRoles(List roles) {
this.roles = roles;
}
public void addNewGroup(Group group){
this.memberOf.add(group);
}
/**
* @param index The index of the Group Entry.
* @return The ObjectId of the Group entry at index.
*/
public String getGroupObjectId(int index){
return this.memberOf.get(index).getObjectId();
}
/**
* @param index The index of the Group Entry.
* @return The DisplayName of the Group entry at index.
*/
public String getGroupDisplayName(int index){
return this.memberOf.get(index).getDisplayName();
}
/**
* @param index The index of the Roles Entry.
* @return The ObjectId of the Role entry at index.
*/
public String getRoleObjectId(int index){
return this.roles.get(index).getObjectId();
}
/**
* @param index The index of the Roles Entry.
* @return The DisplayName of the Roles entry at index.
*/
public String getRoleDisplayName(int index){
return this.roles.get(index).getDisplayName();
}
public void addNewRole(Role role){
this.roles.add(role);
}
public PasswordProfile getPasswordProfile() {
return passwordProfile;
}
public void setPasswordProfile(PasswordProfile passwordProfile) {
this.passwordProfile = passwordProfile;
}
public static class PasswordProfile{
private String password;
private Boolean forceChangePasswordNextLogin;
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public Boolean getForceChangePasswordNextLogin() {
return forceChangePasswordNextLogin;
}
public void setForceChangePasswordNextLogin(Boolean forceChangePasswordNextLogin) {
this.forceChangePasswordNextLogin = forceChangePasswordNextLogin;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy