use of org.apereo.portal.groups.GroupServiceConfiguration in project uPortal by Jasig.
the class GroupService method initializeCompositeService.
/** @exception GroupsException */
private void initializeCompositeService() throws GroupsException {
String eMsg = null;
try {
GroupServiceConfiguration cfg = getServiceConfiguration();
String factoryName = (String) cfg.getAttributes().get("compositeFactory");
if (factoryName == null) {
eMsg = "GroupService.initialize(): No entry for CompositeServiceFactory in configuration";
LOGGER.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();
LOGGER.error(eMsg, e);
throw new GroupsException(eMsg, e);
}
}
use of org.apereo.portal.groups.GroupServiceConfiguration in project uPortal by Jasig.
the class FileSystemGroupStore method initialize.
protected void initialize(GroupServiceConfiguration cfg) {
cache = Collections.synchronizedMap(new HashMap());
goodSeparator = File.separatorChar;
badSeparator = (goodSeparator == FORWARD_SLASH) ? BACK_SLASH : FORWARD_SLASH;
defaultEntityType = IPerson.class;
GroupServiceConfiguration config = cfg;
if (config == null) {
try {
config = GroupServiceConfiguration.getConfiguration();
} catch (Exception ex) {
throw new RuntimeException(ex);
}
}
String sep = config.getNodeSeparator();
if (sep != null) {
String period = String.valueOf(PERIOD);
useSubstitutePeriod = sep.equals(period);
}
}
Aggregations