Class TenantUpdater


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

      • tenant

        protected Tenant tenant
      • updateHelper

        protected org.craftercms.commons.mongo.UpdateHelper updateHelper
    • 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)
      • 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)
      • removeAttributeDefinitions

        public void removeAttributeDefinitions​(Collection<String> attributeNames)
      • update

        public void update()
                    throws org.craftercms.commons.mongo.MongoDataException
        Throws:
        org.craftercms.commons.mongo.MongoDataException