public interface OrganizationHierarchyDesignSession extends OsidSession
This session defines methods for managing a hierarchy of
Organization
objects. Each node in the hierarchy is a unique
Organization.
Modifier and Type | Method and Description |
---|---|
void |
addChildOrganization(Id organizationId,
Id childId)
Adds a child to an organization.
|
void |
addRootOrganization(Id organizationId)
Adds a root organization.
|
boolean |
canModifyOrganizationHierarchy()
Tests if this user can change the hierarchy.
|
Hierarchy |
getOrganizationHierarchy()
Gets the hierarchy associated with this session.
|
Id |
getOrganizationHierarchyId()
Gets the hierarchy
Id associated with this session. |
void |
removeChildOrganization(Id organizationId,
Id childId)
Removes a child from an organization.
|
void |
removeChildOrganizations(Id organizationId)
Removes all children from an organization.
|
void |
removeRootOrganization(Id organizationId)
Removes a root organization.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getOrganizationHierarchyId()
Id
associated with this session. Id
associated with this sessionmandatory
- This method must be implemented. Hierarchy getOrganizationHierarchy() throws OperationFailedException, PermissionDeniedException
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canModifyOrganizationHierarchy()
PERMISSION_DENIED.
This is intended as a hint to an
application that may opt not to offer these operations to an
unauthorized user. false
if changing this hierarchy is not
authorized, true
otherwisemandatory
- This method must be implemented. void addRootOrganization(Id organizationId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
organizationId
- the Id
of an organizationAlreadyExistsException
- organizationId
is already in hierarchyNotFoundException
- organizationId
not
foundNullArgumentException
- organizationId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void removeRootOrganization(Id organizationId) throws NotFoundException, OperationFailedException, PermissionDeniedException
organizationId
- the Id
of an organizationNotFoundException
- organizationId
not
foundNullArgumentException
- organizationId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void addChildOrganization(Id organizationId, Id childId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
organizationId
- the Id
of an organizationchildId
- the Id
of the new childAlreadyExistsException
- organizationId
is already a parent of childId
NotFoundException
- organizationId
or
childId
not foundNullArgumentException
- organizationId
or childId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void removeChildOrganization(Id organizationId, Id childId) throws NotFoundException, OperationFailedException, PermissionDeniedException
organizationId
- the Id
of a n organizationchildId
- the Id
of the new childNotFoundException
- organizationId
not a
parent of childId
NullArgumentException
- organizationId
or childId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void removeChildOrganizations(Id organizationId) throws NotFoundException, OperationFailedException, PermissionDeniedException
organizationId
- the Id
of an organizationNotFoundException
- organizationId
not
foundNullArgumentException
- organizationId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.