|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IVirtualRepositoryManager
Interface to manage repositories while honoring DA rights on the repositories. Note: new methods may be added to this interface periodically -- therefore, this not a good CM extension point. The recommended extension point is at the Service Provider Interface, in package com.bea.content.spi
Method Summary | |
---|---|
void |
createRepositoryConfig(ContentContext context,
RepositoryConfig config)
Create repository config |
RepositoryConfig |
getPublicRepositoryConfig(ContentContext context,
String name)
Get the named repository config, without the password populated. |
RepositoryConfig |
getRepositoryConfig(ContentContext context,
String name)
Get the named repository config. |
Map<String,RepositoryConfig> |
getRepositoryConfigMap(ContentContext context)
Return repository configurations for repositories that the context has CAN_MANAGE capability on |
List<String> |
getRepositoryNames(ContentContext context)
Return a list of names for all repositories defined in the system. |
boolean |
hasCapability(ContentContext context,
String repositoryName,
VirtualRepositoryCapability capability)
Check to see if the caller has the specified security capability on a virtual repository |
boolean |
isLibraryServiceEnabled(ContentContext context,
String repositoryName)
Checks whether or not the specified repository has library services enabled. |
boolean |
isRemovable(ContentContext context,
String name)
Determine if the given repository can be removed. |
int |
pingRepository(String repositoryName)
Pings a repository to check if it is available or not. |
void |
removeRepositoryConfig(ContentContext context,
String name)
Remove the repository config. |
void |
updateRepositoryConfig(ContentContext context,
RepositoryConfig config)
Update the repository config. |
Method Detail |
---|
List<String> getRepositoryNames(ContentContext context) throws RepositoryException
context
- The content context.
RepositoryException
- If an error occurs while retrieving the repository names.int pingRepository(String repositoryName) throws NoSuchRepositoryConfigException, RepositoryException
repositoryName
- The name of the repository
NoSuchRepositoryConfigException
- If the repository config does not exist
RepositoryException
- If an error happens during pingMap<String,RepositoryConfig> getRepositoryConfigMap(ContentContext context) throws RepositoryException, AuthorizationException
context
- The content context.
RepositoryException
- If an error occurs while retrieving the repository configurations.
AuthorizationException
- If the caller does not have the VirtualRepositoryCapability.MANAGE
capability.void createRepositoryConfig(ContentContext context, RepositoryConfig config) throws AuthorizationException, RepositoryConfigExistsException, RepositoryException
context
- The content dontext.config
- The configuraton to create.
AuthorizationException
- If the caller does not have the VirtualRepositoryCapability.MANAGE
capability.
RepositoryConfigExistsException
- If the supplied configuration already exists for this application.
RepositoryException
- If this operation fails.RepositoryConfig getRepositoryConfig(ContentContext context, String name) throws AuthorizationException, RepositoryException, NoSuchRepositoryConfigException
context
- The content context.name
- The repository name.
AuthorizationException
- If the caller does not have the VirtualRepositoryCapability.MANAGE
capability.
RepositoryException
- If this operation fails.
NoSuchRepositoryConfigException
- If this repository is not configured for this application.RepositoryConfig getPublicRepositoryConfig(ContentContext context, String name) throws RepositoryException, NoSuchRepositoryConfigException
RepositoryConfig
object will be defined on the resulting RepositoryConfig object. This allows public
access to repository configuration data without requiring the VirtualRepositoryCapability.MANAGE
capability.
context
- The content context.name
- The repository name.
RepositoryException
- If this operation fails.
NoSuchRepositoryConfigException
- If this repository is not configured for this application.void updateRepositoryConfig(ContentContext context, RepositoryConfig config) throws AuthorizationException, RepositoryException, NoSuchRepositoryConfigException
context
- The content context.config
- The repository configuration.
AuthorizationException
- If the caller does not have the VirtualRepositoryCapability.MANAGE
capability.
RepositoryException
- If this operation fails.
NoSuchRepositoryConfigException
- If the supplied repository configuration is not present for this
application.void removeRepositoryConfig(ContentContext context, String name) throws AuthorizationException, RepositoryException, NoSuchRepositoryConfigException
context
- The content context.name
- The repository name.
AuthorizationException
- If the caller does not have the VirtualRepositoryCapability.MANAGE
capability.
RepositoryException
- If this operation fails.
NoSuchRepositoryConfigException
- If the supplied repository name is not configured for this application.boolean isLibraryServiceEnabled(ContentContext context, String repositoryName) throws RepositoryException
context
- The ContentContext objectrepositoryName
- The name of the repository
RepositoryException
- If this operation fails.boolean hasCapability(ContentContext context, String repositoryName, VirtualRepositoryCapability capability) throws AuthorizationException
context
- The ContentContext objectrepositoryName
- The name of the repositorycapability
- The capability to check for.
AuthorizationException
- If an error occurs while performaing the capability check.boolean isRemovable(ContentContext context, String name) throws RepositoryException
context
- The ContentContext objectname
- THe name of the repository
RepositoryException
- If this operation fails.
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |