public void jsSet_description(Object description) throws CarbonException { if (description instanceof String) { this.resource.setDescription((String) description); } else { throw new CarbonException("Invalid property type for description"); } }
public static void setDescription(UserRegistry registry, String path, String description) throws Exception { Resource resource = registry.get(path); resource.setDescription(description); registry.put(path, resource); resource.discard(); } }
private static void createSystemConfigNodeTypes(UserRegistry userReg,String workspaceRoot) throws RegistryException { String confVerPath = workspaceRoot + JCR_SYSTEM_CONFIG + "/" + JCR_SYSTEM_CONFIG_NODE_TYPES; if (!userReg.resourceExists(confVerPath)) { Resource resource = (CollectionImpl)userReg.newCollection(); resource.setDescription("sys:config-jcr-storage"); resource.setProperty("sys:config","true"); userReg.put(confVerPath, resource); } }
private static void createSystemConfigVersion(UserRegistry userReg,String workspaceRoot) throws RegistryException { String confVerPath = workspaceRoot + JCR_SYSTEM_CONFIG + "/" + JCR_SYSTEM_CONFIG_VERSION; if (!userReg.resourceExists(confVerPath)) { Resource resource = (CollectionImpl)userReg.newCollection(); resource.setDescription("sys:config-jcr-storage"); resource.setProperty("sys:config","true"); userReg.put(confVerPath, resource); } }
private static void createSystemConfigVersionLabelStore(UserRegistry userReg,String workspaceRoot) throws RegistryException { String confVerPath = workspaceRoot + JCR_SYSTEM_CONFIG + "/" + JCR_SYSTEM_VERSION_LABELS; if (!userReg.resourceExists(confVerPath)) { Resource resource = (CollectionImpl)userReg.newCollection(); resource.setDescription("sys:config-jcr-storage"); resource.setProperty("sys:config","true"); userReg.put(confVerPath, resource); } }
wsdlResource.setDescription(metaDataResource.getDescription());
metadataResource.setDescription(description);
public static void updateTextContent(String path, String contentText, Registry registry) throws Exception { try { Resource resource = registry.get(path); String mediaType = resource.getMediaType(); if (resource.getProperty(RegistryConstants.REGISTRY_LINK) != null && (CommonConstants.WSDL_MEDIA_TYPE.equals(mediaType) || CommonConstants.SCHEMA_MEDIA_TYPE.equals(mediaType))) { String description = resource.getDescription(); Properties properties = (Properties) resource.getProperties().clone(); resource = registry.newResource(); resource.setMediaType(mediaType); resource.setDescription(description); resource.setProperties(properties); } resource.setContent(RegistryUtils.encodeString(contentText)); registry.put(path, resource); resource.discard(); } catch (RegistryException e) { String msg = "Could not update the content of the resource " + path + ". Caused by: " + ((e.getCause() instanceof SQLException) ? "" : e.getMessage()); log.error(msg, e); throw new RegistryException(msg, e); } } }
wsdlResource.setDescription(metadata.getDescription());
wsdlResource.setDescription(metaDataResource.getDescription());
xsdResource.setDescription(metaResource.getDescription());
wsdlResource.setDescription(metaDataResource.getDescription());
resource.setProperty(CommonConstants.SOURCE_PROPERTY, CommonConstants.SOURCE_ADMIN_CONSOLE); resource.setMediaType(mediaType); resource.setDescription(description); resource.setContent(RegistryUtils.decodeBytes(content));
if (metadata != null) { xsdResource.setMediaType(metadata.getMediaType()); xsdResource.setDescription(metadata.getDescription());
private void createRootNode() throws RepositoryException { try { if (!userRegistry.resourceExists(RegistryJCRSpecificStandardLoderUtil. getJCRRegistryWorkspaceRoot())) { Resource resource = (CollectionImpl) userRegistry.newCollection(); userRegistry.put(RegistryJCRSpecificStandardLoderUtil. getJCRRegistryWorkspaceRoot(), resource); } if(!userRegistry.resourceExists(WORKSPACE_ROOT)) { Resource resource = (CollectionImpl) userRegistry.newCollection(); resource.setDescription("nt:base"); resource.setProperty("jcr:primaryType", "nt:base"); userRegistry.put(WORKSPACE_ROOT, resource); } } catch (RegistryException e) { throw new RepositoryException("Registry Exception occurred while creating root node " + e.getMessage()); } }
wsdlResource.setDescription(metaDataResource.getDescription());
xsdResource.setDescription(metaResource.getDescription());
serviceInfoElement = oldServiceInfoElement; resource.setContent(serviceInfoElement.toString()); resource.setDescription(oldResource.getDescription()); } catch (Exception e) { StringBuilder msg = new StringBuilder("Error in parsing the service content of the service. ")
resource.setDescription(description);
serviceInfoElement = oldServiceInfoElement; resource.setContent(serviceInfoElement.toString()); resource.setDescription(oldResource.getDescription()); } catch (Exception e) { String msg = "Error in parsing the service content of the service. " +