public interface RepositoryContentProvider
| Modifier and Type | Method and Description | 
|---|---|
| <T extends RepositoryContent,V extends Repository> | createContent(Class<T> clazz,
             V repository)Creates a generic content object. | 
| ManagedRepositoryContent | createManagedContent(ManagedRepository repository)Creates a new instance of ManagedRepositoryContent. | 
| RemoteRepositoryContent | createRemoteContent(RemoteRepository repository)Creates a new instance of RemoteRepositoryContent. | 
| Set<RepositoryType> | getSupportedRepositoryTypes()Returns the repository types, this content object can be used for. | 
| boolean | supports(RepositoryType type)Returns true, if this content object supports the given repository type. | 
| boolean | supportsLayout(String layout)Returns true, if this content object supports the given layout otherwise, false. | 
boolean supportsLayout(String layout)
layout - the layout stringSet<RepositoryType> getSupportedRepositoryTypes()
boolean supports(RepositoryType type)
type - the type to check.RemoteRepositoryContent createRemoteContent(RemoteRepository repository) throws RepositoryException
repository - the repositoryRepositoryException - if the layout is not supported, or a error occured during initializationManagedRepositoryContent createManagedContent(ManagedRepository repository) throws RepositoryException
repository - the repositoryRepositoryException - if the layout is not supported, or a error occured during initialization<T extends RepositoryContent,V extends Repository> T createContent(Class<T> clazz, V repository) throws RepositoryException
T - the generic type of the contentV - the generic type of the repository (must correspond to the content class)repository - the repositoryclazz - the content classRepositoryException - if the clazz, or layout is not supported, or something went wrong during initializationCopyright © 2006–2019 The Apache Software Foundation. All rights reserved.