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


Java StemNotFoundException類代碼示例

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


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

示例1: createUser

import edu.internet2.middleware.grouper.StemNotFoundException; //導入依賴的package包/類
public void createUser(String userIdentity, String adminIdentity) throws StemNotFoundException, InsufficientPrivilegeException, StemAddException, SubjectNotFoundException, GrantPrivilegeException, SchemaException {
		String stemDisplayName = userIdentity + " Photos";
		String stemSystemName = GroupUtils.makeSystemName(stemDisplayName);
		StemI photoSharingStem = this.grouper.findStem(photoSharingServiceStemSystemName);
		//check that stem doesn't exist yet
		Set<StemI> existingStems = (Set<StemI>)photoSharingStem.getChildStems();
		StemI myStem = null;
		for (StemI stem : existingStems) {
			if (stem.getExtension().equals(stemSystemName)) {
				myStem = stem;
			}
		}
		
				
		if (myStem == null) {
			myStem = photoSharingStem.addChildStem(stemSystemName, stemDisplayName);
		}
//		GroupUtils.addStemPrivilege(adminIdentity, myStem);
		userStems.put(userIdentity, myStem);
	}
 
開發者ID:NCIP,項目名稱:cagrid-general,代碼行數:21,代碼來源:PhotoSharingUserManager.java

示例2: findStem

import edu.internet2.middleware.grouper.StemNotFoundException; //導入依賴的package包/類
public static StemI findStem(GridGrouper grouper, String systemName) throws StemNotFoundException {
	return grouper.findStem(systemName);
}
 
開發者ID:NCIP,項目名稱:cagrid-general,代碼行數:4,代碼來源:GroupUtils.java

示例3: getParentStem

import edu.internet2.middleware.grouper.StemNotFoundException; //導入依賴的package包/類
public StemI getParentStem() throws StemNotFoundException {
    return gridGrouper.getParentStem(getName());
}
 
開發者ID:NCIP,項目名稱:cagrid-core,代碼行數:4,代碼來源:Stem.java

示例4: getRootStem

import edu.internet2.middleware.grouper.StemNotFoundException; //導入依賴的package包/類
/**
 * Returns a Stem object corresponding to the Grid Grouper root stem.
 * 
 * @return Stem object corresponding to the Grid Grouper root stem.
 * @throws StemNotFoundException
 *             Thrown if the root stem could not be found.
 */
public StemI getRootStem() throws StemNotFoundException {
    return findStem(ROOT_STEM);
}
 
開發者ID:NCIP,項目名稱:cagrid-core,代碼行數:11,代碼來源:GridGrouper.java

示例5: getRootStem

import edu.internet2.middleware.grouper.StemNotFoundException; //導入依賴的package包/類
/**
 * Returns a Stem object corresponding to the Grid Grouper root stem.
 * 
 * @return Stem object corresponding to the Grid Grouper root stem.
 * @throws StemNotFoundException
 *             Thrown if the root stem could not be found.
 */
public StemI getRootStem() throws StemNotFoundException;
 
開發者ID:NCIP,項目名稱:cagrid-core,代碼行數:9,代碼來源:GrouperI.java

示例6: findStem

import edu.internet2.middleware.grouper.StemNotFoundException; //導入依賴的package包/類
/**
 * Obtains the Stem object for a specified Stem.
 * 
 * @param name
 *            The name of the stem
 * @return The Stem Object or the requested stem.
 * @throws StemNotFoundException
 *             Thrown if the request stem could not be found.
 */
public StemI findStem(String name) throws StemNotFoundException;
 
開發者ID:NCIP,項目名稱:cagrid-core,代碼行數:11,代碼來源:GrouperI.java

示例7: getParentStem

import edu.internet2.middleware.grouper.StemNotFoundException; //導入依賴的package包/類
public StemI getParentStem() throws StemNotFoundException; 
開發者ID:NCIP,項目名稱:cagrid-core,代碼行數:2,代碼來源:StemI.java


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