protected String getCreatedBy() throws RegistryException { return resource.getAuthorUserName(); }
public String jsGet_author() { return this.resource.getAuthorUserName(); }
/** * Method to set the resource author to IndexDocument attribute list. */ private void addAuthor() { // Set the author of the resource String createdBy = resource.getAuthorUserName(); if (createdBy != null && !StringUtils.isEmpty(createdBy)) { attributes.put(IndexingConstants.FIELD_CREATED_BY, Arrays.asList(createdBy)); } }
resourceData.setAuthorUserName(child.getAuthorUserName()); resourceData.setDescription(child.getDescription()); resourceData.setAverageRating(registry.getAverageRating(child.getPath()));
resourceData.setAuthorUserName(child.getAuthorUserName()); resourceData.setDescription(child.getDescription()); resourceData.setAverageRating(registry.getAverageRating(child.getPath()));
serviceResourcePath); resource.setProperty(RegistryConstants.REGISTRY_AUTHOR, resource.getAuthorUserName()); resource.setProperty( RegistryConstants.REGISTRY_ACTUAL_PATH,
resourceData.setAuthorUserName(child.getAuthorUserName()); resourceData.setDescription(child.getDescription()); resourceData.setAverageRating(registry
public static WSResource transformResourceToWSResource(Resource resource, DataHandler dataHandler) { WSResource wsResource = new WSResource(); wsResource.setContentFile(dataHandler); wsResource.setAuthorUserName(resource.getAuthorUserName()); if (resource.getCreatedTime() != null) wsResource.setCreatedTime(resource.getCreatedTime().getTime()); // wsResource.setDbBasedContentID(resource) wsResource.setDescription(resource.getDescription()); wsResource.setId(resource.getId()); if (resource.getLastModified() != null) wsResource.setLastModified(resource.getLastModified().getTime()); wsResource.setLastUpdaterUserName(resource.getLastUpdaterUserName()); // wsResource.setMatchingSnapshotID(resource.get) wsResource.setMediaType(resource.getMediaType()); // wsResource.setName(resource.) wsResource.setParentPath(resource.getParentPath()); wsResource.setPath(resource.getPath()); // wsResource.setPathID(); wsResource.setPermanentPath(resource.getPermanentPath()); if (!resource.getProperties().isEmpty()) wsResource.setProperties(getPropertiesForWSResource(resource.getProperties())); wsResource.setState(resource.getState()); wsResource.setUUID(resource.getUUID()); // resource.get return wsResource; }
resourceData.setAuthorUserName(child.getAuthorUserName()); resourceData.setDescription(child.getDescription()); resourceData.setAverageRating(registry.getAverageRating(child.getPath()));
String provider = requestContext.getResource().getAuthorUserName();
String provider = requestContext.getResource().getAuthorUserName();
resourceData.setAuthorUserName(child.getAuthorUserName()); resourceData.setDescription(child.getDescription()); resourceData.setAverageRating(registry.getAverageRating(child.getPath()));
MetadataBean bean = new MetadataBean(); bean.setAuthor(resource.getAuthorUserName()); bean.setCollection(resource instanceof Collection); bean.setDescription(resource.getDescription());