public class OrgManager extends BaseManager
| Modifier and Type | Method and Description |
|---|---|
static DataList<OrgDto> |
activeOrgs(User user) |
static DataList<MultiOrgUserOverview> |
activeUsers(java.lang.Long orgIdIn) |
static java.util.List<Org> |
allOrgs(User user)
Returns the total number of orgs on this satellite.
|
static DataList |
allUsers() |
static void |
checkOrgName(java.lang.String newOrgName)
Check if the passed in org is a valid name and raises an
exception if its invalid..
|
static java.lang.Long |
getMigratedSystems(User user,
Org orgTo,
Org orgFrom)
Returns the date which this org trusted the supplied orgId
|
static java.lang.Long |
getSharedChannels(User user,
Org org,
Org orgTrust)
Returns the date which this org trusted the supplied orgId
|
static java.lang.Long |
getSharedSubscribedSys(User user,
Org org,
Org orgTrust)
Returns the date which this org trusted the supplied orgId
|
static java.lang.Long |
getTotalOrgCount(User user)
Returns the total number of orgs on this satellite.
|
static java.util.Date |
getTrustedSince(User user,
Org org,
Org trustOrg)
Returns the date which this org trusted the supplied orgId
|
static java.lang.String |
getTrustedSinceString(User user,
Org org,
Org trustOrg)
Returns the date which this org trusted the supplied orgId
|
static DataList<OrgChannelDto> |
orgChannelTrusts(java.lang.Long cid,
Org org) |
static DataList<OrgTrustOverview> |
orgTrusts(User user,
java.lang.Long orgIdIn)
Get a list of orgs with a trusted indicator for each.
|
static void |
renameOrg(Org org,
java.lang.String newName)
Rename org and relevant objects containing org name
|
static OrgDto |
toDetailsDto(Org org)
Basically transfers relevant data
from Org object to the Dto object
returns a new OrgDto object.
|
static DataList<TrustedOrgDto> |
trustedOrgs(User user) |
makeDataResult, makeDataResult, makeDataResult, makeDataResult, makeDataResultNoPagination, makeDataResultNoPagination, processListControl, processPageControlpublic static OrgDto toDetailsDto(Org org)
org - the org object to transfer frompublic static DataList<OrgDto> activeOrgs(User user)
user - User to cross security checkpublic static DataList<TrustedOrgDto> trustedOrgs(User user)
user - User to cross security checkpublic static DataList<OrgTrustOverview> orgTrusts(User user, java.lang.Long orgIdIn)
user - The user making the request.orgIdIn - The org to check.public static DataList<MultiOrgUserOverview> activeUsers(java.lang.Long orgIdIn)
orgIdIn - to check active userspublic static DataList<OrgChannelDto> orgChannelTrusts(java.lang.Long cid, Org org)
cid - Channel IDorg - Org used to check trust relationshipspublic static DataList allUsers()
public static java.lang.Long getTotalOrgCount(User user)
user - User performing the query.public static java.util.Date getTrustedSince(User user, Org org, Org trustOrg)
user - currently logged in userorg - our orgtrustOrg - the org we trustpublic static java.lang.String getTrustedSinceString(User user, Org org, Org trustOrg)
user - currently logged in userorg - our orgtrustOrg - the org we trustpublic static java.lang.Long getMigratedSystems(User user, Org orgTo, Org orgFrom)
user - currently logged in userorgTo - Org to calculate the number of System migrations toorgFrom - Org to calculate the number of System migrations frompublic static java.lang.Long getSharedChannels(User user, Org org, Org orgTrust)
user - currently logged in userorg - Org calculate the number of channels fromorgTrust - Org to calculate the number of channels topublic static java.lang.Long getSharedSubscribedSys(User user, Org org, Org orgTrust)
user - currently logged in userorg - Org calculate the number of channels fromorgTrust - Org to calculate the number of channels topublic static java.util.List<Org> allOrgs(User user)
user - User performing the query.public static void checkOrgName(java.lang.String newOrgName)
throws ValidatorException
newOrgName - the orgname to be appliedValidatorException - in case of bad/duplicate namepublic static void renameOrg(Org org, java.lang.String newName)
org - org to updatenewName - new name for org