本文整理汇总了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);
}
示例2: findStem
import edu.internet2.middleware.grouper.StemNotFoundException; //导入依赖的package包/类
public static StemI findStem(GridGrouper grouper, String systemName) throws StemNotFoundException {
return grouper.findStem(systemName);
}
示例3: getParentStem
import edu.internet2.middleware.grouper.StemNotFoundException; //导入依赖的package包/类
public StemI getParentStem() throws StemNotFoundException {
return gridGrouper.getParentStem(getName());
}
示例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);
}
示例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;
示例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;
示例7: getParentStem
import edu.internet2.middleware.grouper.StemNotFoundException; //导入依赖的package包/类
public StemI getParentStem() throws StemNotFoundException;