Search in sources :

Example 41 with WorkspaceProject

use of org.guvnor.common.services.project.model.WorkspaceProject in project kie-wb-common by kiegroup.

the class LibraryServiceImplTest method queryAnItemThatIsInLuceneIndexButAlreadyDeletedFromGitRepository.

@Test
public void queryAnItemThatIsInLuceneIndexButAlreadyDeletedFromGitRepository() throws Exception {
    final Path path = mockPath("file://the_project");
    final WorkspaceProject project = spy(WorkspaceProject.class);
    final Branch branch = mock(Branch.class);
    when(project.getBranch()).thenReturn(branch);
    when(branch.getPath()).thenReturn(path);
    doReturn(true).when(ioService).exists(any());
    final ProjectAssetsQuery query = new ProjectAssetsQuery(project, "", 10, 20, Collections.emptyList());
    final PageResponse<RefactoringPageRow> pageRowPageResponse = new PageResponse<>();
    final ArrayList<RefactoringPageRow> assetPageRowList = new ArrayList<>();
    final RefactoringPageRow pageRow = mock(RefactoringPageRow.class);
    final Path filePath = mockPath("file://the_project/delete.me");
    when(filePath.getFileName()).thenReturn("delete.me");
    when(pageRow.getValue()).thenReturn(filePath);
    assetPageRowList.add(pageRow);
    pageRowPageResponse.setPageRowList(assetPageRowList);
    when(refactoringQueryService.query(any(RefactoringPageRequest.class))).thenReturn(pageRowPageResponse);
    when(ioService.readAttributes(any())).thenThrow(new NoSuchFileException());
    final AssetQueryResult result = libraryService.getProjectAssets(query);
    assertEquals(ResultType.Normal, result.getResultType());
    assertTrue(result.getAssetInfos().isPresent());
    List<AssetInfo> projectAssets = result.getAssetInfos().get();
    assertTrue(projectAssets.isEmpty());
}
Also used : Path(org.uberfire.backend.vfs.Path) RefactoringPageRequest(org.kie.workbench.common.services.refactoring.model.query.RefactoringPageRequest) WorkspaceProject(org.guvnor.common.services.project.model.WorkspaceProject) ArrayList(java.util.ArrayList) NoSuchFileException(org.uberfire.java.nio.file.NoSuchFileException) AssetInfo(org.kie.workbench.common.screens.library.api.AssetInfo) ProjectAssetsQuery(org.kie.workbench.common.screens.library.api.ProjectAssetsQuery) Branch(org.guvnor.structure.repositories.Branch) AssetQueryResult(org.kie.workbench.common.screens.library.api.AssetQueryResult) PageResponse(org.uberfire.paging.PageResponse) RefactoringPageRow(org.kie.workbench.common.services.refactoring.model.query.RefactoringPageRow) Test(org.junit.Test)

Example 42 with WorkspaceProject

use of org.guvnor.common.services.project.model.WorkspaceProject in project kie-wb-common by kiegroup.

the class LibraryServiceImplTest method emptyFirstPage.

@Test
public void emptyFirstPage() throws Exception {
    final WorkspaceProject project = spy(WorkspaceProject.class);
    final Branch branch = mock(Branch.class);
    final Path path = mock(Path.class);
    when(project.getBranch()).thenReturn(branch);
    when(branch.getPath()).thenReturn(path);
    when(path.toURI()).thenReturn("file://a/b/c");
    doReturn(true).when(ioService).exists(any());
    final ProjectAssetsQuery query = new ProjectAssetsQuery(project, "", 0, 10, Collections.emptyList());
    final PageResponse<RefactoringPageRow> pageRowPageResponse = new PageResponse<>();
    pageRowPageResponse.setPageRowList(new ArrayList<>());
    when(refactoringQueryService.query(any(RefactoringPageRequest.class))).thenReturn(pageRowPageResponse);
    libraryService.getProjectAssets(query);
    verify(refactoringQueryService).query(pageRequestArgumentCaptor.capture());
    final RefactoringPageRequest pageRequest = pageRequestArgumentCaptor.getValue();
    assertEquals(FindAllLibraryAssetsQuery.NAME, pageRequest.getQueryName());
    assertEquals(1, pageRequest.getQueryTerms().size());
    assertEquals("file://a/b/c", pageRequest.getQueryTerms().iterator().next().getValue());
    assertEquals(0, pageRequest.getStartRowIndex());
    assertEquals(10, (int) pageRequest.getPageSize());
}
Also used : Path(org.uberfire.backend.vfs.Path) RefactoringPageRequest(org.kie.workbench.common.services.refactoring.model.query.RefactoringPageRequest) ProjectAssetsQuery(org.kie.workbench.common.screens.library.api.ProjectAssetsQuery) WorkspaceProject(org.guvnor.common.services.project.model.WorkspaceProject) Branch(org.guvnor.structure.repositories.Branch) PageResponse(org.uberfire.paging.PageResponse) RefactoringPageRow(org.kie.workbench.common.services.refactoring.model.query.RefactoringPageRow) Test(org.junit.Test)

