Interface CanonicalUnitProcessorEnablerCatalogueAssignmentSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to re-assign
CanonicalUnitProcessorEnabler to Catalogue mappings. A
CanonicalUnitProcessorEnabler may appear in multiple Catalogue
objects and removing the last reference to a
CanonicalUnitProcessorEnabler is the equivalent of deleting it. Each
Catalogue may have its own authorizations governing who is allowed
to operate on it.
Adding a reference of a CanonicalUnitProcessorEnabler to
another Catalogue is not a copy operation (eg: does not change its
Id ).
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignCanonicalUnitProcessorEnablerToCatalogue(Id canonicalUnitProcessorEnablerId, Id catalogueId) Adds an existingCanonicalUnitProcessorEnablerto aCatalogue.booleanTests if this user can alter canonical unit processor enabler/catalogue mappings.booleancanAssignCanonicalUnitProcessorEnablersToCatalogue(Id catalogueId) Tests if this user can alter canonical unit processor enabler/catalogue mappings.getAssignableCatalogueIds(Id catalogueId) Gets a list of catalogues including and under the given catalogue node in which any canonical unit processor enabler can be assigned.getAssignableCatalogueIdsForCanonicalUnitProcessorEnabler(Id catalogueId, Id canonicalUnitProcessorEnablerId) Gets a list of catalogues including and under the given catalogue node in which a specific canonical unit processor enabler can be assigned.voidreassignCanonicalUnitProcessorEnablerToCatalogue(Id canonicalUnitProcessorEnablerId, Id fromCatalogueId, Id toCatalogueId) Moves aCanonicalUnitProcessorEnablerfrom oneCatalogueto another.voidunassignCanonicalUnitProcessorEnablerFromCatalogue(Id canonicalUnitProcessorEnablerId, Id catalogueId) Removes aCanonicalUnitProcessorEnablerfrom aCatalogue.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
-
canAssignCanonicalUnitProcessorEnablers
boolean canAssignCanonicalUnitProcessorEnablers()Tests if this user can alter canonical unit processor enabler/catalogue 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.
-
canAssignCanonicalUnitProcessorEnablersToCatalogue
Tests if this user can alter canonical unit processor enabler/catalogue 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:
catalogueId- theIdof theCatalogue- Returns:
falseif mapping is not authorized,trueotherwise- Throws:
NullArgumentException-catalogueIdisnull- Compliance:
mandatory- This method must be implemented.
-
getAssignableCatalogueIds
Gets a list of catalogues including and under the given catalogue node in which any canonical unit processor enabler can be assigned.- Parameters:
catalogueId- theIdof theCatalogue- Returns:
- list of assignable catalogue
Ids - Throws:
NullArgumentException-catalogueIdisnullOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getAssignableCatalogueIdsForCanonicalUnitProcessorEnabler
IdList getAssignableCatalogueIdsForCanonicalUnitProcessorEnabler(Id catalogueId, Id canonicalUnitProcessorEnablerId) throws OperationFailedException Gets a list of catalogues including and under the given catalogue node in which a specific canonical unit processor enabler can be assigned.- Parameters:
catalogueId- theIdof theCataloguecanonicalUnitProcessorEnablerId- theIdof theCanonicalUnitProcessorEnabler- Returns:
- list of assignable catalogue
Ids - Throws:
NullArgumentException-catalogueIdorcanonicalUnitProcessorEnablerIdisnullOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
assignCanonicalUnitProcessorEnablerToCatalogue
void assignCanonicalUnitProcessorEnablerToCatalogue(Id canonicalUnitProcessorEnablerId, Id catalogueId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingCanonicalUnitProcessorEnablerto aCatalogue.- Parameters:
canonicalUnitProcessorEnablerId- theIdof theCanonicalUnitProcessorEnablercatalogueId- theIdof theCatalogue- Throws:
AlreadyExistsException-canonicalUnitProcessorEnablerIdalready assigned tocatalogueIdNotFoundException-canonicalUnitProcessorEnablerIdorcatalogueIdnot foundNullArgumentException-canonicalUnitProcessorEnablerIdorcatalogueIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignCanonicalUnitProcessorEnablerFromCatalogue
void unassignCanonicalUnitProcessorEnablerFromCatalogue(Id canonicalUnitProcessorEnablerId, Id catalogueId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes aCanonicalUnitProcessorEnablerfrom aCatalogue.- Parameters:
canonicalUnitProcessorEnablerId- theIdof theCanonicalUnitProcessorEnablercatalogueId- theIdof theCatalogue- Throws:
NotFoundException-canonicalUnitProcessorEnablerIdorcatalogueIdnot found orcanonicalUnitProcessorEnablerIdnot assigned tocatalogueIdNullArgumentException-canonicalUnitProcessorEnablerIdorcatalogueIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
reassignCanonicalUnitProcessorEnablerToCatalogue
void reassignCanonicalUnitProcessorEnablerToCatalogue(Id canonicalUnitProcessorEnablerId, Id fromCatalogueId, Id toCatalogueId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Moves aCanonicalUnitProcessorEnablerfrom oneCatalogueto another. Mappings to otherCataloguesare unaffected.- Parameters:
canonicalUnitProcessorEnablerId- theIdof theCanonicalUnitProcessorEnablerfromCatalogueId- theIdof the currentCataloguetoCatalogueId- theIdof the destinationCatalogue- Throws:
AlreadyExistsException-canonicalUnitProcessorEnablerIdalready assigned totoCatalogueIdNotFoundException-canonicalUnitProcessorEnablerId, fromCatalogueId, ortoCatalogueIdnot found orcanonicalUnitProcessorEnablerId, not mapped tofromCatalogueIdNullArgumentException-canonicalUnitProcessorEnablerId, fromCatalogueId, ortoCatalogueIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-