|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface OrganizationManager
Manage organizations.
Client calls jet.server.api.AdminService.getOrganizationManager() to get instance of this interface.
Users can create, update or remove organizations through this interface.
| Method Summary | |
|---|---|
java.lang.String |
createOrganization(java.lang.String realmName,
java.lang.String orgName,
int maxUserNumber,
java.lang.String description,
java.lang.String submitter)
Creates a organization. |
JOrganization |
getOrganization(java.lang.String realmName,
java.lang.String orgName,
java.lang.String submitter)
Gets organization by its name. |
java.util.List<JOrganization> |
getOrganizations(java.lang.String realmName)
Gets all organizations in the specified realm. |
java.lang.String |
removeOrganization(java.lang.String realmName,
java.lang.String orgName,
java.lang.String submitter)
Removes a exists organization. |
java.lang.String |
updateOrganization(java.lang.String realmName,
java.lang.String orgName,
int maxUserNumber,
java.lang.String description,
java.lang.String submitter)
Updates a exists organization. |
| Method Detail |
|---|
JOrganization getOrganization(java.lang.String realmName,
java.lang.String orgName,
java.lang.String submitter)
throws NoSuchOrganizationException,
NoSuchRealmException
realmName - the realm which the organization defined in.orgName - the organization name.submitter - the submitter user id.
NoSuchOrganizationException - the orgName not exists.
NoSuchRealmException - the realm not exists.
java.util.List<JOrganization> getOrganizations(java.lang.String realmName)
throws NoSuchRealmException
realmName - the realm which the organization defined in.
NoSuchRealmException - the realm not exists.
java.lang.String createOrganization(java.lang.String realmName,
java.lang.String orgName,
int maxUserNumber,
java.lang.String description,
java.lang.String submitter)
throws OrganizationExistsException,
NoSuchRealmException
realmName - the realm which the organization defined in.orgName - the organization name to create.
cannot be null or empty,
max length 32 chars,
can only include A-Z, a-z, 0-9, space, "-", "_", dot,"&",
and excluding reserved name "Default".maxUserNumber - the maximum user number of the organization, no less than 0, 0 means unlimited.description - the description of the new create organization, max length is 255 chars.submitter - the submitter user id.
OrganizationExistsException - the organization specified by orgName is exists.
NoSuchRealmException - the realm specified by realmName is not exists.
java.lang.String updateOrganization(java.lang.String realmName,
java.lang.String orgName,
int maxUserNumber,
java.lang.String description,
java.lang.String submitter)
throws NoSuchOrganizationException,
NoSuchRealmException
realmName - the realm which the organization defined in.orgName - the organization name to update.maxUserNumber - the maximum user number of the organization, no less than 0, 0 means unlimited.description - the description of the new create organization, max length is 255 chars.submitter - the submitter user id.
NoSuchOrganizationException - the organization specified by orgName is not exists.
NoSuchRealmException - the realm specified by realmName is not exists.
java.lang.String removeOrganization(java.lang.String realmName,
java.lang.String orgName,
java.lang.String submitter)
throws NoSuchOrganizationException,
NoSuchRealmException
realmName - the realm which the organization defined inorgName - the organization name to remove.submitter - the submitter user id.
NoSuchOrganizationException - the organization specified by orgName is not exists.
NoSuchRealmException - the realm specified by realmName is not exists.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||