public interface OrganizationAPI
Modifier and Type | Method and Description |
---|---|
void |
deleteOrganization()
Deletes the organization.
|
String |
exportOrganization()
Exports the organization.
|
void |
importOrganization(String organizationContent)
Imports the organization using the
ImportPolicy.MERGE_DUPLICATES policy. |
void |
importOrganization(String organizationContent,
ImportPolicy policy)
Imports the organization.
|
void deleteOrganization() throws DeletionException
It deletes all user memberships, roles, groups, users and custom user info.
Use this method with caution: some artifacts like Application
s and DesignProcessDefinition
s may present display problems in the Bonita
BPM Portal if the referenced user was deleted. Note that you can disable a user instead of deleting it. To do so, use the method
UserAPI.updateUser(long, UserUpdater)
to set the attribute 'enabled' to false
DeletionException
- If an exception occurs during the organization deletionInvalidSessionException
- If the session is invalid (expired, unknown, ...)UserAPI.updateUser(long, UserUpdater)
,
Application
,
DesignProcessDefinition
void importOrganization(String organizationContent) throws OrganizationImportException
ImportPolicy.MERGE_DUPLICATES
policy.
An organization is composed by users, roles, groups and user memberships.
organizationContent
- the XML content of the organizationOrganizationImportException
- If an exception occurs during the organization importInvalidSessionException
- If the session is invalid (expired, unknown, ...)void importOrganization(String organizationContent, ImportPolicy policy) throws OrganizationImportException
An organization is composed by users, roles, groups and user memberships.
organizationContent
- the XML content of the organizationpolicy
- the import policyOrganizationImportException
- If an exception occurs during the organization importInvalidSessionException
- If the session is invalid (expired, unknown, ...)String exportOrganization() throws OrganizationExportException
An organization is composed by users, roles, groups and user memberships.
OrganizationExportException
- If an exception occurs during the organization exportInvalidSessionException
- If the session is invalid (expired, unknown, ...)Copyright © 2016 Bonitasoft S.A.. All rights reserved.