Interface StepConstrainerEnablerOfficeAssignmentSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to re-assign
StepConstrainerEnabler to Office mappings. a
StepConstrainerEnabler may appear in multiple Office objects and
removing the last reference to a StepConstrainerEnabler is the
equivalent of deleting it. Each Office may have its own
authorizations governing who is allowed to operate on it.
Adding a reference of a StepConstrainerEnabler to another
Office is not a copy operation (eg: does not change its Id
).
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignStepConstrainerEnablerToOffice(Id stepConstrainerEnablerId, Id officeId) Adds an existingStepConstrainerEnablerto anOffice.booleanTests if this user can alter step constrainer enabler/office mappings.booleancanAssignStepConstrainerEnablersToOffice(Id officeId) Tests if this user can alter step constrainer enabler/office mappings.getAssignableOfficeIds(Id officeId) Gets a list of office including and under the given office node in which any step constrainer enabler can be assigned.getAssignableOfficeIdsForStepConstrainerEnabler(Id officeId, Id stepConstrainerEnablerId) Gets a list of office including and under the given office node in which a specific step constrainer enabler can be assigned.voidreassignStepConstrainerEnablerToOffice(Id stepConstrainerEnablerId, Id fromOfficeId, Id toOfficeId) Moves aStepConstrainerEnablerfrom oneOfficeto another.voidunassignStepConstrainerEnablerFromOffice(Id stepConstrainerEnablerId, Id officeId) Removes aStepConstrainerEnablerfrom anOffice.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionsModifier and TypeMethodDescriptionGets the agent authenticated to this session.Gets theIdof the agent authenticated to this session.Gets the rate of the service clock.getDate()Gets the service date which may be the current date or the effective date in which this session exists.Gets the effective agent in use by this session.Gets theIdof the effective agent in use by this session.Gets theDisplayTextformatTypepreference in effect for this session.Gets the locale indicating the localization preferences in effect for this session.booleanTests if an agent is authenticated to this session.Starts a new transaction for this sesson.booleanTests for the availability of transactions.
-
Method Details
-
canAssignStepConstrainerEnablers
boolean canAssignStepConstrainerEnablers()Tests if this user can alter step constrainer enabler/office mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known mapping methods in this session will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.- Returns:
falseif mapping is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
canAssignStepConstrainerEnablersToOffice
Tests if this user can alter step constrainer enabler/office mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known mapping methods in this session will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.- Parameters:
officeId- theIdof theOffice- Returns:
falseif mapping is not authorized,trueotherwise- Throws:
NullArgumentException-officeIdisnull- Compliance:
mandatory- This method must be implemented.
-
getAssignableOfficeIds
Gets a list of office including and under the given office node in which any step constrainer enabler can be assigned.- Parameters:
officeId- theIdof theOffice- Returns:
- list of assignable office
Ids - Throws:
NullArgumentException-officeIdisnullOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getAssignableOfficeIdsForStepConstrainerEnabler
IdList getAssignableOfficeIdsForStepConstrainerEnabler(Id officeId, Id stepConstrainerEnablerId) throws OperationFailedException Gets a list of office including and under the given office node in which a specific step constrainer enabler can be assigned.- Parameters:
officeId- theIdof theOfficestepConstrainerEnablerId- theIdof theStepConstrainerEnabler- Returns:
- list of assignable office
Ids - Throws:
NullArgumentException-officeIdorstepConstrainerEnablerIdisnullOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
assignStepConstrainerEnablerToOffice
void assignStepConstrainerEnablerToOffice(Id stepConstrainerEnablerId, Id officeId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingStepConstrainerEnablerto anOffice.- Parameters:
stepConstrainerEnablerId- theIdof theStepConstrainerEnablerofficeId- theIdof theOffice- Throws:
AlreadyExistsException-stepConstrainerEnablerIdis already assigned toofficeIdNotFoundException-stepConstrainerEnablerIdorofficeIdnot foundNullArgumentException-stepConstrainerEnablerIdorofficeIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignStepConstrainerEnablerFromOffice
void unassignStepConstrainerEnablerFromOffice(Id stepConstrainerEnablerId, Id officeId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes aStepConstrainerEnablerfrom anOffice.- Parameters:
stepConstrainerEnablerId- theIdof theStepConstrainerEnablerofficeId- theIdof theOffice- Throws:
NotFoundException-stepConstrainerEnablerIdorofficeIdnot found orstepConstrainerEnablerIdnot assigned toofficeIdNullArgumentException-stepConstrainerEnablerIdorofficeIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
reassignStepConstrainerEnablerToOffice
void reassignStepConstrainerEnablerToOffice(Id stepConstrainerEnablerId, Id fromOfficeId, Id toOfficeId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Moves aStepConstrainerEnablerfrom oneOfficeto another. Mappings to otherOfficesare unaffected.- Parameters:
stepConstrainerEnablerId- theIdof theStepConstrainerEnablerfromOfficeId- theIdof the currentOfficetoOfficeId- theIdof the destinationOffice- Throws:
AlreadyExistsException-stepConstrainerEnablerIdalready assigned totoOfficeIdNotFoundException-stepConstrainerEnablerId, fromOfficeId, ortoOfficeIdnot found orstepConstrainerEnablerIdnot mapped tofromOfficeIdNullArgumentException-stepConstrainerEnablerId, fromOfficeId, ortoOfficeIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-