Interface TenantService


  • public interface TenantService
    Service for managing tenants.
    Author:
    avasquez
    • Method Detail

      • createTenant

        Tenant createTenant​(Tenant tenant)
                     throws ProfileException
        Creates the given tenant, failing if it already has been created.
        Parameters:
        tenant - the tenant to create
        Returns:
        the created tenant
        Throws:
        ProfileException
      • verifyNewProfiles

        Tenant verifyNewProfiles​(String tenantName,
                                 boolean verify)
                          throws ProfileException
        Sets if new profiles for the specified tenant should be verified or not.
        Parameters:
        tenantName - the tenant's name
        verify - true to verify new profiles through email, false otherwise
        Returns:
        the tenant
        Throws:
        ProfileException
      • updateAttributeDefinitions

        Tenant updateAttributeDefinitions​(String tenantName,
                                          Collection<AttributeDefinition> attributeDefinitions)
                                   throws ProfileException
        Updates the given attribute definitions of the specified tenant.
        Parameters:
        tenantName - the tenant's name
        attributeDefinitions - the definitions to update (should have the same name as definitions that the tenant already has)
        Returns:
        the tenant
        Throws:
        ProfileException
      • removeAttributeDefinitions

        Tenant removeAttributeDefinitions​(String tenantName,
                                          Collection<String> attributeNames)
                                   throws ProfileException
        Removes the given attribute definitions from the specified tenant.
        Parameters:
        tenantName - the tenant's name
        attributeNames - the name of the attributes whose definitions should be removed
        Returns:
        the tenant
        Throws:
        ProfileException