Example 43 with WorkspaceProject

use of org.guvnor.common.services.project.model.WorkspaceProject in project kie-wb-common by kiegroup.

the class ContributorsManagerTest method setUp.

@Before
public void setUp() throws Exception {
    SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
    List<VersionRecord> repositoryHistory1 = new ArrayList<>();
    repositoryHistory1.add(new PortableVersionRecord(null, "David", null, "", sdf.parse("02/01/2017"), "default://3da0441b@project1/file"));
    repositoryHistory1.add(new PortableVersionRecord(null, "David", null, "", sdf.parse("01/01/2017"), "default://3da0442b@project1/file"));
    repositoryHistory1.add(new PortableVersionRecord(null, "David", null, "", sdf.parse("02/01/2017"), "default://3da0443b@project1/file"));
    repositoryHistory1.add(new PortableVersionRecord(null, "Roger", null, "", sdf.parse("02/02/2017"), "default://3da0441b@project1/file"));
    repositoryHistory1.add(new PortableVersionRecord(null, "Roger", null, "", sdf.parse("02/03/2017"), "default://3da0442b@project1/file"));
    repositoryHistory1.add(new PortableVersionRecord(null, "Mark", null, "", sdf.parse("02/03/2017"), "default://3da04471@project1/file"));
    repositoryHistory1.add(new PortableVersionRecord(null, "Roger", null, "", sdf.parse("02/04/2017"), "default://3da0442b@project1/file"));
    repositoryHistory1.add(new PortableVersionRecord(null, "Roger", null, "", sdf.parse("02/05/2017"), "default://3da0443b@project1/file"));
    repositoryHistory1.add(new PortableVersionRecord(null, "Mark", null, "", sdf.parse("01/02/2017"), "default://3da0444b@project1/file"));
    repositoryHistory1.add(new PortableVersionRecord(null, "Mark", null, "", sdf.parse("01/05/2017"), "default://3da0442b@project1/file"));
    repositoryHistory1.add(new PortableVersionRecord(null, "Mark", null, "", sdf.parse("01/06/2017"), "default://3da0443b@project1/file"));
    repositoryHistory1.add(new PortableVersionRecord(null, "Roger", null, "", sdf.parse("01/06/2017"), "default://3da0447b@project1/file"));
    repositoryHistory1.add(new PortableVersionRecord(null, "Pere", null, "", sdf.parse("01/06/2017"), "default://3da0445b@project1/file"));
    repositoryHistory1.add(new PortableVersionRecord(null, "David", null, "", sdf.parse("01/06/2017"), "default://3da0457b@project1/file"));
    repositoryHistory1.add(new PortableVersionRecord(null, "Mark", null, "", sdf.parse("01/06/2017"), "default://3da0441b@project1/file"));
    repositoryHistory1.add(new PortableVersionRecord(null, "Pere", null, "", sdf.parse("01/03/2017"), "default://3da0442b@project1/file"));
    repositoryHistory1.add(new PortableVersionRecord(null, "Pere", null, "", sdf.parse("01/04/2017"), "default://3da0442b@project1/file"));
    repositoryHistory1.add(new PortableVersionRecord(null, "Pere", null, "", sdf.parse("01/05/2017"), "default://3da0442b@project1/file"));
    repositoryHistory1.add(new PortableVersionRecord(null, "Pere", null, "", sdf.parse("01/06/2017"), "default://3da0443b@project1/file"));
    repositoryHistory1.add(new PortableVersionRecord(null, "Pere", null, "", sdf.parse("01/0/2017"), "default://3da04474@project1/file"));
    repositoryHistory1.add(new PortableVersionRecord(null, "Pere", null, "", sdf.parse("01/08/2016"), "default://3da0445b@project1/file"));
    repositoryHistory1.add(new PortableVersionRecord(null, "Pere", null, "", sdf.parse("01/08/2016"), "default://3da0446b@project1/file"));
    repositoryHistory1.add(new PortableVersionRecord(null, "Pere", null, "", sdf.parse("01/09/2016"), "default://3da0447b@project1/file"));
    repositoryHistory1.add(new PortableVersionRecord(null, "Pere", null, "", sdf.parse("01/10/2016"), "default://3da0445b@project1/file"));
    repositoryHistory1.add(new PortableVersionRecord(null, "Pere", null, "", sdf.parse("01/11/2016"), "default://3da0444b@project1/file"));
    repositoryHistory1.add(new PortableVersionRecord(null, "David", null, "", sdf.parse("01/11/2016"), "default://3da0442b@project1/file"));
    repositoryHistory1.add(new PortableVersionRecord(null, "David", null, "", sdf.parse("01/12/2016"), "default://3da0442b@project1/file"));
    repositoryHistory1.add(new PortableVersionRecord(null, "Roger", null, "", sdf.parse("01/12/2016"), "default://3da0441b@project1/file"));
    repositoryHistory1.add(new PortableVersionRecord(null, "Roger", null, "", sdf.parse("02/04/2017"), "default://3da0444b@project1/file"));
    repositoryHistory1.add(new PortableVersionRecord(null, "Roger", null, "", sdf.parse("02/05/2017"), "default://3da0444b@project1/file"));
    repositoryHistory1.add(new PortableVersionRecord(null, "Mark", null, "", sdf.parse("01/02/2017"), "default://3da0443b@project1/file"));
    repositoryHistory1.add(new PortableVersionRecord(null, "Mark", null, "", sdf.parse("01/05/2017"), "default://3da0442b@project1/file"));
    repositoryHistory1.add(new PortableVersionRecord(null, "Mark", null, "", sdf.parse("01/06/2017"), "default://3da0442b@project1/file"));
    repositoryHistory1.add(new PortableVersionRecord(null, "David", null, "", sdf.parse("02/01/2017"), "default://3da0441b@project1/file"));
    repositoryHistory1.add(new PortableVersionRecord(null, "David", null, "", sdf.parse("01/01/2017"), "default://3da0442b@project1/file"));
    repositoryHistory1.add(new PortableVersionRecord(null, "David", null, "", sdf.parse("02/01/2017"), "default://3da0443b@project1/file"));
    List<VersionRecord> repositoryHistory2 = new ArrayList<>();
    repositoryHistory2.add(new PortableVersionRecord(null, "Roger", null, "", sdf.parse("02/02/2017"), "default://3da0441b@project2/file"));
    repositoryHistory2.add(new PortableVersionRecord(null, "Roger", null, "", sdf.parse("02/03/2017"), "default://3da0442b@project2/file"));
    repositoryHistory2.add(new PortableVersionRecord(null, "Mark", null, "", sdf.parse("02/03/2017"), "default://3da04471@project2/file"));
    repositoryHistory2.add(new PortableVersionRecord(null, "Roger", null, "", sdf.parse("02/04/2017"), "default://3da0442b@project2/file"));
    repositoryHistory2.add(new PortableVersionRecord(null, "Roger", null, "", sdf.parse("02/05/2017"), "default://3da0443b@project2/file"));
    repositoryHistory2.add(new PortableVersionRecord(null, "Mark", null, "", sdf.parse("01/02/2017"), "default://3da0444b@project2/file"));
    repositoryHistory2.add(new PortableVersionRecord(null, "Mark", null, "", sdf.parse("01/05/2017"), "default://3da0442b@project2/file"));
    repositoryHistory2.add(new PortableVersionRecord(null, "Mark", null, "", sdf.parse("01/06/2017"), "default://3da0443b@project2/file"));
    repositoryHistory2.add(new PortableVersionRecord(null, "Roger", null, "", sdf.parse("01/06/2017"), "default://3da0447b@project2/file"));
    repositoryHistory2.add(new PortableVersionRecord(null, "Pere", null, "", sdf.parse("01/06/2017"), "default://3da0445b@project2/file"));
    repositoryHistory2.add(new PortableVersionRecord(null, "David", null, "", sdf.parse("01/06/2017"), "default://3da0457b@project2/file"));
    repositoryHistory2.add(new PortableVersionRecord(null, "Mark", null, "", sdf.parse("01/06/2017"), "default://3da0441b@project2/file"));
    repositoryHistory2.add(new PortableVersionRecord(null, "Pere", null, "", sdf.parse("01/03/2017"), "default://3da0442b@project2/file"));
    repositoryHistory2.add(new PortableVersionRecord(null, "Pere", null, "", sdf.parse("01/04/2017"), "default://3da0442b@project2/file"));
    repositoryHistory2.add(new PortableVersionRecord(null, "Pere", null, "", sdf.parse("01/05/2017"), "default://3da0442b@project2/file"));
    repositoryHistory2.add(new PortableVersionRecord(null, "Pere", null, "", sdf.parse("01/06/2017"), "default://3da0443b@project2/file"));
    repositoryHistory2.add(new PortableVersionRecord(null, "Pere", null, "", sdf.parse("01/0/2017"), "default://3da04474@project2/file"));
    repositoryHistory2.add(new PortableVersionRecord(null, "Pere", null, "", sdf.parse("01/08/2016"), "default://3da0445b@project2/file"));
    repositoryHistory2.add(new PortableVersionRecord(null, "Pere", null, "", sdf.parse("01/08/2016"), "default://3da0446b@project2/file"));
    repositoryHistory2.add(new PortableVersionRecord(null, "Pere", null, "", sdf.parse("01/09/2016"), "default://3da0447b@project2/file"));
    repositoryHistory2.add(new PortableVersionRecord(null, "Pere", null, "", sdf.parse("01/10/2016"), "default://3da0445b@project2/file"));
    repositoryHistory2.add(new PortableVersionRecord(null, "Pere", null, "", sdf.parse("01/11/2016"), "default://3da0444b@project2/file"));
    repositoryHistory2.add(new PortableVersionRecord(null, "David", null, "", sdf.parse("01/11/2016"), "default://3da0442b@project2/file"));
    repositoryHistory2.add(new PortableVersionRecord(null, "David", null, "", sdf.parse("01/12/2016"), "default://3da0442b@project2/file"));
    repositoryHistory2.add(new PortableVersionRecord(null, "Roger", null, "", sdf.parse("01/12/2016"), "default://3da0441b@project2/file"));
    repositoryHistory2.add(new PortableVersionRecord(null, "David", null, "", sdf.parse("02/01/2017"), "default://3da0441b@project2/file"));
    repositoryHistory2.add(new PortableVersionRecord(null, "Roger", null, "", sdf.parse("02/02/2017"), "default://3da0442b@project2/file"));
    repositoryHistory2.add(new PortableVersionRecord(null, "Roger", null, "", sdf.parse("02/03/2017"), "default://3da0443b@project2/file"));
    repositoryHistory2.add(new PortableVersionRecord(null, "Mark", null, "", sdf.parse("02/03/2017"), "default://3da0444b@project2/file"));
    repositoryHistory2.add(new PortableVersionRecord(null, "Roger", null, "", sdf.parse("02/04/2017"), "default://3da0444b@project2/file"));
    repositoryHistory2.add(new PortableVersionRecord(null, "Roger", null, "", sdf.parse("02/05/2017"), "default://3da0444b@project2/file"));
    repositoryHistory2.add(new PortableVersionRecord(null, "Mark", null, "", sdf.parse("01/02/2017"), "default://3da0443b@project2/file"));
    System.out.println("SUM = " + (repositoryHistory1.size() + repositoryHistory2.size()));
    final Repository repo1 = makeRepository("testRepo1");
    final Repository repo2 = makeRepository("testRepo2");
    final OrganizationalUnit org1 = makeOrganizationalUnit("test1", Arrays.asList(repo1, repo2));
    when(organizationalUnitService.getOrganizationalUnits()).thenReturn(Arrays.asList(org1));
    final Set<WorkspaceProject> projects = new HashSet<>();
    projects.add(makeProject(repo1, org1, "project1"));
    projects.add(makeProject(repo2, org1, "project2"));
    when(projectService.getAllWorkspaceProjects(eq(org1))).thenReturn(projects);
    when(recordService.loadVersionRecords(any())).thenReturn(repositoryHistory1).thenReturn(repositoryHistory2);
}
Also used : Repository(org.guvnor.structure.repositories.Repository) OrganizationalUnit(org.guvnor.structure.organizationalunit.OrganizationalUnit) PortableVersionRecord(org.uberfire.ext.editor.commons.version.impl.PortableVersionRecord) VersionRecord(org.uberfire.java.nio.base.version.VersionRecord) WorkspaceProject(org.guvnor.common.services.project.model.WorkspaceProject) ArrayList(java.util.ArrayList) PortableVersionRecord(org.uberfire.ext.editor.commons.version.impl.PortableVersionRecord) SimpleDateFormat(java.text.SimpleDateFormat) HashSet(java.util.HashSet) Before(org.junit.Before)

