public Collection newCollection() { return new CollectionImpl(new String[0]); }
Collection searchResults = new CollectionImpl(); searchResults.setContent(resourcePaths); return searchResults;
public static String[] getLifecycleList(Registry registry) throws RegistryException{ Collection collection; try { collection = (Collection)registry.get(getContextRoot()); } catch (Exception e) { return null; } if (collection == null) { CollectionImpl lifeCycleCollection = new CollectionImpl(); registry.put(getContextRoot(), lifeCycleCollection); return null; } else { if (collection.getChildCount() == 0) { return null; } String[] childrenList = collection.getChildren(); String[] lifeCycleNameList = new String[collection.getChildCount()]; for (int i = 0; i < childrenList.length; i++) { String path = childrenList[i]; lifeCycleNameList[i] = path.substring(path.lastIndexOf(RegistryConstants.PATH_SEPARATOR) + 1); } return lifeCycleNameList; } }
Collection lifeCycleConfigurationCollection = new CollectionImpl(); registry.put(RegistryConstants.LIFECYCLE_CONFIGURATION_PATH, lifeCycleConfigurationCollection);
RegistryConstants.PATH_SEPARATOR + RegistryConstants .AXIS2_CONF_COLLECTION_NAME; CollectionImpl confCollection = new CollectionImpl(); confCollection.setPath(confPath); confCollection.setMediaType(RegistryConstants.AXIS2_CONF_COLLECTION_MEDIA_TYPE); RegistryConstants.PATH_SEPARATOR + RegistryConstants .AXIS2_SERVICES_COLLECTION_NAME; CollectionImpl servicesCollection = new CollectionImpl(); servicesCollection.setPath(servicesPath); servicesCollection.setMediaType(RegistryConstants.AXIS2_SERVICES_COLLECTION_MEDIA_TYPE); RegistryConstants.PATH_SEPARATOR + RegistryConstants .AXIS2_MODULES_COLLECTION_NAME; CollectionImpl modulesCollection = new CollectionImpl(); modulesCollection.setPath(modulesPath); modulesCollection.setMediaType(RegistryConstants.AXIS2_MODULES_COLLECTION_MEDIA_TYPE);
RegistryConstants.PATH_SEPARATOR + RegistryConstants .SYNAPSE_CONF_COLLECTION_NAME; CollectionImpl confCollection = new CollectionImpl(); confCollection.setPath(confPath); confCollection.setMediaType(RegistryConstants.SYNAPSE_CONF_COLLECTION_MEDIA_TYPE); CollectionImpl seqCollection = new CollectionImpl(); seqCollection.setPath(seqPath); seqCollection.setMediaType(RegistryConstants.SYNAPSE_SEQUENCE_COLLECTION_MEDIA_TYPE); CollectionImpl epCollection = new CollectionImpl(); epCollection.setPath(epPath); epCollection.setMediaType(RegistryConstants.SYNAPSE_ENDPOINT_COLLECTION_MEDIA_TYPE); CollectionImpl proxyCollection = new CollectionImpl(); proxyCollection.setPath(proxyServicesPath); proxyCollection CollectionImpl tasksCollection = new CollectionImpl(); tasksCollection.setPath(tasksPath); tasksCollection.setMediaType(RegistryConstants.SYNAPSE_TASKS_COLLECTION_MEDIA_TYPE); CollectionImpl entryCollection = new CollectionImpl(); entryCollection.setPath(entriesPath); entryCollection.setMediaType(RegistryConstants.SYNAPSE_ENTRIES_COLLECTION_MEDIA_TYPE);
if (pathParts.length < 2) { Comment[] comments = getComments(pathParts[0]); Resource resource = new CollectionImpl(); resource.setContent(comments); return resource;
challengeQuestionCollection = new CollectionImpl(); resourceMgtService. putIdentityResource(challengeQuestionCollection, QUESTIONS_BASE_PATH, tenantDomain);