Package org.alfresco.rest.model
Class RestPersonModel
java.lang.Object
org.alfresco.utility.model.TestModel
org.alfresco.rest.model.RestPersonModel
- All Implemented Interfaces:
IModelAssertion<RestPersonModel>,IRestModel<RestPersonModel>,org.alfresco.utility.model.Model
public class RestPersonModel
extends org.alfresco.utility.model.TestModel
implements IModelAssertion<RestPersonModel>, IRestModel<RestPersonModel>
Person Model implementation
-
Constructor Summary
ConstructorsConstructorDescriptionRestPersonModel(String firstName, boolean emailNotificationsEnabled, RestCompanyModel company, String id, boolean enabled, String email) -
Method Summary
Modifier and TypeMethodDescriptiongetEmail()booleanbooleangetId()getQuota()static RestPersonModelgetRandomPersonModel(String... ignoredFields) Generate a PersonModel with random values for all existing fields excluding fields specified as ingnoredFieldsonModel()voidsetAspectNames(List<String> aspectNames) voidsetAvatarId(String avatarId) voidsetCapabilities(Map<String, Boolean> capabilities) voidsetCompany(RestCompanyModel company) voidsetDescription(String description) voidsetDisplayName(String displayName) voidvoidsetEmailNotificationsEnabled(boolean emailNotificationsEnabled) voidsetEnabled(boolean enabled) voidsetFirstName(String firstName) voidsetGoogleId(String googleId) voidvoidsetInstantMessageId(String instantMessageId) voidsetJobTitle(String jobTitle) voidsetLastName(String lastName) voidsetLocation(String location) voidvoidsetPassword(String password) voidsetProperties(Object properties) voidvoidsetQuotaUsed(String quotaUsed) voidsetSkypeId(String skypeId) voidsetStatusUpdatedAt(String statusUpdatedAt) voidsetTelephone(String telephone) voidsetUserStatus(String userStatus) Methods inherited from class org.alfresco.utility.model.TestModel
setRandomValuesForAllFields, toInfo, toJson, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.alfresco.rest.core.assertion.IModelAssertion
and, assertThat
-
Constructor Details
-
RestPersonModel
public RestPersonModel() -
RestPersonModel
public RestPersonModel(String firstName, boolean emailNotificationsEnabled, RestCompanyModel company, String id, boolean enabled, String email)
-
-
Method Details
-
onModel
- Specified by:
onModelin interfaceIRestModel<RestPersonModel>
-
getFirstName
-
setFirstName
-
getLastName
-
setLastName
-
getEmailNotificationsEnabled
public boolean getEmailNotificationsEnabled() -
setEmailNotificationsEnabled
public void setEmailNotificationsEnabled(boolean emailNotificationsEnabled) -
getCompany
-
setCompany
-
getId
-
setId
-
getEnabled
public boolean getEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
getEmail
-
setEmail
-
getAvatarId
-
setAvatarId
-
getLocation
-
setLocation
-
getInstantMessageId
-
setInstantMessageId
-
getGoogleId
-
setGoogleId
-
getSkypeId
-
setSkypeId
-
getDescription
-
setDescription
-
getTelephone
-
setTelephone
-
getJobTitle
-
setJobTitle
-
getMobile
-
setMobile
-
getStatusUpdatedAt
-
setStatusUpdatedAt
-
getUserStatus
-
setUserStatus
-
getAspectNames
-
setAspectNames
-
getProperties
-
setProperties
-
getCapabilities
-
setCapabilities
-
getPassword
-
setPassword
-
getDisplayName
-
setDisplayName
-
getQuotaUsed
-
setQuotaUsed
-
getQuota
-
setQuota
-
getRandomPersonModel
Generate a PersonModel with random values for all existing fields excluding fields specified as ingnoredFields- Parameters:
ignoredFields- field to be excluded when generating a random model- Returns:
-