|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@ControlInterface public interface ContentRepositoryControl
Control to represent interface to Content Repository Operations in the Content Mgmt System.
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 the repository config. |
SortableFilterablePagedResult<RepositoryConfig> |
getRepositoryConfigs(ContentContext context,
int pageSize)
Return a PagedResult of the available RepositoryConfig s |
SortableFilterablePagedResult<String> |
getRepositoryNames(ContentContext context,
int pageSize)
Return a PagedResult of the available Repository names in the system. |
String |
getTaxonomy(String repositoryName)
Return the taxonomy of the repository used by the DA System. |
boolean |
hasManageCapability(ContentContext context,
String repositoryName)
checks if the user has the CAN_MANAGE capability on the given repository if repositoryName is null, it will test the capability on the REPOSITORY_ROOT |
boolean |
isAnyRepositoryManaged(ContentContext context)
Return true if any repository is managed. |
boolean |
isRepositoryManaged(ContentContext context,
String repositoryName)
Return true if the repository is managed. |
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 |
---|
boolean isRepositoryManaged(ContentContext context, String repositoryName) throws RepositoryException
context
- repositoryName
-
RepositoryException
boolean isAnyRepositoryManaged(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 pingMap<String,RepositoryConfig> getRepositoryConfigMap(ContentContext context) throws RepositoryException, AuthorizationException
context
-
RepositoryException
AuthorizationException
SortableFilterablePagedResult<String> getRepositoryNames(ContentContext context, int pageSize) throws RepositoryException
PagedResult
of the available Repository names in the system.
Note: This call is NOT security enabled...
context
- pageSize
-
RepositoryException
SortableFilterablePagedResult<RepositoryConfig> getRepositoryConfigs(ContentContext context, int pageSize) throws RepositoryException, AuthorizationException
PagedResult
of the available RepositoryConfig
s
context
- pageSize
-
RepositoryException
AuthorizationException
void createRepositoryConfig(ContentContext context, RepositoryConfig config) throws RepositoryException, AuthorizationException, RepositoryConfigExistsException
context
- config
-
RepositoryException
AuthorizationException
RepositoryConfigExistsException
RepositoryConfig getRepositoryConfig(ContentContext context, String name) throws RepositoryException, AuthorizationException, NoSuchRepositoryConfigException
context
- name
-
RepositoryException
AuthorizationException
NoSuchRepositoryConfigException
void updateRepositoryConfig(ContentContext context, RepositoryConfig config) throws RepositoryException, AuthorizationException, NoSuchRepositoryConfigException
context
- config
-
RepositoryException
AuthorizationException
NoSuchRepositoryConfigException
void removeRepositoryConfig(ContentContext context, String name) throws RepositoryException, AuthorizationException, NoSuchRepositoryConfigException
context
- name
-
RepositoryException
AuthorizationException
NoSuchRepositoryConfigException
boolean hasManageCapability(ContentContext context, String repositoryName) throws AuthorizationException
context
- repositoryName
-
AuthorizationException
String getTaxonomy(String repositoryName)
repositoryName
- The name of the repository. If repositoryName is null, it will give the taxonomy of the
Virtual Repository Root
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |