public final org.picketlink.idm.api.Group getJBIDMGroup(String groupId) throws Exception { String[] ids = groupId.split("/"); String name = ids[ids.length - 1]; String parentId = null; if (groupId.contains("/")) { parentId = groupId.substring(0, groupId.lastIndexOf("/")); } String plGroupName = configuration.getPLIDMGroupName(name); return idmService_.getIdentitySession().getPersistenceManager() .findGroup(plGroupName, getConfiguration().getGroupType(parentId)); }
findGroup(q.groupKey.getName(), q.groupKey.getType());
for (String type : orgService.getConfiguration().getAllTypes()) { try { plGroups.addAll(getIdentitySession().getPersistenceManager().findGroup(type)); } catch (Exception e) {
String plGroupName = getPLIDMGroupName(parent.getGroupName()); jbidGroup = getIdentitySession().getPersistenceManager().findGroup(plGroupName, orgService.getConfiguration().getGroupType(parent.getParentId())); } catch (Exception e) { plGroups.addAll(getIdentitySession().getPersistenceManager().findGroup(type)); } catch (Exception e) {
jbidGroup = getIdentitySession().getPersistenceManager().findGroup(plGroupName, orgService.getConfiguration().getGroupType(exoGroup.getParentId())); } catch (Exception e) {
jbidGroup = getIdentitySession().getPersistenceManager().findGroup(plGroupName, orgService.getConfiguration().getGroupType(group.getParentId())); } catch (Exception e) {
/** * Obtains PLIDM group representing "/" group. If such group doens't exist it creates one. * * @return * @throws Exception */ protected org.picketlink.idm.api.Group obtainRootGroup() { org.picketlink.idm.api.Group rootGroup = null; try { rootGroup = getIdentitySession().getPersistenceManager().findGroup( orgService.getConfiguration().getRootGroupName(), orgService.getConfiguration().getGroupType("/")); } catch (Exception e) { // TODO: handleException("Identity operation error: ", e); } if (rootGroup == null) { try { rootGroup = getIdentitySession().getPersistenceManager().createGroup( orgService.getConfiguration().getRootGroupName(), orgService.getConfiguration().getGroupType("/")); } catch (Exception e) { // TODO: handleException("Identity operation error: ", e); } } return rootGroup; }
parentGroup = getIdentitySession().getPersistenceManager().findGroup(parentPLGroupName, orgService.getConfiguration().getGroupType(parent.getParentId())); } catch (Exception e) {