Interface CatalogEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
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 .
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignCatalogEnablerToCatalog(Id catalogEnablerId, Id catalogId) Adds an existingCatalogEnablerto aCatalog.booleanTests if this user can alter catalog enabler/catalog mappings.booleanTests if this user can orderCatalogEnablers.Gets theCatalogassociated with this session.Gets theCatalogIdassociated with this session.voidmoveCatalogEnablerAhead(Id catalogEnablerId, Id catalogId, Id referenceId) Reorders catalog enablers for a catalog by moving the specified catalog enabler in front of a reference catalog enabler.voidmoveCatalogEnablerBehind(Id catalogEnablerId, Id catalogId, Id referenceId) Reorders catalog enablers for a catalog by moving the specified catalog enabler behind a reference catalog enabler.voidorderCatalogEnablers(Id[] catalogEnablerId, Id catalogId) Reorders a set of catalog enablers for a catalog.voidunassignCatalogEnablerFromCatalog(Id catalogEnablerId, Id catalogId) Removes aCatalogEnablerfrom aCatalog.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
-
getCatalogId
Id getCatalogId()Gets theCatalogIdassociated with this session.- Returns:
- the
Catalog Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getCatalog
Gets theCatalogassociated with this session.- Returns:
- the catalog
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canAssignCatalogEnablers
boolean canAssignCatalogEnablers()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 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.
-
assignCatalogEnablerToCatalog
void assignCatalogEnablerToCatalog(Id catalogEnablerId, Id catalogId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingCatalogEnablerto aCatalog.- Parameters:
catalogEnablerId- theIdof theCatalogEnablercatalogId- theIdof theCatalog- Throws:
AlreadyExistsException-catalogEnablerIdis already applied tocatalogIdNotFoundException-catalogEnablerIdorcatalogIdnot foundNullArgumentException-catalogEnablerIdorcatalogIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignCatalogEnablerFromCatalog
void unassignCatalogEnablerFromCatalog(Id catalogEnablerId, Id catalogId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes aCatalogEnablerfrom aCatalog.- Parameters:
catalogEnablerId- theIdof theCatalogEnablercatalogId- theIdof theCatalog- Throws:
NotFoundException-catalogEnablerIdorcatalogIdnot found orcatalogEnablerIdis not applied tocatalogIdNullArgumentException-catalogEnablerIdorcatalogIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceCatalogEnablers
boolean canSequenceCatalogEnablers()Tests if this user can orderCatalogEnablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known sequencing operations will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer sequencing operations to an unauthorized user.- Returns:
falseifCatalogEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveCatalogEnablerAhead
void moveCatalogEnablerAhead(Id catalogEnablerId, Id catalogId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders catalog enablers for a catalog by moving the specified catalog enabler in front of a reference catalog enabler.- Parameters:
catalogEnablerId- theIdof aCatalogEnablercatalogId- theIdof aCatalogreferenceId- the reference catalog enablerId- Throws:
NotFoundException-catalogEnablerId, catalogId, orreferenceIdnot found or,catalogEnablerIdorreferenceIdnot related tocatalogIdNullArgumentException-catalogEnablerId, catalogIdorreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveCatalogEnablerBehind
void moveCatalogEnablerBehind(Id catalogEnablerId, Id catalogId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders catalog enablers for a catalog by moving the specified catalog enabler behind a reference catalog enabler.- Parameters:
catalogEnablerId- theIdof aCatalogEnablercatalogId- theIdof aCatalogreferenceId- the reference catalog enablerId- Throws:
NotFoundException-catalogEnablerId, catalogId, orreferenceIdnot found or,catalogEnablerIdorreferenceIdnot related tocatalogIdNullArgumentException-catalogEnablerId, catalogIdorreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderCatalogEnablers
void orderCatalogEnablers(Id[] catalogEnablerId, Id catalogId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of catalog enablers for a catalog.- Parameters:
catalogEnablerId- theIdsfor a set ofCatalogEnablerscatalogId- theIdof aCatalog- Throws:
NotFoundException-catalogIdnot found or, acatalogEnablerIdnot related tocatalogIdNullArgumentException-catalogEnablerIdsorcatalogIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-