Example 44 with WorkspaceProject

use of org.guvnor.common.services.project.model.WorkspaceProject in project kie-wb-common by kiegroup.

the class ProjectScreen method getDuplicateCommand.

CommandWithFileNameAndCommitMessage getDuplicateCommand() {
    return details -> {
        copyPopUpPresenter.getView().hide();
        view.showBusyIndicator(view.getLoadingMessage());
        promises.promisify(projectScreenService, s -> {
            s.copy(workspaceProject, details.getNewFileName());
        }).then(i -> {
            view.hideBusyIndicator();
            notificationEvent.fire(new NotificationEvent(view.getItemSuccessfullyDuplicatedMessage(), NotificationEvent.NotificationType.SUCCESS));
            return promises.resolve();
        }).catch_(this::onError);
    };
}
Also used : DeleteProjectPopUpScreen(org.kie.workbench.common.screens.library.client.screens.project.delete.DeleteProjectPopUpScreen) UpdatedAssetsEvent(org.kie.workbench.common.screens.library.client.screens.assets.events.UpdatedAssetsEvent) Promises(org.uberfire.client.promise.Promises) ManagedInstance(org.jboss.errai.ioc.client.api.ManagedInstance) SettingsPresenter(org.kie.workbench.common.screens.library.client.settings.SettingsPresenter) NewFileUploader(org.kie.workbench.common.screens.defaulteditor.client.editor.NewFileUploader) NotificationEvent(org.uberfire.workbench.events.NotificationEvent) Promise(elemental2.promise.Promise) ContributorsListPresenter(org.kie.workbench.common.screens.library.client.screens.organizationalunit.contributors.tab.ContributorsListPresenter) LibraryPlaces(org.kie.workbench.common.screens.library.client.util.LibraryPlaces) Inject(javax.inject.Inject) RenameProjectPopUpScreen(org.kie.workbench.common.screens.library.client.screens.project.rename.RenameProjectPopUpScreen) IsElement(org.jboss.errai.ui.client.local.api.elemental2.IsElement) EditContributorsPopUpPresenter(org.kie.workbench.common.screens.library.client.screens.organizationalunit.contributors.edit.EditContributorsPopUpPresenter) Elemental2DomUtil(org.jboss.errai.common.client.dom.elemental2.Elemental2DomUtil) WorkbenchPartTitle(org.uberfire.client.annotations.WorkbenchPartTitle) HTMLElement(elemental2.dom.HTMLElement) Observes(javax.enterprise.event.Observes) NewResourcePresenter(org.kie.workbench.common.widgets.client.handlers.NewResourcePresenter) WorkspaceProject(org.guvnor.common.services.project.model.WorkspaceProject) OrganizationalUnitController(org.guvnor.structure.client.security.OrganizationalUnitController) WorkbenchScreen(org.uberfire.client.annotations.WorkbenchScreen) ProjectScreenService(org.kie.workbench.common.screens.projecteditor.service.ProjectScreenService) Path(org.uberfire.backend.vfs.Path) HasBusyIndicatorDefaultErrorCallback(org.uberfire.ext.widgets.common.client.callbacks.HasBusyIndicatorDefaultErrorCallback) ProjectNameValidator(org.kie.workbench.common.screens.projecteditor.client.validation.ProjectNameValidator) Event(javax.enterprise.event.Event) BuildExecutor(org.kie.workbench.common.screens.projecteditor.client.build.BuildExecutor) CopyPopUpPresenter(org.uberfire.ext.editor.commons.client.file.popups.CopyPopUpPresenter) AfterEditOrganizationalUnitEvent(org.guvnor.structure.events.AfterEditOrganizationalUnitEvent) ViewHideAlertsButtonPresenter(org.guvnor.messageconsole.client.console.widget.button.ViewHideAlertsButtonPresenter) LibraryService(org.kie.workbench.common.screens.library.api.LibraryService) EmptyAssetsScreen(org.kie.workbench.common.screens.library.client.screens.assets.EmptyAssetsScreen) CommandWithFileNameAndCommitMessage(org.uberfire.ext.editor.commons.client.file.CommandWithFileNameAndCommitMessage) NewResourceSuccessEvent(org.kie.workbench.common.widgets.client.handlers.NewResourceSuccessEvent) Callback(com.google.gwt.core.client.Callback) Message(org.jboss.errai.bus.client.api.messaging.Message) Caller(org.jboss.errai.common.client.api.Caller) AssetsScreen(org.kie.workbench.common.screens.library.client.screens.assets.AssetsScreen) PostConstruct(javax.annotation.PostConstruct) ProjectController(org.guvnor.common.services.project.client.security.ProjectController) WorkbenchPartView(org.uberfire.client.annotations.WorkbenchPartView) LibraryPerspective(org.kie.workbench.common.screens.library.client.perspective.LibraryPerspective) UberElemental(org.uberfire.client.mvp.UberElemental) NotificationEvent(org.uberfire.workbench.events.NotificationEvent)

