Interface RepositoryRulesManager
- All Superinterfaces:
AutoCloseable, Closeable, OsidManager, OsidManager, OsidProfile, RepositoryRulesProfile, Sourceable
The repository rules manager provides access to repository rules sessions and provides interoperability tests for various aspects of this service. The sessions included in this manager are:
-
CompositionEnablerLookupSession: a session to retrieve composition enablers -
CompositionEnablerQuerySession: a session to query for composition enablers -
CompositionEnablerSearchSession: a session to search for composition enablers -
CompositionEnablerAdminSession: a session to create and delete composition enablers -
CompositionEnablerNotificationSession: a session to receive notifications pertaining to composition enabler changes -
CompositionEnablerRepositorySession: a session to look up composition enabler repository mappings -
CompositionEnablerRepositoryAssignmentSession: a session to manage composition enabler to repository mappings -
CompositionEnablerSmartRepositorySession: a session to manage dynamic repositories of composition enablers -
CompositionEnablerRuleLookupSession: a session to look up composition enabler to composition mappings -
CompositionEnablerRuleApplicationSession: a session to apply composition enablers to compositions
-
Method Summary
Modifier and TypeMethodDescriptionGets theOsidSessionassociated with the composition enabler administration service.getCompositionEnablerAdminSessionForRepository(Id repositoryId) Gets theOsidSessionassociated with the composition enabler administration service for the given repository.Gets theOsidSessionassociated with the composition enabler lookup service.getCompositionEnablerLookupSessionForRepository(Id repositoryId) Gets theOsidSessionassociated with the composition enabler lookup service for the given repository.getCompositionEnablerNotificationSession(CompositionEnablerReceiver compositionEnablerReceiver) Gets theOsidSessionassociated with the composition enabler notification service.getCompositionEnablerNotificationSessionForRepository(CompositionEnablerReceiver compositionEnablerReceiver, Id repositoryId) Gets theOsidSessionassociated with the composition enabler notification service for the given repository.Gets theOsidSessionassociated with the composition enabler query service.getCompositionEnablerQuerySessionForRepository(Id repositoryId) Gets theOsidSessionassociated with the composition enabler query service for the given repository.Gets theOsidSessionassociated with assigning composition enablers to repositories.Gets theOsidSessionto lookup composition enabler repository mappings for composition enablers.Gets theOsidSessionassociated with the composition enabler assignment service to apply enablers to compositions.getCompositionEnablerRuleApplicationSessionForRepository(Id repositoryId) Gets theOsidSessionassociated with the composition enabler assignment service for the given composition to apply enablers to compositions.Gets theOsidSessionassociated with the composition enabler mapping lookup service for looking up the rules applied to a composition.getCompositionEnablerRuleLookupSessionForRepository(Id repositoryId) Gets theOsidSessionassociated with the composition enabler mapping lookup service for the given composition for looking up rules applied to a composition.Gets theOsidSessionassociated with the composition enabler search service.getCompositionEnablerSearchSessionForRepository(Id repositoryId) Gets theOsidSessionassociated with the composition enablers earch service for the given repository.getCompositionEnablerSmartRepositorySession(Id repositoryId) Gets theOsidSessionto manage composition enabler smart repositories.Methods inherited from interface OsidManager
closeMethods inherited from interface OsidManager
changeBranch, initialize, rollbackServiceModifier and TypeMethodDescriptionvoidchangeBranch(Id branchId) Changes the service branch.voidinitialize(OsidRuntimeManager runtime) Initializes this manager.rollbackService(Date rollbackTime) Rolls back this service to a point in time.Methods inherited from interface OsidProfile
getBranch, getBranchId, getDescription, getDisplayName, getId, getLocales, getProxyRecordTypes, getReleaseDate, getVersion, supportsJournalBranching, supportsJournalRollback, supportsOSIDVersion, supportsProxyRecordTypeModifier and TypeMethodDescriptionGets this service branch.Gets theBranch Idrepresenting this service branch.Gets a description of this service implementation.Gets a display name for this service implementation.getId()Gets an identifier for this service implementation.Gets the locales supported in this service.Gets the proxy recordTypessupported in this service.Gets the date this service implementation was released.Gets the version of this service implementation.booleanTest for support of a journal branching service.booleanTest for support of a journaling rollback service.booleansupportsOSIDVersion(Version version) Test for support of an OSID specification version.booleansupportsProxyRecordType(Type proxyRecordType) Test for support of a proxy type.Methods inherited from interface RepositoryRulesProfile
getCompositionEnablerRecordTypes, getCompositionEnablerSearchRecordTypes, supportsCompositionEnablerAdmin, supportsCompositionEnablerLookup, supportsCompositionEnablerNotification, supportsCompositionEnablerQuery, supportsCompositionEnablerRecordType, supportsCompositionEnablerRepository, supportsCompositionEnablerRepositoryAssignment, supportsCompositionEnablerRuleApplication, supportsCompositionEnablerRuleLookup, supportsCompositionEnablerSearch, supportsCompositionEnablerSearchRecordType, supportsCompositionEnablerSmartRepository, supportsVisibleFederationModifier and TypeMethodDescriptionGets the supportedCompositionEnablerrecord types.Gets the supportedCompositionEnablersearch record types.booleanTests if a composition enabler administrative service is supported.booleanTests if looking up composition enablers is supported.booleanTests if a composition enabler notification service is supported.booleanTests if querying composition enablers is supported.booleansupportsCompositionEnablerRecordType(Type compositionEnablerRecordType) Tests if the givenCompositionEnablerrecord type is supported.booleanTests if a composition enabler repository lookup service is supported.booleanTests if a composition enabler repository service is supported.booleanTests if a composition enabler rule application service is supported.booleanTests if a composition enabler rule lookup service is supported.booleanTests if searching composition enablers is supported.booleansupportsCompositionEnablerSearchRecordType(Type compositionEnablerSearchRecordType) Tests if the givenCompositionEnablersearch record type is supported.booleanTests if a composition enabler repository lookup service is supported.booleanTests if any broker federation is exposed.Methods inherited from interface Sourceable
getBranding, getBrandingIds, getLicense, getProvider, getProviderIdModifier and TypeMethodDescriptionGets a branding, such as an image or logo, expressed using theAssetinterface.Gets the branding assetIds.Gets the terms of usage.Gets theResourcerepresenting the provider.Gets theIdof the provider.
-
Method Details
-
getCompositionEnablerLookupSession
CompositionEnablerLookupSession getCompositionEnablerLookupSession() throws OperationFailedExceptionGets theOsidSessionassociated with the composition enabler lookup service.- Returns:
- a
CompositionEnablerLookupSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsCompositionEnablerLookup()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCompositionEnablerLookup()} is {@code true} .
-
getCompositionEnablerLookupSessionForRepository
CompositionEnablerLookupSession getCompositionEnablerLookupSessionForRepository(Id repositoryId) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the composition enabler lookup service for the given repository.- Parameters:
repositoryId- theIdof theRepository- Returns:
- a
CompositionEnablerLookupSession - Throws:
NotFoundException- noRepositoryfound by the givenIdNullArgumentException-repositoryId is nullOperationFailedException- unable to complete requestUnimplementedException-supportsCompositionEnablerLookup()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCompositionEnablerLookup()} and {@code supportsVisibleFederation()} are {@code true} .
-
getCompositionEnablerQuerySession
Gets theOsidSessionassociated with the composition enabler query service.- Returns:
- a
CompositionEnablerQuerySession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsCompositionEnablerQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCompositionEnablerQuery()} is {@code true} .
-
getCompositionEnablerQuerySessionForRepository
CompositionEnablerQuerySession getCompositionEnablerQuerySessionForRepository(Id repositoryId) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the composition enabler query service for the given repository.- Parameters:
repositoryId- theIdof theRepository- Returns:
- a
CompositionEnablerQuerySession - Throws:
NotFoundException- noRepositoryfound by the givenIdNullArgumentException-repositoryId is nullOperationFailedException- unable to complete requestUnimplementedException-supportsCompositionEnablerQuery()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCompositionEnablerQuery()} and {@code supportsVisibleFederation()} are {@code true} .
-
getCompositionEnablerSearchSession
CompositionEnablerSearchSession getCompositionEnablerSearchSession() throws OperationFailedExceptionGets theOsidSessionassociated with the composition enabler search service.- Returns:
- a
CompositionEnablerSearchSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsCompositionEnablerSearch()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCompositionEnablerSearch()} is {@code true} .
-
getCompositionEnablerSearchSessionForRepository
CompositionEnablerSearchSession getCompositionEnablerSearchSessionForRepository(Id repositoryId) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the composition enablers earch service for the given repository.- Parameters:
repositoryId- theIdof theRepository- Returns:
- a
CompositionEnablerSearchSession - Throws:
NotFoundException- noRepositoryfound by the givenIdNullArgumentException-repositoryId is nullOperationFailedException- unable to complete requestUnimplementedException-supportsCompositionEnablerSearch()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCompositionEnablerSearch()} and {@code supportsVisibleFederation()} are {@code true} .
-
getCompositionEnablerAdminSession
Gets theOsidSessionassociated with the composition enabler administration service.- Returns:
- a
CompositionEnablerAdminSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsCompositionEnablerAdmin()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCompositionEnablerAdmin()} is {@code true} .
-
getCompositionEnablerAdminSessionForRepository
CompositionEnablerAdminSession getCompositionEnablerAdminSessionForRepository(Id repositoryId) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the composition enabler administration service for the given repository.- Parameters:
repositoryId- theIdof theRepository- Returns:
- a
CompositionEnablerAdminSession - Throws:
NotFoundException- noRepositoryfound by the givenIdNullArgumentException-repositoryId is nullOperationFailedException- unable to complete requestUnimplementedException-supportsCompositionEnablerAdmin()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCompositionEnablerAdmin()} and {@code supportsVisibleFederation()} are {@code true} .
-
getCompositionEnablerNotificationSession
CompositionEnablerNotificationSession getCompositionEnablerNotificationSession(CompositionEnablerReceiver compositionEnablerReceiver) throws OperationFailedException Gets theOsidSessionassociated with the composition enabler notification service.- Parameters:
compositionEnablerReceiver- the notification callback- Returns:
- a
CompositionEnablerNotificationSession - Throws:
NullArgumentException-compositionEnablerReceiverisnullOperationFailedException- unable to complete requestUnimplementedException-supportsCompositionEnablerNotification()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCompositionEnablerNotification()} is {@code true} .
-
getCompositionEnablerNotificationSessionForRepository
CompositionEnablerNotificationSession getCompositionEnablerNotificationSessionForRepository(CompositionEnablerReceiver compositionEnablerReceiver, Id repositoryId) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the composition enabler notification service for the given repository.- Parameters:
compositionEnablerReceiver- the notification callbackrepositoryId- theIdof theRepository- Returns:
- a
CompositionEnablerNotificationSession - Throws:
NotFoundException- no repository found by the givenIdNullArgumentException-compositionEnablerReceiverorrepositoryIdisnullOperationFailedException- unable to complete requestUnimplementedException-supportsCompositionEnablerNotification()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCompositionEnablerNotification()} and {@code supportsVisibleFederation()} are {@code true} .
-
getCompositionEnablerRepositorySession
CompositionEnablerRepositorySession getCompositionEnablerRepositorySession() throws OperationFailedExceptionGets theOsidSessionto lookup composition enabler repository mappings for composition enablers.- Returns:
- a
CompositionEnablerCompositionSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsCompositionEnablerRepository()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCompositionEnablerRepository()} is {@code true} .
-
getCompositionEnablerRepositoryAssignmentSession
CompositionEnablerRepositoryAssignmentSession getCompositionEnablerRepositoryAssignmentSession() throws OperationFailedExceptionGets theOsidSessionassociated with assigning composition enablers to repositories.- Returns:
- a
CompositionEnablerRepositoryAssignmentSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsCompositionEnablerCompositionAssignment()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCompositionEnablerRepositoryAssignment()} is {@code true} .
-
getCompositionEnablerSmartRepositorySession
CompositionEnablerSmartRepositorySession getCompositionEnablerSmartRepositorySession(Id repositoryId) throws NotFoundException, OperationFailedException Gets theOsidSessionto manage composition enabler smart repositories.- Parameters:
repositoryId- the Id of theRepository- Returns:
- a
CompositionEnablerSmartRepositorySession - Throws:
NotFoundException- noRepositoryfound by the givenIdNullArgumentException-repositoryIdisnullOperationFailedException- unable to complete requestUnimplementedException-supportsCompositionEnablerSmartRepository()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCompositionEnablerSmartRepository()} is {@code true} .
-
getCompositionEnablerRuleLookupSession
CompositionEnablerRuleLookupSession getCompositionEnablerRuleLookupSession() throws OperationFailedExceptionGets theOsidSessionassociated with the composition enabler mapping lookup service for looking up the rules applied to a composition.- Returns:
- a
CompositionEnablerRuleLookupSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsCompositionEnablerRuleLookup()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCompositionEnablerRuleLookup()} is {@code true} .
-
getCompositionEnablerRuleLookupSessionForRepository
CompositionEnablerRuleLookupSession getCompositionEnablerRuleLookupSessionForRepository(Id repositoryId) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the composition enabler mapping lookup service for the given composition for looking up rules applied to a composition.- Parameters:
repositoryId- theIdof theRepository- Returns:
- a
CompositionEnablerRuleLookupSession - Throws:
NotFoundException- noRepositoryfound by the givenIdNullArgumentException-repositoryIdisnullOperationFailedException- unable to complete requestUnimplementedException-supportsCompositionEnablerRuleLookup()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCompositionEnablerRuleLookup()} and {@code supportsVisibleFederation()} are {@code true} .
-
getCompositionEnablerRuleApplicationSession
CompositionEnablerRuleApplicationSession getCompositionEnablerRuleApplicationSession() throws OperationFailedExceptionGets theOsidSessionassociated with the composition enabler assignment service to apply enablers to compositions.- Returns:
- a
CompositionEnablerRuleApplicationSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsCompositionEnablerRuleApplication()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCompositionEnablerRuleApplication()} is {@code true} .
-
getCompositionEnablerRuleApplicationSessionForRepository
CompositionEnablerRuleApplicationSession getCompositionEnablerRuleApplicationSessionForRepository(Id repositoryId) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the composition enabler assignment service for the given composition to apply enablers to compositions.- Parameters:
repositoryId- theIdof theRepository- Returns:
- a
CompositionEnablerRuleApplicationSession - Throws:
NotFoundException- noRepositoryfound by the givenIdNullArgumentException-repositoryIdisnullOperationFailedException- unable to complete requestUnimplementedException-supportsCompositionEnablerRuleApplication()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCompositionEnablerRuleApplication()} and {@code supportsVisibleFederation()} are {@code true} .
-