Class TenantUpdater

java.lang.Object
org.craftercms.profile.utils.db.TenantUpdater

public class TenantUpdater extends Object
Created by alfonsovasquez on 20/6/16.
  • Field Details

    • tenant

      protected Tenant tenant
    • updateHelper

      protected org.craftercms.commons.mongo.UpdateHelper updateHelper
    • tenantRepository

      protected TenantRepository tenantRepository
  • Constructor Details

    • TenantUpdater

      public TenantUpdater(Tenant tenant, org.craftercms.commons.mongo.UpdateHelper updateHelper, TenantRepository tenantRepository)
  • Method Details

    • getTenant

      public Tenant getTenant()
    • setVerifyNewProfiles

      public void setVerifyNewProfiles(boolean verifyNewProfiles)
    • setAvailableRoles

      public void setAvailableRoles(Set<String> availableRoles)
    • 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)