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

This session creates and removes catalog enablers. The data for create and update is provided via the CatalogEnablerForm.

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.
MethodcanCreateCatalogEnabler
Description

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

Returnboolean false if CatalogEnabler creation is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodcanCreateCatalogEnablerWithRecordTypes
Description

Tests if this user can create a single CatalogEnabler using the desired record types. While CatalogingRulesManager.getCatalogEnablerRecordTypes() can be used to examine which records are supported, this method tests which record(s) are required for creating a specific CatalogEnabler. Providing an empty array tests if a CatalogEnabler can be created with no records.

Parametersosid.type.Type[]catalogEnablerRecordTypesarray of catalog enabler record types
Returnboolean true if CatalogEnabler creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENT catalogEnablerRecordTypes is null
CompliancemandatoryThis method must be implemented.
MethodgetCatalogEnablerFormForCreate
Description

Gets the catalog enabler form for creating new catalog enablers. A new form should be requested for each create transaction.

Parametersosid.type.Type[]catalogEnablerRecordTypesarray of catalog enabler record types
Returnosid.cataloging.rules.CatalogEnablerFormthe catalog enabler form
ErrorsNULL_ARGUMENT catalogEnablerRecordTypes is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDunable to get form for requested record types
CompliancemandatoryThis method must be implemented.
MethodcreateCatalogEnabler
Description

Creates a new CatalogEnabler.

Parametersosid.cataloging.rules.CatalogEnablerFormcatalogEnablerFormthe form for this CatalogEnabler
Returnosid.cataloging.rules.CatalogEnablerthe new CatalogEnabler
ErrorsILLEGAL_STATE catalogEnablerForm already used in a create transaction
INVALID_ARGUMENTone or more of the form elements is invalid
NULL_ARGUMENT catalogEnablerForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED catalogEnablerForm did not originate from getCatalogEnablerFormForCreate()
CompliancemandatoryThis method must be implemented.
MethodcanUpdateCatalogEnablers
Description

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

Returnboolean false if CatalogEnabler modification is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodgetCatalogEnablerFormForUpdate
Description

Gets the catalog enabler form for updating an existing catalog enabler. A new catalog enabler form should be requested for each update transaction.

Parametersosid.id.IdcatalogEnablerIdthe Id of the CatalogEnabler
Returnosid.cataloging.rules.CatalogEnablerFormthe catalog enabler form
ErrorsNOT_FOUND catalogEnablerId is not found
NULL_ARGUMENT catalogEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodupdateCatalogEnabler
Description

Updates an existing catalog enabler.

Parametersosid.cataloging.rules.CatalogEnablerFormcatalogEnablerFormthe form containing the elements to be updated
ErrorsILLEGAL_STATE catalogEnablerForm already used in an update transaction
INVALID_ARGUMENTthe form contains an invalid value
NULL_ARGUMENT catalogEnablerForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED catalogEnablerForm did not originate from getCatalogEnablerFormForUpdate()
CompliancemandatoryThis method must be implemented.
MethodcanDeleteCatalogEnablers
Description

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

Returnboolean false if CatalogEnabler deletion is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoddeleteCatalogEnabler
Description

Deletes a CatalogEnabler.

Parametersosid.id.IdcatalogEnablerIdthe Id of the CatalogEnabler to remove
ErrorsNOT_FOUND catalogEnablerId not found
NULL_ARGUMENT catalogEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanManageCatalogEnablerAliases
Description

Tests if this user can manage Id aliases for catalog enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known changing an alias will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer alias operations to an unauthorized user.

Returnboolean false if CatalogEnabler aliasing is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodaliasCatalogEnabler
Description

Adds an Id to a CatalogEnabler for the purpose of creating compatibility. The primary Id of the CatalogEnabler is determined by the provider. The new Id performs as an alias to the primary Id . If the alias is a pointer to another catalog enabler. it is reassigned to the given catalog enabler Id.

Parametersosid.id.IdcatalogEnablerIdthe Id of a CatalogEnabler
osid.id.IdaliasIdthe alias Id
ErrorsALREADY_EXISTS aliasId is already assigned
NOT_FOUND catalogEnablerId not found
NULL_ARGUMENT catalogEnablerId or aliasId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.