public class JcoreGithubInformationService extends Object implements IComponentMetaInformationService, Serializable
| Modifier and Type | Method and Description |
|---|---|
void |
completeReload() |
List<de.julielab.utilities.aether.MavenArtifact> |
downloadArtifacts(List<de.julielab.utilities.aether.MavenArtifact> artifactIds)
Builds a map of "artifact name" - "artifact file" representations
|
Set<de.julielab.utilities.aether.MavenArtifact> |
getArtifacts() |
List<String> |
getCategory(String componentName) |
String[] |
getDescriptors(String componentName) |
String |
getGroups(String componentName) |
static JcoreGithubInformationService |
getInstance() |
Collection<MetaDescription> |
getMetaInformation()
Lists all exposed components of the module this ComponentMetaInformation object belongs to/
was created from.
|
Collection<MetaDescription> |
getMetaInformation(Boolean loadNew)
Lists all exposed components of the module this ComponentMetaInformation object belongs to/
was created from.
|
MetaDescription |
getMetaInformation(String componentName)
Gets the meta information of a specific component.
|
MetaDescription |
getMetaInformation(String componentName,
Boolean loadNew)
Gets the meta information of a specific component.
|
Collection<MetaDescription> |
getMetaInformationWithArtifacts(Boolean loadNew)
Lists all exposed components with their Maven artifacts already set.
|
String |
getName(String componentName) |
Set<de.julielab.utilities.aether.MavenArtifact> |
loadAllArtifacts() |
void |
loadComponentMetaInformation(Boolean loadNew)
Builds a list of JsonObjects with their respective meta information.
|
void |
loadComponentMetaInformation(Boolean loadNew,
ComponentRepository repository) |
void |
loadMetaInformationFromDisk(ComponentRepository repository) |
void |
saveMetaInformationToDisk(ComponentRepository repository) |
public static JcoreGithubInformationService getInstance()
public void completeReload()
throws GithubInformationException,
de.julielab.utilities.aether.MavenException
completeReload in interface IComponentMetaInformationServiceGithubInformationExceptionde.julielab.utilities.aether.MavenExceptionpublic void saveMetaInformationToDisk(ComponentRepository repository) throws GithubInformationException
saveMetaInformationToDisk in interface IComponentMetaInformationServiceGithubInformationExceptionpublic void loadMetaInformationFromDisk(ComponentRepository repository) throws GithubInformationException
loadMetaInformationFromDisk in interface IComponentMetaInformationServiceGithubInformationExceptionpublic void loadComponentMetaInformation(Boolean loadNew, ComponentRepository repository) throws GithubInformationException
GithubInformationExceptionpublic void loadComponentMetaInformation(Boolean loadNew) throws GithubInformationException
IComponentMetaInformationServiceloadComponentMetaInformation in interface IComponentMetaInformationServiceGithubInformationExceptionpublic List<de.julielab.utilities.aether.MavenArtifact> downloadArtifacts(List<de.julielab.utilities.aether.MavenArtifact> artifactIds) throws de.julielab.utilities.aether.MavenException
IComponentMetaInformationServicedownloadArtifacts in interface IComponentMetaInformationServiceartifactIds - a list of all the artifacts (their Maven ID) that should be downloaded.de.julielab.utilities.aether.MavenExceptionpublic Set<de.julielab.utilities.aether.MavenArtifact> loadAllArtifacts() throws GithubInformationException, de.julielab.utilities.aether.MavenException
loadAllArtifacts in interface IComponentMetaInformationServiceGithubInformationExceptionde.julielab.utilities.aether.MavenExceptionpublic Set<de.julielab.utilities.aether.MavenArtifact> getArtifacts() throws GithubInformationException
getArtifacts in interface IComponentMetaInformationServiceGithubInformationExceptionpublic Collection<MetaDescription> getMetaInformation() throws GithubInformationException
IComponentMetaInformationServicegetMetaInformation in interface IComponentMetaInformationServiceGithubInformationExceptionpublic Collection<MetaDescription> getMetaInformationWithArtifacts(Boolean loadNew) throws GithubInformationException, de.julielab.utilities.aether.MavenException
IComponentMetaInformationServicegetMetaInformationWithArtifacts in interface IComponentMetaInformationServiceGithubInformationExceptionde.julielab.utilities.aether.MavenExceptionpublic MetaDescription getMetaInformation(String componentName) throws GithubInformationException
IComponentMetaInformationServicegetMetaInformation in interface IComponentMetaInformationServiceGithubInformationExceptionpublic Collection<MetaDescription> getMetaInformation(Boolean loadNew) throws GithubInformationException
IComponentMetaInformationServicegetMetaInformation in interface IComponentMetaInformationServiceGithubInformationExceptionpublic MetaDescription getMetaInformation(String componentName, Boolean loadNew) throws GithubInformationException
IComponentMetaInformationServicegetMetaInformation in interface IComponentMetaInformationServiceGithubInformationExceptionpublic String getName(String componentName) throws GithubInformationException
getName in interface IComponentMetaInformationServicecomponentName - GithubInformationExceptionpublic String[] getDescriptors(String componentName) throws GithubInformationException, DescriptorLoadingException
getDescriptors in interface IComponentMetaInformationServicecomponentName - GithubInformationExceptionDescriptorLoadingExceptionpublic List<String> getCategory(String componentName) throws GithubInformationException
getCategory in interface IComponentMetaInformationServicecomponentName - GithubInformationExceptionpublic String getGroups(String componentName) throws GithubInformationException
getGroups in interface IComponentMetaInformationServicecomponentName - is a key of this.mavenDependenciesGithubInformationExceptionCopyright © 2019 JULIE Lab, Germany. All rights reserved.