当前位置: 首页>>代码示例>>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;未经允许,请勿转载。