Package org.jasig.portal.groups

Examples of org.jasig.portal.groups.GroupsException


                if ( ids.contains(ent.getKey()) )
                    { groups.add(find(files[i])); }
            }
        }
        catch (IOException ex)
            { throw new GroupsException("Problem reading group files", ex); }
    }

    return groups.iterator();
}
View Full Code Here


                if ( ids.contains(group.getLocalKey()) )
                    { groups.add(find(files[i])); }
            }
        }
        catch (IOException ex)
            { throw new GroupsException("Problem reading group files", ex); }
    }
    return groups.iterator();
}
View Full Code Here

        {
            Collection groupKeys = getGroupIdsFromFile(f);
            keys = (String[])groupKeys.toArray(new String[groupKeys.size()]);
        }
        catch (IOException ex)
            { throw new GroupsException(DEBUG_CLASS_NAME + ".findMemberGroupKeys(): " +
                 "problem finding group members", ex); }
    }
    return keys;
}
View Full Code Here

                DEBUG_CLASS_NAME + "getEntitiesFromFile(): for " + idFile.getPath());

    Collection ids = null;
    Class type = getEntityType(idFile);
    if ( EntityTypes.getEntityTypeID(type) == null )
        { throw new GroupsException("Invalid entity type: " + type); }
    try
        { ids = getEntityIdsFromFile(idFile); }
    catch (Exception ex)
        { throw new GroupsException("Problem retrieving keys from file", ex); }

    Collection entities = new ArrayList(ids.size());

    for ( Iterator itr=ids.iterator(); itr.hasNext(); )
    {
View Full Code Here

    return newInstance(key, getDefaultEntityType());
}
public IEntity newInstance(String key, Class type) throws GroupsException
{
    if ( org.jasig.portal.EntityTypes.getEntityTypeID(type) == null )
        { throw new GroupsException("Invalid group type: " + type); }
    return new EntityImpl(key, type);
}
View Full Code Here

           break;
          case CONTAINS:
            nameFilter = ".*"+query+".*";
            break;
          default:
            throw new GroupsException(DEBUG_CLASS_NAME +
                ".searchForGroups(): Unknown search method: " + searchMethod);
        }

        final Pattern namePattern = Pattern.compile(nameFilter);
        final FilenameFilter filter = new FilenameFilter() {
View Full Code Here

          ? getEntityIdsFromFile(file)
          : getGroupIdsFromFile(file);
    }
    catch (Exception ex)
    {
        throw new GroupsException("Error retrieving ids from file", ex);
    }
    return ids.contains(member.getKey());
}
View Full Code Here

        case IGroupConstants.CONTAINS:
          regex = ".*" + query.toUpperCase() + ".*";
          break;
        default:
          String msg = "Unsupported search method:  " + method;
          throw new GroupsException(msg);
      }
     
      List<EntityIdentifier> rslt = new LinkedList<EntityIdentifier>();
      for (Map.Entry<String,List<String>> y : groupsTree.getKeysByUpperCaseName().entrySet()) {
        if (y.getKey().matches(regex)) {
View Full Code Here

        if ( factoryName == null )
        {
            eMsg = "GroupService.initialize(): No entry for CompositeServiceFactory in configuration";
            log.error( eMsg);
            throw new GroupsException(eMsg);
        }

        ICompositeGroupServiceFactory serviceFactory =
          (ICompositeGroupServiceFactory)Class.forName(factoryName).newInstance();
        compositeGroupService = serviceFactory.newGroupService();
    }
    catch (Exception e)
    {
        eMsg = "GroupService.initialize(): Problem creating groups service... " + e.getMessage();
        log.error( eMsg, e);
        throw new GroupsException(eMsg, e);
    }
}
View Full Code Here

*/
public IEntityNameFinder getNameFinder(Class type) throws GroupsException
{
        IEntityNameFinder finder = (IEntityNameFinder) (getNameFinders().get(type));
        if ( finder == null )
            { throw new GroupsException("Name finder for " + type.getName() + " could not be located."); }
        return finder;
}
View Full Code Here

TOP

Related Classes of org.jasig.portal.groups.GroupsException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.