Package org.craftercms.profile.utils.db
Class TenantUpdater
- java.lang.Object
-
- org.craftercms.profile.utils.db.TenantUpdater
-
public class TenantUpdater extends Object
Created by alfonsovasquez on 20/6/16.
-
-
Field Summary
Fields Modifier and Type Field Description protected Tenant
tenant
protected TenantRepository
tenantRepository
protected org.craftercms.commons.mongo.UpdateHelper
updateHelper
-
Constructor Summary
Constructors Constructor Description TenantUpdater(Tenant tenant, org.craftercms.commons.mongo.UpdateHelper updateHelper, TenantRepository tenantRepository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAttributeDefinitions(Collection<AttributeDefinition> attributeDefinitions)
void
addAvailableRoles(Collection<String> availableRoles)
Tenant
getTenant()
protected int
indexOfAttributeDefinition(String name, List<AttributeDefinition> definitions)
void
removeAttributeDefinitions(Collection<String> attributeNames)
void
removeAvailableRoles(Collection<String> availableRoles)
void
setAttributeDefinitions(List<AttributeDefinition> attributeDefinitions)
void
setAvailableRoles(Set<String> availableRoles)
void
setCleanseAttributes(boolean cleanseAttributes)
void
setSsoEnabled(boolean ssoEnabled)
void
setVerifyNewProfiles(boolean verifyNewProfiles)
void
update()
void
updateAttributeDefinitions(Collection<AttributeDefinition> attributeDefinitions)
-
-
-
Field Detail
-
tenant
protected Tenant tenant
-
updateHelper
protected org.craftercms.commons.mongo.UpdateHelper updateHelper
-
tenantRepository
protected TenantRepository tenantRepository
-
-
Constructor Detail
-
TenantUpdater
public TenantUpdater(Tenant tenant, org.craftercms.commons.mongo.UpdateHelper updateHelper, TenantRepository tenantRepository)
-
-
Method Detail
-
getTenant
public Tenant getTenant()
-
setVerifyNewProfiles
public void setVerifyNewProfiles(boolean verifyNewProfiles)
-
addAvailableRoles
public void addAvailableRoles(Collection<String> availableRoles)
-
removeAvailableRoles
public void removeAvailableRoles(Collection<String> availableRoles)
-
setSsoEnabled
public void setSsoEnabled(boolean ssoEnabled)
-
setCleanseAttributes
public void setCleanseAttributes(boolean cleanseAttributes)
-
setAttributeDefinitions
public void setAttributeDefinitions(List<AttributeDefinition> attributeDefinitions)
-
addAttributeDefinitions
public void addAttributeDefinitions(Collection<AttributeDefinition> attributeDefinitions)
-
updateAttributeDefinitions
public void updateAttributeDefinitions(Collection<AttributeDefinition> attributeDefinitions)
-
removeAttributeDefinitions
public void removeAttributeDefinitions(Collection<String> attributeNames)
-
update
public void update() throws org.craftercms.commons.mongo.MongoDataException
- Throws:
org.craftercms.commons.mongo.MongoDataException
-
indexOfAttributeDefinition
protected int indexOfAttributeDefinition(String name, List<AttributeDefinition> definitions)
-
-