本文整理汇总了Java中org.guvnor.structure.repositories.RepositoryService类的典型用法代码示例。如果您正苦于以下问题:Java RepositoryService类的具体用法?Java RepositoryService怎么用?Java RepositoryService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RepositoryService类属于org.guvnor.structure.repositories包,在下文中一共展示了RepositoryService类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: AppSetup
import org.guvnor.structure.repositories.RepositoryService; //导入依赖的package包/类
@Inject
public AppSetup(@Named("ioStrategy") final IOService ioService,
final RepositoryService repositoryService,
final OrganizationalUnitService organizationalUnitService,
final KieProjectService projectService,
final ConfigurationService configurationService,
final ConfigurationFactory configurationFactory,
final Event<ApplicationStarted> applicationStartedEvent) {
super(ioService,
repositoryService,
organizationalUnitService,
projectService,
configurationService,
configurationFactory);
this.applicationStartedEvent = applicationStartedEvent;
}
示例2: CreateRepositoryWizard
import org.guvnor.structure.repositories.RepositoryService; //导入依赖的package包/类
@Inject
public CreateRepositoryWizard(final RepositoryInfoPage infoPage,
final RepositoryStructurePage structurePage,
final CreateRepositoryWizardModel model,
final Caller<RepositoryService> repositoryService,
final Caller<RepositoryStructureService> repositoryStructureService,
final Caller<ProjectRepositoryResolver> repositoryResolverService,
final Caller<AssetManagementService> assetManagementService,
final Event<NotificationEvent> notification,
final SessionInfo sessionInfo,
final ConflictingRepositoriesPopup conflictingRepositoriesPopup,
final POMDefaultOptions pomDefaultOptions,
final AuthorizationManager authorizationManager) {
this.infoPage = infoPage;
this.structurePage = structurePage;
this.model = model;
this.repositoryService = repositoryService;
this.repositoryStructureService = repositoryStructureService;
this.repositoryResolverService = repositoryResolverService;
this.assetManagementService = assetManagementService;
this.notification = notification;
this.sessionInfo = sessionInfo;
this.conflictingRepositoriesPopup = conflictingRepositoriesPopup;
this.pomDefaultOptions = pomDefaultOptions;
this.authorizationManager = authorizationManager;
}
示例3: OrganizationalUnitManagerPresenterImpl
import org.guvnor.structure.repositories.RepositoryService; //导入依赖的package包/类
@Inject
public OrganizationalUnitManagerPresenterImpl(final OrganizationalUnitManagerView view,
final Caller<OrganizationalUnitService> organizationalUnitService,
final Caller<RepositoryService> repositoryService,
final OrganizationalUnitController organizationalUnitController,
final AddOrganizationalUnitPopup addOrganizationalUnitPopup,
final EditOrganizationalUnitPopup editOrganizationalUnitPopup,
final Event<AfterCreateOrganizationalUnitEvent> createOUEvent,
final Event<AfterDeleteOrganizationalUnitEvent> deleteOUEvent) {
this.view = PortablePreconditions.checkNotNull("view",
view);
this.organizationalUnitService = PortablePreconditions.checkNotNull("organizationalUnitService",
organizationalUnitService);
this.repositoryService = PortablePreconditions.checkNotNull("repositoryService",
repositoryService);
this.controller = PortablePreconditions.checkNotNull("organizationalUnitController",
organizationalUnitController);
this.addOrganizationalUnitPopup = PortablePreconditions.checkNotNull("addOrganizationalUnitPopup",
addOrganizationalUnitPopup);
this.editOrganizationalUnitPopup = PortablePreconditions.checkNotNull("editOrganizationalUnitPopup",
editOrganizationalUnitPopup);
this.createOUEvent = PortablePreconditions.checkNotNull("createOUEvent",
createOUEvent);
this.deleteOUEvent = PortablePreconditions.checkNotNull("deleteOUEvent",
deleteOUEvent);
}
示例4: CloneRepositoryPresenter
import org.guvnor.structure.repositories.RepositoryService; //导入依赖的package包/类
@Inject
public CloneRepositoryPresenter(final RepositoryPreferences repositoryPreferences,
final CloneRepositoryView view,
final Caller<RepositoryService> repositoryService,
final Caller<OrganizationalUnitService> organizationalUnitService,
final PlaceManager placeManager,
final AuthorizationManager authorizationManager,
final SessionInfo sessionInfo) {
this.repositoryPreferences = repositoryPreferences;
this.view = view;
this.repositoryService = repositoryService;
this.organizationalUnitService = organizationalUnitService;
this.placeManager = placeManager;
this.authorizationManager = authorizationManager;
this.sessionInfo = sessionInfo;
}
示例5: AppSetup
import org.guvnor.structure.repositories.RepositoryService; //导入依赖的package包/类
@Inject
public AppSetup(@Named("ioStrategy") final IOService ioService,
final RepositoryService repositoryService,
final OrganizationalUnitService organizationalUnitService,
final KieModuleService moduleService,
final ConfigurationService configurationService,
final ConfigurationFactory configurationFactory,
final WorkbenchConfigurationHelper workbenchConfigurationHelper,
final Event<ApplicationStarted> applicationStartedEvent) {
super(ioService,
repositoryService,
organizationalUnitService,
moduleService,
configurationService,
configurationFactory);
this.workbenchConfigurationHelper = workbenchConfigurationHelper;
this.applicationStartedEvent = applicationStartedEvent;
}
示例6: ProjectScreenServiceImpl
import org.guvnor.structure.repositories.RepositoryService; //导入依赖的package包/类
@Inject
public ProjectScreenServiceImpl(final WorkspaceProjectService projectService,
final RepositoryService repositoryService,
final KieModuleService moduleService,
final ProjectScreenModelLoader loader,
final ProjectScreenModelSaver saver,
final RepositoryCopier repositoryCopier,
final POMService pomService,
final MetadataService metadataService) {
this.projectService = projectService;
this.repositoryService = repositoryService;
this.moduleService = moduleService;
this.loader = loader;
this.saver = saver;
this.repositoryCopier = repositoryCopier;
this.pomService = pomService;
this.metadataService = metadataService;
}
示例7: ExamplesServiceImpl
import org.guvnor.structure.repositories.RepositoryService; //导入依赖的package包/类
@Inject
public ExamplesServiceImpl(final @Named("ioStrategy") IOService ioService,
final ConfigurationFactory configurationFactory,
final RepositoryFactory repositoryFactory,
final KieModuleService moduleService,
final RepositoryService repositoryService,
final RepositoryCopier repositoryCopier,
final OrganizationalUnitService ouService,
final WorkspaceProjectService projectService,
final MetadataService metadataService,
final SpacesAPI spaces,
final Event<NewProjectEvent> newProjectEvent,
final ProjectScreenService projectScreenService) {
this.ioService = ioService;
this.configurationFactory = configurationFactory;
this.repositoryFactory = repositoryFactory;
this.moduleService = moduleService;
this.repositoryService = repositoryService;
this.repositoryCopier = repositoryCopier;
this.ouService = ouService;
this.projectService = projectService;
this.metadataService = metadataService;
this.spaces = spaces;
this.newProjectEvent = newProjectEvent;
this.projectScreenService = projectScreenService;
}
示例8: ACLMigrationTool
import org.guvnor.structure.repositories.RepositoryService; //导入依赖的package包/类
@Inject
public ACLMigrationTool(OrganizationalUnitService organizationalUnitService,
RepositoryService repositoryService,
Instance<ProjectService<?>> projectServices,
PermissionManager permissionManager,
AuthorizationPolicyStorage authorizationPolicyStorage) {
this.organizationalUnitService = organizationalUnitService;
this.repositoryService = repositoryService;
this.projectServices = projectServices;
this.permissionManager = permissionManager;
this.authorizationPolicyStorage = authorizationPolicyStorage;
}
示例9: RepositoryInfoPage
import org.guvnor.structure.repositories.RepositoryService; //导入依赖的package包/类
@Inject
public RepositoryInfoPage(RepositoryInfoPageView view,
Caller<OrganizationalUnitService> organizationalUnitService,
Caller<RepositoryService> repositoryService) {
this.view = view;
view.init(this);
this.organizationalUnitService = organizationalUnitService;
this.repositoryService = repositoryService;
}
示例10: RepositoryInfoPageExtended
import org.guvnor.structure.repositories.RepositoryService; //导入依赖的package包/类
public RepositoryInfoPageExtended(RepositoryInfoPageView view,
Caller<OrganizationalUnitService> organizationalUnitService,
Caller<RepositoryService> repositoryService,
boolean ouMandatory,
WizardPageStatusChangeEventMock event) {
super(view,
organizationalUnitService,
repositoryService);
this.ouMandatory = ouMandatory;
super.wizardPageStatusChangeEvent = event;
//emulates the invocation of the @PostConstruct method.
super.init();
}
示例11: AssetManagementServiceImpl
import org.guvnor.structure.repositories.RepositoryService; //导入依赖的package包/类
@Inject
public AssetManagementServiceImpl(final Event<NewBranchEvent> newBranchEvent,
final Event<ConfigureRepositoryEvent> configureRepositoryEvent,
final POMService pomService,
@Named("ioStrategy") final IOService ioService,
final RepositoryService repositoryService,
final Instance<ProjectService<?>> projectService) {
this.ioService = ioService;
this.newBranchEvent = newBranchEvent;
this.configureRepositoryEvent = configureRepositoryEvent;
this.pomService = pomService;
this.repositoryService = repositoryService;
this.projectService = projectService;
}
示例12: RepositoryEditorPresenter
import org.guvnor.structure.repositories.RepositoryService; //导入依赖的package包/类
@Inject
public RepositoryEditorPresenter(final View view,
final Caller<RepositoryService> repositoryService,
final Caller<RepositoryServiceEditor> repositoryServiceEditor,
final Event<NotificationEvent> notification,
final PlaceManager placeManager,
final RepositoryController repositoryController) {
this.view = view;
this.repositoryService = repositoryService;
this.repositoryServiceEditor = repositoryServiceEditor;
this.notification = notification;
this.placeManager = placeManager;
this.repositoryController = repositoryController;
}
示例13: RepositoriesPresenter
import org.guvnor.structure.repositories.RepositoryService; //导入依赖的package包/类
@Inject
public RepositoriesPresenter(final RepositoriesView view,
final GuvnorStructureContext guvnorStructureContext,
final Caller<RepositoryService> repositoryService,
final RepositoryController repositoryController) {
this.view = view;
this.guvnorStructureContext = guvnorStructureContext;
this.repositoryService = repositoryService;
this.repositoryController = repositoryController;
changeHandlerRegistration = guvnorStructureContext.addGuvnorStructureContextChangeHandler(this);
view.setPresenter(this);
}
示例14: before
import org.guvnor.structure.repositories.RepositoryService; //导入依赖的package包/类
@Before
public void before() {
repositoryServiceCaller = new CallerMock<RepositoryService>(repositoryService);
repositoryServiceEditorCaller = new CallerMock<RepositoryServiceEditor>(repositoryServiceEditor);
presenter = new RepositoryEditorPresenter(view,
repositoryServiceCaller,
repositoryServiceEditorCaller,
notification,
placeManager,
repositoryController);
repositoryInfo = new RepositoryInfo("repository",
"repository",
"owner",
root,
new ArrayList<PublicURI>(),
new ArrayList<VersionRecord>());
repositoryHistory = Collections.EMPTY_LIST;
when(repositoryService.getRepositoryInfo(any(String.class))).thenReturn(repositoryInfo);
when(repositoryService.getRepositoryHistory(any(String.class),
any(Integer.class))).thenReturn(repositoryHistory);
when(repositoryServiceEditor.revertHistory(any(String.class),
eq(root),
any(String.class),
any(VersionRecord.class))).thenReturn(repositoryHistory);
//Each test needs the Presenter to be initialised
place.addParameter("alias",
"repository");
presenter.onStartup(place);
}
示例15: RsCreateRepositoryFailAnswer
import org.guvnor.structure.repositories.RepositoryService; //导入依赖的package包/类
public RsCreateRepositoryFailAnswer(Message message,
Throwable cause,
Repository repository,
RepositoryService repoService) {
this.message = message;
this.cause = cause;
this.repository = repository;
this.repoService = repoService;
}