Example 45 with WorkspaceProject

use of org.guvnor.common.services.project.model.WorkspaceProject in project kie-wb-common by kiegroup.

the class LibraryPlaces method goToProject.

public void goToProject(final WorkspaceProject project) {
    if (projectContext.getActiveWorkspaceProject().map(activeProject -> !activeProject.equals(project)).orElse(true)) {
        if (closeAllPlacesOrNothing()) {
            projectContextChangeEvent.fire(new WorkspaceProjectContextChangeEvent(project, project.getMainModule()));
            goToProject();
        }
    } else {
        goToProject();
    }
}
Also used : Remote(org.kie.workbench.common.screens.library.api.Remote) WorkbenchProjectMetricsEvent(org.kie.workbench.common.screens.library.client.events.WorkbenchProjectMetricsEvent) AssetDetailEvent(org.kie.workbench.common.screens.library.client.events.AssetDetailEvent) ManagedInstance(org.jboss.errai.ioc.client.api.ManagedInstance) PreferenceScopeResolutionStrategyInfo(org.uberfire.preferences.shared.impl.PreferenceScopeResolutionStrategyInfo) ProjectScopedResolutionStrategySupplier(org.guvnor.common.services.project.client.preferences.ProjectScopedResolutionStrategySupplier) PathPlaceRequest(org.uberfire.mvp.impl.PathPlaceRequest) NotificationEvent(org.uberfire.workbench.events.NotificationEvent) DefaultPlaceRequest(org.uberfire.mvp.impl.DefaultPlaceRequest) ConcurrentRenameAcceptedEvent(org.uberfire.ext.editor.commons.client.event.ConcurrentRenameAcceptedEvent) KieModuleService(org.kie.workbench.common.services.shared.project.KieModuleService) Map(java.util.Map) Observes(javax.enterprise.event.Observes) WorkspaceProjectContextChangeEvent(org.guvnor.common.services.project.context.WorkspaceProjectContextChangeEvent) PreferencesCentralSaveEvent(org.uberfire.ext.preferences.client.event.PreferencesCentralSaveEvent) PlaceGainFocusEvent(org.uberfire.client.workbench.events.PlaceGainFocusEvent) WorkspaceProject(org.guvnor.common.services.project.model.WorkspaceProject) MessageConsoleScreen(org.guvnor.messageconsole.client.console.MessageConsoleScreen) Repository(org.guvnor.structure.repositories.Repository) LibraryToolbarPresenter(org.kie.workbench.common.screens.library.client.widgets.library.LibraryToolbarPresenter) RemoteCallback(org.jboss.errai.common.client.api.RemoteCallback) LibraryService(org.kie.workbench.common.screens.library.api.LibraryService) WorkspaceProjectContext(org.guvnor.common.services.project.client.context.WorkspaceProjectContext) PlaceRequest(org.uberfire.mvp.PlaceRequest) Routed(org.kie.workbench.common.screens.library.api.Routed) NewResourceSuccessEvent(org.kie.workbench.common.widgets.client.handlers.NewResourceSuccessEvent) ExtendedTypes(org.ext.uberfire.social.activities.model.ExtendedTypes) SocialFileSelectedEvent(org.ext.uberfire.social.activities.model.SocialFileSelectedEvent) List(java.util.List) ObservablePath(org.uberfire.backend.vfs.ObservablePath) Caller(org.jboss.errai.common.client.api.Caller) PostConstruct(javax.annotation.PostConstruct) ApplicationScoped(javax.enterprise.context.ApplicationScoped) WorkspaceProjectContextChangeHandler(org.guvnor.common.services.project.context.WorkspaceProjectContextChangeHandler) PreferencesRootScreen(org.uberfire.ext.preferences.client.central.screen.PreferencesRootScreen) PlaceStatus(org.uberfire.client.mvp.PlaceStatus) RenameModuleEvent(org.guvnor.common.services.project.events.RenameModuleEvent) RemoveOrganizationalUnitEvent(org.guvnor.structure.organizationalunit.RemoveOrganizationalUnitEvent) HashMap(java.util.HashMap) PlaceManager(org.uberfire.client.mvp.PlaceManager) ProjectAssetListUpdated(org.kie.workbench.common.screens.library.api.ProjectAssetListUpdated) PreferencesCentralUndoChangesEvent(org.uberfire.ext.preferences.client.event.PreferencesCentralUndoChangesEvent) ArrayList(java.util.ArrayList) Inject(javax.inject.Inject) ImportRepositoryPopUpPresenter(org.kie.workbench.common.screens.library.client.screens.importrepository.ImportRepositoryPopUpPresenter) PortablePreconditions(org.kie.soup.commons.validation.PortablePreconditions) Path(org.uberfire.backend.vfs.Path) Command(org.uberfire.mvp.Command) Event(javax.enterprise.event.Event) OrganizationalUnit(org.guvnor.structure.organizationalunit.OrganizationalUnit) LibraryConstants(org.kie.workbench.common.screens.library.client.resources.i18n.LibraryConstants) UberfireBreadcrumbs(org.uberfire.ext.widgets.common.client.breadcrumbs.UberfireBreadcrumbs) PartDefinitionImpl(org.uberfire.workbench.model.impl.PartDefinitionImpl) ModuleEventType(org.guvnor.common.services.project.social.ModuleEventType) TranslationService(org.jboss.errai.ui.client.local.spi.TranslationService) PreferencesCentralInitializationEvent(org.uberfire.ext.preferences.client.event.PreferencesCentralInitializationEvent) WorkspaceProjectService(org.guvnor.common.services.project.service.WorkspaceProjectService) VFSService(org.uberfire.backend.vfs.VFSService) RepositoryRemovedEvent(org.guvnor.structure.repositories.RepositoryRemovedEvent) AuthoringWorkbenchDocks(org.kie.workbench.common.workbench.client.docks.AuthoringWorkbenchDocks) Collections(java.util.Collections) LibraryPerspective(org.kie.workbench.common.screens.library.client.perspective.LibraryPerspective) WorkspaceProjectContextChangeEvent(org.guvnor.common.services.project.context.WorkspaceProjectContextChangeEvent)

