|
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 |
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. |
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 -
RepositoryException
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 ping
Map<String,RepositoryConfig> getRepositoryConfigMap(ContentContext context)
throws RepositoryException,
AuthorizationException
context -
RepositoryException
AuthorizationException
void createRepositoryConfig(ContentContext context,
RepositoryConfig config)
throws AuthorizationException,
RepositoryConfigExistsException,
RepositoryException
context - config -
AuthorizationException
RepositoryConfigExistsException
RepositoryException
RepositoryConfig getRepositoryConfig(ContentContext context,
String name)
throws AuthorizationException,
RepositoryException,
NoSuchRepositoryConfigException
context - name -
AuthorizationException
RepositoryException
NoSuchRepositoryConfigException
void updateRepositoryConfig(ContentContext context,
RepositoryConfig config)
throws AuthorizationException,
RepositoryException,
NoSuchRepositoryConfigException
context - config -
AuthorizationException
RepositoryException
NoSuchRepositoryConfigException
void removeRepositoryConfig(ContentContext context,
String name)
throws AuthorizationException,
RepositoryException,
NoSuchRepositoryConfigException
context - name -
AuthorizationException
RepositoryException
NoSuchRepositoryConfigException
boolean isLibraryServiceEnabled(ContentContext context,
String repositoryName)
throws RepositoryException
context - The ContentContext objectrepositoryName - The name of the repository
RepositoryException
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
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||