mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged HEAD-QA to HEAD (4.2) (including moving test classes into separate folders)
51903 to 54309 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@54310 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
69
source/java/org/alfresco/repo/tenant/Network.java
Normal file
69
source/java/org/alfresco/repo/tenant/Network.java
Normal file
@@ -0,0 +1,69 @@
|
||||
package org.alfresco.repo.tenant;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
public class Network extends Tenant implements Comparable<Network>
|
||||
{
|
||||
protected Date createdAt; // Cloud only
|
||||
protected Boolean isHomeNetwork;
|
||||
protected List<Quota> quotas = new LinkedList<Quota>(); // Cloud only
|
||||
protected String subscriptionLevel; // Cloud only
|
||||
protected Boolean paidNetwork; // Cloud only
|
||||
|
||||
public Network(String tenantDomain, boolean enabled, String rootContentStoreDir, String dbUrl)
|
||||
{
|
||||
super(tenantDomain, enabled, rootContentStoreDir, dbUrl);
|
||||
}
|
||||
|
||||
public Network(Tenant tenant, Boolean isHomeNetwork, Date createdAt, String subscriptionLevel, Boolean paidNetwork, List<Quota> quotas)
|
||||
{
|
||||
super(tenant.getTenantDomain(), tenant.isEnabled(), tenant.getRootContentStoreDir(), tenant.getDbUrl());
|
||||
this.isHomeNetwork = isHomeNetwork;
|
||||
this.createdAt = createdAt;
|
||||
this.subscriptionLevel = subscriptionLevel;
|
||||
this.paidNetwork = paidNetwork;
|
||||
this.quotas = quotas;
|
||||
}
|
||||
|
||||
public Date getCreatedAt()
|
||||
{
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public Boolean getIsHomeNetwork()
|
||||
{
|
||||
return isHomeNetwork;
|
||||
}
|
||||
|
||||
public String getSubscriptionLevel()
|
||||
{
|
||||
return subscriptionLevel;
|
||||
}
|
||||
|
||||
public Boolean getPaidNetwork()
|
||||
{
|
||||
return paidNetwork;
|
||||
}
|
||||
|
||||
public List<Quota> getQuotas()
|
||||
{
|
||||
return quotas;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
return "Network [createdAt=" + createdAt + ", isHomeNetwork="
|
||||
+ isHomeNetwork + ", quotas=" + quotas + ", subscriptionLevel="
|
||||
+ subscriptionLevel + ", paidNetwork=" + paidNetwork + "]";
|
||||
}
|
||||
|
||||
@Override
|
||||
public int compareTo(Network o)
|
||||
{
|
||||
int ret = getTenantDomain().compareTo(o.getTenantDomain());
|
||||
return ret;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user