org.wso2.carbon.registry.core.Resource.getLastUpdaterUserName()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(3.0k)|赞(0)|评价(0)|浏览(56)

本文整理了Java中org.wso2.carbon.registry.core.Resource.getLastUpdaterUserName方法的一些代码示例,展示了Resource.getLastUpdaterUserName的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Resource.getLastUpdaterUserName方法的具体详情如下:
包路径:org.wso2.carbon.registry.core.Resource
类名称:Resource
方法名:getLastUpdaterUserName

Resource.getLastUpdaterUserName介绍

暂无

代码示例

代码示例来源:origin: org.wso2.carbon.registry/org.wso2.carbon.registry.cmis

/**
 * @return  the last modifier of the CMIS object represented by this instance
 * @throws RegistryException
 */
protected String getLastModifiedBy() throws RegistryException {
  return resource.getLastUpdaterUserName();
}

代码示例来源:origin: org.wso2.carbon.governance/org.wso2.carbon.mashup.javascript.hostobjects.registry

public String jsGet_lastUpdatedUser() {
  return this.resource.getLastUpdaterUserName();
}

代码示例来源:origin: org.wso2.carbon.registry/org.wso2.carbon.registry.indexing

/**
 *  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));
  }
}

代码示例来源:origin: org.wso2.carbon.registry/org.wso2.carbon.registry.resource

versionPath.setUpdater(versionResource.getLastUpdaterUserName());
Calendar versionLastModified = Calendar.getInstance();
versionLastModified.setTime(versionResource.getLastModified());

代码示例来源:origin: org.wso2.carbon.registry/org.wso2.carbon.registry.ws.client

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;
}

代码示例来源:origin: org.wso2.carbon.registry/org.wso2.carbon.registry.resource

bean.setCollection(resource instanceof Collection);
bean.setDescription(resource.getDescription());
bean.setLastUpdater(resource.getLastUpdaterUserName());
bean.setMediaType(resource.getMediaType());
bean.setPath(resource.getPath());

相关文章