private void importEntities(JSSnapshot snapshot, Map<String,Object> settings, Logger log) throws SerializerException { JSApplications applications = snapshot.getApplications(); if (applications == null) { return; } // import preferences for registered portlets if applications // have been registered; otherwise, import all preferences boolean importAll = registry.getPortletApplications().isEmpty(); if (!applications.isEmpty()) { Iterator it = applications.iterator(); while (it.hasNext()) { JSApplication app = (JSApplication) it.next(); PortletApplication portletApp = registry.getPortletApplication(app.getName()); if ((portletApp != null) || importAll) { importPA(app, portletApp, settings, log); } } } }
if (app != null) snapshot.getApplications().add(app);
if ( !g.getApplications().isEmpty() )
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(); }