OSID Logo
OSID Specifications
hold rules package
Version 3.1.0
Interfaceosid.hold.rules.HoldEnablerRuleApplicationSession
Implementsosid.OsidSession
Used Byosid.hold.rules.HoldRulesManager
osid.hold.rules.HoldRulesProxyManager
Description

This session provides methods to apply HoldEnablers to Holds. A Hold with multiple HoldEnablers means any positive rule evaluation across the enablers result in an effective Hold.

MethodgetOublietteId
Description

Gets the Oubliette Id associated with this session.

Returnosid.id.Id the Oubliette Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetOubliette
Description

Gets the Oubliette associated with this session.

Returnosid.hold.Oubliette the oubliette
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanAssignHoldEnablers
Description

Tests if this user can alter hold enabler/hold 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 a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.

Returnboolean false if mapping is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodassignHoldEnablerToHold
Description

Adds an existing HoldEnabler to a Hold.

Parametersosid.id.IdholdEnablerId the Id of the HoldEnabler
osid.id.IdholdId the Id of the Hold
ErrorsALREADY_EXISTS holdEnablerId is already applied to holdId
NOT_FOUND holdEnablerId or holdId not found
NULL_ARGUMENT holdEnablerId or holdId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodunassignHoldEnablerFromHold
Description

Removes a HoldEnabler from a Hold.

Parametersosid.id.IdholdEnablerId the Id of the HoldEnabler
osid.id.IdholdId the Id of the Hold
ErrorsNOT_FOUND holdEnablerId or holdId not found or holdEnablerId is not applied to holdId
NULL_ARGUMENT holdEnablerId or holdId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanSequenceHoldEnablers
Description

Tests if this user can order HoldEnablers . A return of true does not guarantee successful authorization. A return of false indicates that it is known sequencing operations will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer sequencing operations to an unauthorized user.

Returnboolean false if HoldEnabler ordering is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodmoveHoldEnablerAhead
Description

Reorders hold enablers for a hold by moving the specified hold enabler in front of a reference hold enabler.

Parametersosid.id.IdholdEnablerId the Id of a HoldEnabler
osid.id.IdholdId the Id of a Hold
osid.id.IdreferenceId the reference hold enabler Id
ErrorsNOT_FOUND holdEnablerId, holdId, or referenceId not found or, holdEnablerId or referenceId not related to holdId
NULL_ARGUMENT holdEnablerId, holdId, or referenceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodmoveHoldEnablerBehind
Description

Reorders hold enablers for a hold by moving the specified hold enabler behind a reference hold enabler.

Parametersosid.id.IdholdEnablerId the Id of a HoldEnabler
osid.id.IdholdId the Id of a Hold
osid.id.IdreferenceId the reference hold enabler Id
ErrorsNOT_FOUND holdEnablerId, holdId, or referenceId not found or, holdEnablerId or referenceId not related to holdId
NULL_ARGUMENT holdEnablerId, holdId, or referenceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodorderHoldEnablers
Description

Reorders a set of hold enablers for a hold.

Parametersosid.id.Id[]holdEnablerId the Ids for a set of HoldEnablers
osid.id.IdholdId the Id of a Hold
ErrorsNOT_FOUND holdId not found or, a holdnEnablerId not related to holdId
NULL_ARGUMENT holdEnablerIds or holdId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.