OSID Logo
OSID Specifications
cataloging rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.cataloging.rules.CatalogEnablerRuleApplicationSession
Implementsosid.OsidSession
Description

This session provides methods to apply CatalogEnablers to Catalogs. A Catalog with multiple CatalogEnablers means any positive rule evaluation across the enablers result in an enabled Catalog.

MethodgetCatalogId
Description

Gets the Catalog Id associated with this session.

Returnosid.id.Idthe Catalog Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetCatalog
Description

Gets the Catalog associated with this session.

Returnosid.cataloging.Catalogthe catalog
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanAssignCatalogEnablers
Description

Tests if this user can alter catalog enabler/catalog 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
CompliancemandatoryThis method must be implemented.
MethodassignCatalogEnablerToCatalog
Description

Adds an existing CatalogEnabler to a Catalog.

Parametersosid.id.IdcatalogEnablerIdthe Id of the CatalogEnabler
osid.id.IdcatalogIdthe Id of the Catalog
ErrorsALREADY_EXISTS catalogEnablerId is already applied to catalogId
NOT_FOUND catalogEnablerId or catalogId not found
NULL_ARGUMENT catalogEnablerId or catalogId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodunassignCatalogEnablerFromCatalog
Description

Removes a CatalogEnabler from a Catalog.

Parametersosid.id.IdcatalogEnablerIdthe Id of the CatalogEnabler
osid.id.IdcatalogIdthe Id of the Catalog
ErrorsNOT_FOUND catalogEnablerId or catalogId not found or catalogEnablerId is not applied to catalogId
NULL_ARGUMENT catalogEnablerId or catalogId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanSequenceCatalogEnablers
Description

Tests if this user can order CatalogEnablers. 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 CatalogEnabler ordering is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodmoveCatalogEnablerAhead
Description

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

Parametersosid.id.IdcatalogEnablerIdthe Id of a CatalogEnabler
osid.id.IdcatalogIdthe Id of a Catalog
osid.id.IdreferenceIdthe reference catalog enabler Id
ErrorsNOT_FOUND catalogEnablerId, catalogId, or referenceId not found or, catalogEnablerId or referenceId not related to catalogId
NULL_ARGUMENT catalogEnablerId, catalogId or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodmoveCatalogEnablerBehind
Description

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

Parametersosid.id.IdcatalogEnablerIdthe Id of a CatalogEnabler
osid.id.IdcatalogIdthe Id of a Catalog
osid.id.IdreferenceIdthe reference catalog enabler Id
ErrorsNOT_FOUND catalogEnablerId, catalogId, or referenceId not found or, catalogEnablerId or referenceId not related to catalogId
NULL_ARGUMENT catalogEnablerId, catalogId or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodorderCatalogEnablers
Description

Reorders a set of catalog enablers for a catalog.

Parametersosid.id.Id[]catalogEnablerIdthe Ids for a set of CatalogEnablers
osid.id.IdcatalogIdthe Id of a Catalog
ErrorsNOT_FOUND catalogId not found or, a catalogEnablerId not related to catalogId
NULL_ARGUMENT catalogEnablerIds or catalogId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.