@ApplicationScoped public class ExamplesServiceImpl extends BaseProjectImportService implements ExamplesService
| Modifier and Type | Field and Description |
|---|---|
protected String |
md5 |
protected File |
playgroundRootDirectory |
protected String |
playgroundSpaceName |
ioService, metadataService, moduleService, projectScreenService, projectService, spaceConfigStorageRegistry, validatorsEXAMPLES_SYSTEM_PROPERTY| Constructor and Description |
|---|
ExamplesServiceImpl(org.uberfire.io.IOService ioService,
org.guvnor.structure.server.repositories.RepositoryFactory repositoryFactory,
KieModuleService moduleService,
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,
org.guvnor.structure.organizationalunit.config.SpaceConfigStorageRegistry spaceConfigStorageRegistry,
org.uberfire.java.nio.file.FileSystem systemFS,
org.guvnor.common.services.project.backend.server.utils.PathUtil pathUtil,
org.guvnor.structure.repositories.RepositoryService repoService) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
calculateMD5(URL resource) |
protected org.guvnor.structure.organizationalunit.OrganizationalUnit |
createOrganizationalUnit(String name) |
protected void |
createPlaygroundHiddenSpace(String md5) |
protected void |
deleteOldHiddenSpaces(String md5) |
protected void |
deleteOldPlaygrounds(String md5) |
void |
dispose() |
protected boolean |
existSpace(String space) |
protected boolean |
existSpace(String space,
Path path) |
protected String |
getDefaultSpace() |
Set<ImportProject> |
getExampleProjects(org.guvnor.structure.organizationalunit.OrganizationalUnit targetOu) |
ExamplesMetaData |
getMetaData() |
protected Path |
getNiogitPath() |
protected org.guvnor.structure.organizationalunit.OrganizationalUnit |
getOrganizationalUnit(String targetOUName) |
ExampleRepository |
getPlaygroundRepository() |
protected String |
getRepositoryAlias(String repositoryURL) |
void |
initPlaygroundRepository() |
protected boolean |
isOldPlayground(org.guvnor.structure.organizationalunit.OrganizationalUnit ou) |
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, checkIfProjectAlreadyExist, convert, createConfigGroup, exist, getBranches, getBranches, getProjectRoot, getProjectRoot, getProjects, getTags, getValidators, importProject, importProjects, inferProjectName, makeExampleProject, readDescription, validateProjectsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexist, getProjects, importProject, importProjectsprotected String md5
protected String playgroundSpaceName
protected File playgroundRootDirectory
@Inject
public ExamplesServiceImpl(@Named(value="ioStrategy")
org.uberfire.io.IOService ioService,
org.guvnor.structure.server.repositories.RepositoryFactory repositoryFactory,
KieModuleService moduleService,
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,
org.guvnor.structure.organizationalunit.config.SpaceConfigStorageRegistry spaceConfigStorageRegistry,
@Named(value="systemFS")
org.uberfire.java.nio.file.FileSystem systemFS,
org.guvnor.common.services.project.backend.server.utils.PathUtil pathUtil,
org.guvnor.structure.repositories.RepositoryService repoService)
@PostConstruct public void initPlaygroundRepository()
protected void deleteOldHiddenSpaces(String md5)
protected boolean isOldPlayground(org.guvnor.structure.organizationalunit.OrganizationalUnit ou)
protected void createPlaygroundHiddenSpace(String md5)
protected void deleteOldPlaygrounds(String md5)
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 getDefaultSpace()
getDefaultSpace 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(org.guvnor.structure.organizationalunit.OrganizationalUnit targetOu)
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 boolean existSpace(String space)
protected Path getNiogitPath()
Copyright © 2001–2021 JBoss by Red Hat. All rights reserved.