|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.corona.model.container.ContainerHelpers
public class ContainerHelpers
This class is intended to add some convinient methods to work with container
Constructor Summary | |
---|---|
ContainerHelpers()
|
Method Summary | |
---|---|
static RepositoryConnectionParameters |
getConnParamsByAccessType(RepositoryConfiguration repoConf,
java.lang.String accessType)
Finds a repository connection params with specified access type. |
static RepositoryConnectionParameters |
getConnParamsByAccessType(RepositoryDescriptor repo,
java.lang.String accessType)
Finds a repository connection params with specified access type. |
static RepositoryConfiguration |
getDefaultConfiguration(RepositoryDescriptor repo)
Get the default configuration from the specified repository confiuration descriptor. |
static java.util.List |
getReposiotriesByContentType(ContextContainer container,
java.lang.String contentType)
Obtains a repositories by its type. |
static java.util.List |
getRepositories(ContextContainer container)
Gets a list of repositories for a context container. |
static java.util.List |
getRepositoryConfigurations(RepositoryDescriptor repo)
Gets a list of repository configurations. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContainerHelpers()
Method Detail |
---|
public static java.util.List getRepositories(ContextContainer container)
container
- The container from which repositories are taken.
RepositoryDescriptor
,
or empty list, but never null.public static java.util.List getReposiotriesByContentType(ContextContainer container, java.lang.String contentType)
container
- The container from which the repository will be taken.contentType
- The repository content type.
RepositoryDescriptor
with given content type.
The list is empty if not found.public static java.util.List getRepositoryConfigurations(RepositoryDescriptor repo)
repo
- The repository from which repository configurations are taken.
repositiory configuration
,
or empty list, but never null.public static RepositoryConnectionParameters getConnParamsByAccessType(RepositoryDescriptor repo, java.lang.String accessType)
repo
- The repository.accessType
- The requested access type.
public static RepositoryConnectionParameters getConnParamsByAccessType(RepositoryConfiguration repoConf, java.lang.String accessType)
repoConf
- The repository configuration to look for.accessType
- The requested access type.
public static RepositoryConfiguration getDefaultConfiguration(RepositoryDescriptor repo)
repo
- The repository descriptor for the respository.
null
is returned if no default configuration specified.
|
Copyright 2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |