Package org.craftercms.profile.api
Class Tenant
java.lang.Object
org.craftercms.profile.api.Tenant
A tenant is normally an application that shares common configuration.
- Author:
- avasquez
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the definitions of attributes that users of this tenant can have.Returns the available roles that can be assigned to users of this tenant.org.bson.types.ObjectIdgetId()Returns the tenant's DB ID.getName()Returns the name of the tenant.inthashCode()booleanbooleanReturns true is single-sign on (SSO) is enabled for this tenant .booleanReturns true if new profiles should be verified through email by the user, for the accounts or users of this tenant.voidsetAttributeDefinitions(List<AttributeDefinition> attributeDefinitions) Sets the definitions of attributes that users of this tenant can have.voidsetAvailableRoles(Set<String> availableRoles) Sets the available roles that can be assigned to users of this tenant.voidsetCleanseAttributes(boolean cleanseAttributes) voidsetId(org.bson.types.ObjectId id) Sets the tenant's DB ID.voidSets the name of the tenant.voidsetSsoEnabled(boolean ssoEnabled) Sets if single sign-on (SSO) should be enabled for this tenant.voidsetVerifyNewProfiles(boolean verifyNewProfiles) Sets if new profiles should be verified through email by the user, for the accounts or users of this tenant.toString()
-
Field Details
-
cleanseAttributes
protected boolean cleanseAttributes
-
-
Constructor Details
-
Tenant
public Tenant()
-
-
Method Details
-
getId
public org.bson.types.ObjectId getId()Returns the tenant's DB ID. -
setId
public void setId(org.bson.types.ObjectId id) Sets the tenant's DB ID.- Parameters:
id- the ID
-
getName
Returns the name of the tenant. -
setName
Sets the name of the tenant. -
isVerifyNewProfiles
public boolean isVerifyNewProfiles()Returns true if new profiles should be verified through email by the user, for the accounts or users of this tenant. -
setVerifyNewProfiles
public void setVerifyNewProfiles(boolean verifyNewProfiles) Sets if new profiles should be verified through email by the user, for the accounts or users of this tenant.- Parameters:
verifyNewProfiles- true to verify new profiles, false otherwise
-
getAvailableRoles
Returns the available roles that can be assigned to users of this tenant. -
setAvailableRoles
Sets the available roles that can be assigned to users of this tenant.- Parameters:
availableRoles- the available roles for users of the tenant.
-
isSsoEnabled
public boolean isSsoEnabled()Returns true is single-sign on (SSO) is enabled for this tenant . -
setSsoEnabled
public void setSsoEnabled(boolean ssoEnabled) Sets if single sign-on (SSO) should be enabled for this tenant. -
getAttributeDefinitions
Returns the definitions of attributes that users of this tenant can have. -
setAttributeDefinitions
Sets the definitions of attributes that users of this tenant can have.- Parameters:
attributeDefinitions- the available attribute definitions for users of the tenant
-
isCleanseAttributes
public boolean isCleanseAttributes() -
setCleanseAttributes
public void setCleanseAttributes(boolean cleanseAttributes) -
equals
-
hashCode
public int hashCode() -
toString
-