/** * @return the last modifier of the CMIS object represented by this instance * @throws RegistryException */ protected String getLastModifiedBy() throws RegistryException { return resource.getLastUpdaterUserName(); }
public String jsGet_lastUpdatedUser() { return this.resource.getLastUpdaterUserName(); }
/** * Method to set the resource last updater to IndexDocument attribute list. */ private void addLastUpdateUser() { // Set the last update user String lastUpdatedBy = resource.getLastUpdaterUserName(); if (lastUpdatedBy != null && !StringUtils.isEmpty(lastUpdatedBy)) { attributes.put(IndexingConstants.FIELD_LAST_UPDATED_BY, Arrays.asList(lastUpdatedBy)); } }
versionPath.setUpdater(versionResource.getLastUpdaterUserName()); Calendar versionLastModified = Calendar.getInstance(); versionLastModified.setTime(versionResource.getLastModified());
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; }
bean.setCollection(resource instanceof Collection); bean.setDescription(resource.getDescription()); bean.setLastUpdater(resource.getLastUpdaterUserName()); bean.setMediaType(resource.getMediaType()); bean.setPath(resource.getPath());