當前位置: 首頁>>代碼示例>>Java>>正文


Java IItemManager類代碼示例

本文整理匯總了Java中com.ibm.team.repository.client.IItemManager的典型用法代碼示例。如果您正苦於以下問題:Java IItemManager類的具體用法?Java IItemManager怎麽用?Java IItemManager使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


IItemManager類屬於com.ibm.team.repository.client包,在下文中一共展示了IItemManager類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: execute

import com.ibm.team.repository.client.IItemManager; //導入依賴的package包/類
public void execute(IProgressMonitor monitor) throws TeamRepositoryException {
	if (fItemsToResolve.isEmpty())
		return;

	try {
		addToResolvedList(fManager.fetchCompleteItems(fItemsToResolve, IItemManager.DEFAULT, SubMonitor.convert(monitor, fItemsToResolve.size())));
		for (int i= 0; i < fItemsToResolve.size(); i++) {
			IItemHandle handle= fItemsToResolve.get(i);
			Deferred<IItem> deferred= fDeferreds.get(i);
			IItem item= fResolved.get(handle.getItemId());
			deferred.onResolved(item, monitor);
		}
	} finally {
		fDeferreds.clear();
		fItemsToResolve.clear();
		fResolved.clear();
	}
}
 
開發者ID:sandy081,項目名稱:Copy-Work-Items,代碼行數:19,代碼來源:ItemResolver.java

示例2: fetchCompleteItem

import com.ibm.team.repository.client.IItemManager; //導入依賴的package包/類
@SuppressWarnings("unchecked")
protected <T> T fetchCompleteItem(IItemHandle itemHandle) {
  T completeItem = null;
  try {
    IItemManager itemManager = getTeamRepository().itemManager();
    completeItem = (T) itemManager.fetchCompleteItem(itemHandle, ItemManager.DEFAULT, null);
  } catch (TeamRepositoryException e) {
    e.printStackTrace();
  }
  return completeItem;
}
 
開發者ID:rtcTo,項目名稱:rtc2jira,代碼行數:12,代碼來源:MappingAdapter.java

示例3: getLastChangeSetUuids

import com.ibm.team.repository.client.IItemManager; //導入依賴的package包/類
private Map<String, String> getLastChangeSetUuids(ITeamRepository repo, IWorkspace sourceWs) {
	IWorkspaceConnection sourceWsConnection;
	IWorkspaceManager workspaceManager = SCMPlatform.getWorkspaceManager(repo);
	IItemManager itemManager = repo.itemManager();
	Map<String, String> lastChangeSets = new HashMap<String, String>();
	try {
		IProgressMonitor monitor = getMonitor();
		sourceWsConnection = workspaceManager.getWorkspaceConnection(sourceWs, monitor);
		@SuppressWarnings("unchecked")
		List<IComponentHandle> componentHandles = sourceWsConnection.getComponents();
		@SuppressWarnings("unchecked")
		List<IComponent> components = itemManager.fetchCompleteItems(componentHandles, componentHandles.size(),
				monitor);
		for (IComponent component : components) {
			@SuppressWarnings("unchecked")
			List<ClientChangeSetEntry> changeSets = sourceWsConnection.changeHistory(component).recent(monitor);
			// select first change set if there are any
			if (!changeSets.isEmpty()) {
				IChangeSetHandle changeSetHandle = changeSets.get(changeSets.size() - 1).changeSet();
				lastChangeSets.put(component.getName(), changeSetHandle.getItemId().getUuidValue());
			}
		}
	} catch (TeamRepositoryException e) {
		e.printStackTrace(output.getOutputStream());
	}
	return lastChangeSets;
}
 
開發者ID:rtcTo,項目名稱:rtc2gitcli,代碼行數:28,代碼來源:MigrateTo.java


注:本文中的com.ibm.team.repository.client.IItemManager類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。