本文整理匯總了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;