Aggregations

WorkspaceProject (org.guvnor.common.services.project.model.WorkspaceProject)67 Test (org.junit.Test)42 Branch (org.guvnor.structure.repositories.Branch)29 OrganizationalUnit (org.guvnor.structure.organizationalunit.OrganizationalUnit)28 Repository (org.guvnor.structure.repositories.Repository)26 Path (org.uberfire.backend.vfs.Path)26 Module (org.guvnor.common.services.project.model.Module)21 ArrayList (java.util.ArrayList)12 GitRepository (org.guvnor.structure.repositories.impl.git.GitRepository)12 WorkspaceProjectContextChangeEvent (org.guvnor.common.services.project.context.WorkspaceProjectContextChangeEvent)10 ExampleOrganizationalUnit (org.kie.workbench.common.screens.examples.model.ExampleOrganizationalUnit)9 Before (org.junit.Before)8 KieModule (org.kie.workbench.common.services.shared.project.KieModule)7 POM (org.guvnor.common.services.project.model.POM)6 ExampleRepository (org.kie.workbench.common.screens.examples.model.ExampleRepository)5 ProjectAssetsQuery (org.kie.workbench.common.screens.library.api.ProjectAssetsQuery)5 ProjectScreenModel (org.kie.workbench.common.screens.projecteditor.model.ProjectScreenModel)5 Date (java.util.Date)4 HashSet (java.util.HashSet)4 ExampleProject (org.kie.workbench.common.screens.examples.model.ExampleProject)4