public static java.lang.String getGatewaySiteId() { org.sakaiproject.component.api.ServerConfigurationService service = getInstance(); if (service == null) return null; return service.getGatewaySiteId(); }
/** * Checks if a subSession should be processed and stored in the distributed store * * @param subSession the sub session which we are checking to see if it should be stored * @return true if the session should be stored OR false if it should be skipped */ private boolean storeSubSession(MyLittleSession subSession) { if (subSession == null) { return false; } if (MyLittleSession.TYPE_TOOL.equals(subSession.getSessionType())) { if (subSession.getSessionToolId() == null) { // don't store tool sessions if they have no toolId return false; } else if (StringUtils.contains(subSession.getSessionToolId(), "synoptic")) { // don't store tool sessions for synoptic tools return false; } } if (subSession.getContextId() != null && subSession.getContextId().equals(serverConfigurationService.getGatewaySiteId())) { // do not store context sessions if they are related to the gateway site return false; } if (!subSession.getAttributeNames().hasMoreElements()) { // don't store empty sessions return false; } return true; }