|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
| 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, IRepositoryConfig config)Create repository config |
RepositoryCredentialScope |
getActiveCredentialScope(ContentContext context, String repositoryName)For the current user and specified repository, identify which is the currently active credential. |
IRepositoryConfig |
getPublicRepositoryConfig(ContentContext context, String name)Get a read-only clone of the named repository config. |
IRepositoryConfig |
getRepositoryConfig(ContentContext context, String name)Get the named repository config. |
Map<String,IRepositoryConfig> |
getRepositoryConfigMap(ContentContext context)Return the repository config. |
SortableFilterablePagedResult<IRepositoryConfig> |
getRepositoryConfigs(ContentContext context, int pageSize)Return a PagedResult of the available IRepositoryConfigs |
List<String> |
getRepositoryNames(ContentContext context)Return a List<String> of the available Repository names in the system. |
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. |
RepositoryCredential |
getUserCredential(ContentContext context, String repositoryName)For the current user and the specified repository, retrieve the personal repository credential, if it exists. |
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 |
isRemovable(ContentContext context, String name)Determine if the given repository can be removed. |
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 |
setActiveCredentialScope(ContentContext context, String repositoryName, RepositoryCredentialScope scope)For the current user and the specified repository, specify which credential should be used. |
void |
setUserCredential(ContentContext context, String repositoryName, RepositoryCredential credential)For the current user and the specified repository, persist a personal repository credential. |
void |
updateRepositoryConfig(ContentContext context, IRepositoryConfig 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 repositoryNoSuchRepositoryConfigException - If the repository config does not existRepositoryException - If an error happens during ping
Map<String,IRepositoryConfig> getRepositoryConfigMap(ContentContext context)
throws RepositoryException,
AuthorizationException
context -RepositoryExceptionAuthorizationException
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
List<String> getRepositoryNames(ContentContext context)
throws RepositoryException
List<String> of the available Repository names in the system. Note: This call is NOT security enabled...context -RepositoryException
SortableFilterablePagedResult<IRepositoryConfig> getRepositoryConfigs(ContentContext context,
int pageSize)
throws RepositoryException,
AuthorizationException
PagedResult of the available IRepositoryConfigscontext -pageSize -RepositoryExceptionAuthorizationException
void createRepositoryConfig(ContentContext context,
IRepositoryConfig config)
throws RepositoryException,
AuthorizationException,
RepositoryConfigExistsException
context -config -RepositoryExceptionAuthorizationExceptionRepositoryConfigExistsException
IRepositoryConfig getRepositoryConfig(ContentContext context,
String name)
throws RepositoryException,
AuthorizationException,
NoSuchRepositoryConfigException
context -name -RepositoryExceptionAuthorizationExceptionNoSuchRepositoryConfigException
IRepositoryConfig getPublicRepositoryConfig(ContentContext context,
String name)
throws RepositoryException,
AuthorizationException,
NoSuchRepositoryConfigException
context -name -RepositoryExceptionAuthorizationExceptionNoSuchRepositoryConfigException
void updateRepositoryConfig(ContentContext context,
IRepositoryConfig config)
throws RepositoryException,
AuthorizationException,
NoSuchRepositoryConfigException
context -config -RepositoryExceptionAuthorizationExceptionNoSuchRepositoryConfigException
void removeRepositoryConfig(ContentContext context,
String name)
throws RepositoryException,
AuthorizationException,
NoSuchRepositoryConfigException
context -name -RepositoryExceptionAuthorizationExceptionNoSuchRepositoryConfigException
boolean hasManageCapability(ContentContext context,
String repositoryName)
throws AuthorizationException
context -repositoryName -AuthorizationExceptionString getTaxonomy(String repositoryName)
repositoryName - The name of the repository. If repositoryName is null, it will give the taxonomy of the Virtual Repository Root
boolean isRemovable(ContentContext context,
String name)
throws RepositoryException
context - The ContentContext objectname - THe name of the repositoryRepositoryException - If this operation fails.
RepositoryCredentialScope getActiveCredentialScope(ContentContext context,
String repositoryName)
throws AuthorizationException,
NoSuchRepositoryConfigException,
RepositoryException
context - The ContentContext objectrepositoryName - the repository to retrieve the scope forAuthorizationException - If the caller is not authorizedNoSuchRepositoryConfigException - If the repository config does not existRepositoryException - if this operation fails
void setActiveCredentialScope(ContentContext context,
String repositoryName,
RepositoryCredentialScope scope)
throws AuthorizationException,
NoSuchRepositoryConfigException,
RepositoryException
context - The ContentContext objectrepositoryName - the repository to set the scope forscope - the scope to setAuthorizationException - If the caller is not authorizedNoSuchRepositoryConfigException - If the repository config does not existRepositoryException - if this operation fails
RepositoryCredential getUserCredential(ContentContext context,
String repositoryName)
throws AuthorizationException,
NoSuchRepositoryConfigException,
RepositoryException
setActiveCredentialScope(ContentContext,String,RepositoryCredentialScope) to activate the credential. <p/>context - The ContentContext objectrepositoryName - the repository to retrieve personal repository credential for.AuthorizationException - If the caller is not authorizedNoSuchRepositoryConfigException - If the repository config does not existRepositoryException - if this operation fails
void setUserCredential(ContentContext context,
String repositoryName,
RepositoryCredential credential)
throws AuthorizationException,
NoSuchRepositoryConfigException,
RepositoryException
setActiveCredentialScope(ContentContext,String,RepositoryCredentialScope) to activate the credential. <p/>context - The ContentContext objectrepositoryName - the repository these credential applies to.credential - the repository credentialAuthorizationException - If the caller is not authorizedNoSuchRepositoryConfigException - If the repository config does not existRepositoryException - if this operation fails
|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright © 2010, Oracle. All rights reserved.