Exemplo n.º 1
0
 public Tenant GetTenantByName(string tenantName)
 {
     if (string.IsNullOrEmpty(tenantName))
     {
         throw new ArgumentNullException("tenantName");
     }
     return(ProvisionLogic.GetTenantByName(tenantName));
 }
Exemplo n.º 2
0
 public bool TenantExists(string tenantName)
 {
     if (string.IsNullOrEmpty(tenantName))
     {
         throw new ArgumentNullException("tenantName");
     }
     return(ProvisionLogic.TenantExists(tenantName));
 }
Exemplo n.º 3
0
 public Tenant GetTenantById(Guid id)
 {
     if (id == Guid.Empty)
     {
         throw new ArgumentNullException("id");
     }
     return(ProvisionLogic.GetTenantById(id));
 }
Exemplo n.º 4
0
 public void ApproveTenant(string tenantName)
 {
     if (string.IsNullOrEmpty(tenantName))
     {
         throw new ArgumentNullException("tenantName");
     }
     ProvisionLogic.ApproveTenant(tenantName);
 }
Exemplo n.º 5
0
 public void SetDeadline(string tenantName, DateTime deadline)
 {
     if (string.IsNullOrEmpty(tenantName))
     {
         throw new ArgumentNullException("tenantName");
     }
     ProvisionLogic.SetDeadline(tenantName, deadline);
 }
Exemplo n.º 6
0
 public void DeleteTenant(string tenantName, bool deleteAllDatas)
 {
     if (string.IsNullOrEmpty(tenantName))
     {
         throw new ArgumentNullException("tenantName");
     }
     ProvisionLogic.DeleteTenant(tenantName, deleteAllDatas);
 }
Exemplo n.º 7
0
        public void UpdateTenantProfile(string tenantName, string displayName,
                                        string contact, string phone, string fax, string mobile, string email, string website,
                                        string city, string address, string zipcode)
        {
            if (string.IsNullOrEmpty(tenantName))
            {
                throw new ArgumentNullException("tenantName");
            }
            if (string.IsNullOrEmpty(displayName))
            {
                throw new ArgumentNullException("displayName");
            }

            ProvisionLogic.UpdateTenantProfile(tenantName, displayName,
                                               contact, phone, fax, mobile, email, website,
                                               city, address, zipcode);
        }
Exemplo n.º 8
0
        public Tenant CreateTenant(string tenantName, string displayName, int licenseCount,
                                   string contact, string phone, string fax, string mobile, string email, string website,
                                   string city, string address, string zipcode,
                                   string adminName, string adminPassword, string adminEmail)
        {
            if (string.IsNullOrEmpty(tenantName))
            {
                throw new ArgumentNullException("tenantName");
            }
            if (string.IsNullOrEmpty(displayName))
            {
                throw new ArgumentNullException("displayName");
            }

            return(ProvisionLogic.CreateTenant(tenantName, displayName, licenseCount,
                                               contact, phone, fax, mobile, email, website,
                                               city, address, zipcode,
                                               adminName, adminPassword, adminEmail));
        }
Exemplo n.º 9
0
 public Tenant[] FindTenants(string nameToMatch, bool?approved, bool?overdue)
 {
     return(ProvisionLogic.FindTenants(nameToMatch, approved, overdue));
 }
Exemplo n.º 10
0
 public Tenant[] GetAllTenants()
 {
     return(ProvisionLogic.GetAllTenants());
 }