@ApplicationScoped public class ExamplesServiceImpl extends BaseProjectImportService implements ExamplesService
EXAMPLES_SYSTEM_PROPERTY| Constructor and Description |
|---|
ExamplesServiceImpl(org.uberfire.io.IOService ioService,
org.guvnor.structure.server.config.ConfigurationFactory configurationFactory,
org.guvnor.structure.server.repositories.RepositoryFactory repositoryFactory,
KieModuleService moduleService,
org.guvnor.structure.repositories.RepositoryCopier repositoryCopier,
org.guvnor.structure.organizationalunit.OrganizationalUnitService ouService,
org.guvnor.common.services.project.service.WorkspaceProjectService projectService,
org.guvnor.common.services.shared.metadata.MetadataService metadataService,
javax.enterprise.event.Event<org.guvnor.common.services.project.events.NewProjectEvent> newProjectEvent,
ProjectScreenService projectScreenService,
ImportProjectValidators validators) |
| Modifier and Type | Method and Description |
|---|---|
protected org.guvnor.structure.organizationalunit.OrganizationalUnit |
createOrganizationalUnit(String name) |
void |
dispose() |
Set<ImportProject> |
getExampleProjects() |
ExamplesMetaData |
getMetaData() |
protected org.guvnor.structure.organizationalunit.OrganizationalUnit |
getOrganizationalUnit(String targetOUName) |
ExampleRepository |
getPlaygroundRepository() |
protected String |
getRepositoryAlias(String repositoryURL) |
protected org.guvnor.common.services.project.context.WorkspaceProjectContextChangeEvent |
importProjects(org.guvnor.structure.organizationalunit.OrganizationalUnit targetOU,
List<ImportProject> projects) |
void |
initPlaygroundRepository() |
int |
priority() |
protected org.guvnor.structure.repositories.Repository |
resolveGitRepository(ExampleRepository exampleRepository) |
protected String |
resolveRepositoryUrl(String playgroundDirectoryPath) |
org.guvnor.common.services.project.context.WorkspaceProjectContextChangeEvent |
setupExamples(ExampleOrganizationalUnit exampleTargetOU,
List<ImportProject> importProjects) |
buildGitEnv, convert, createConfigGroup, getProjects, getTags, getValidators, makeExampleProject, readDescription, renameIfNecessary, validateProjectsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetProjects@Inject
public ExamplesServiceImpl(@Named(value="ioStrategy")
org.uberfire.io.IOService ioService,
org.guvnor.structure.server.config.ConfigurationFactory configurationFactory,
org.guvnor.structure.server.repositories.RepositoryFactory repositoryFactory,
KieModuleService moduleService,
org.guvnor.structure.repositories.RepositoryCopier repositoryCopier,
org.guvnor.structure.organizationalunit.OrganizationalUnitService ouService,
org.guvnor.common.services.project.service.WorkspaceProjectService projectService,
org.guvnor.common.services.shared.metadata.MetadataService metadataService,
javax.enterprise.event.Event<org.guvnor.common.services.project.events.NewProjectEvent> newProjectEvent,
ProjectScreenService projectScreenService,
ImportProjectValidators validators)
@PostConstruct public void initPlaygroundRepository()
public ExamplesMetaData getMetaData()
getMetaData in interface ExamplesServicepublic ExampleRepository getPlaygroundRepository()
getPlaygroundRepository in interface ExamplesServiceprotected org.guvnor.structure.repositories.Repository resolveGitRepository(ExampleRepository exampleRepository)
resolveGitRepository in class BaseProjectImportServiceprotected String getRepositoryAlias(String repositoryURL)
getRepositoryAlias in class BaseProjectImportServicepublic org.guvnor.common.services.project.context.WorkspaceProjectContextChangeEvent setupExamples(ExampleOrganizationalUnit exampleTargetOU, List<ImportProject> importProjects)
setupExamples in interface ExamplesServicepublic Set<ImportProject> getExampleProjects()
getExampleProjects in interface ExamplesServiceprotected org.guvnor.structure.organizationalunit.OrganizationalUnit getOrganizationalUnit(String targetOUName)
protected org.guvnor.structure.organizationalunit.OrganizationalUnit createOrganizationalUnit(String name)
public int priority()
priority in interface org.uberfire.commons.lifecycle.PriorityDisposablepublic void dispose()
dispose in interface org.uberfire.commons.lifecycle.Disposableprotected org.guvnor.common.services.project.context.WorkspaceProjectContextChangeEvent importProjects(org.guvnor.structure.organizationalunit.OrganizationalUnit targetOU,
List<ImportProject> projects)
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.