/** * extract the current clients and save in the snapshot file * * @param list * @param caps * @return * @throws SerializerException */ private void exportClients(Refs refs, JSSnapshot snapshot, Map<String,Object> settings, Logger log) throws SerializerException { /** first the the mime types */ exportMimeTypes(refs, snapshot, settings, log); /** second get the capabilities */ this.exportCapabilites(refs, snapshot, settings, log); /** now get the clients */ Iterator _it = caps.getClients(); while (_it.hasNext()) { Client c = (Client) _it.next(); JSClient jsC = createJSClient(refs, c); if (jsC == null) throw new SerializerException( SerializerException.CREATE_SERIALIZED_OBJECT_FAILED .create(new String[] { "Client", "createClient returned NULL"})); refs.clientMap.put(jsC.getName(), jsC); snapshot.getClients().add(jsC); } return; }
public JSSnapshot() { mimeTypes = new JSMimeTypes(); mediaTypes = new JSMediaTypes(); clients = new JSClients(); capabilities = new JSCapabilities(); oldRoles = new JSRoles(); oldGroups = new JSGroups(); oldUsers = new JSUsers(); principals = new JSPrincipals(); principalAssociations = new JSPrincipalAssociations(); permissions = new JSPermissions(); rules = new JSProfilingRules(); applications = new JSApplications(); securityDomains=new JSSecurityDomains(); ssoSites = new JSSSOSites(); }
if ( !g.getClients().isEmpty() )