本文整理了Java中org.wso2.carbon.registry.core.Resource.getAuthorUserName
方法的一些代码示例,展示了Resource.getAuthorUserName
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Resource.getAuthorUserName
方法的具体详情如下:
包路径:org.wso2.carbon.registry.core.Resource
类名称:Resource
方法名:getAuthorUserName
暂无
代码示例来源:origin: org.wso2.carbon.registry/org.wso2.carbon.registry.cmis
protected String getCreatedBy() throws RegistryException {
return resource.getAuthorUserName();
}
代码示例来源:origin: org.wso2.carbon.governance/org.wso2.carbon.mashup.javascript.hostobjects.registry
public String jsGet_author() {
return this.resource.getAuthorUserName();
}
代码示例来源:origin: org.wso2.carbon.registry/org.wso2.carbon.registry.indexing
/**
* 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));
}
}
代码示例来源:origin: org.wso2.carbon.registry/org.wso2.carbon.registry.indexing
resourceData.setAuthorUserName(child.getAuthorUserName());
resourceData.setDescription(child.getDescription());
resourceData.setAverageRating(registry.getAverageRating(child.getPath()));
代码示例来源:origin: org.wso2.carbon.registry/org.wso2.carbon.registry.indexing
resourceData.setAuthorUserName(child.getAuthorUserName());
resourceData.setDescription(child.getDescription());
resourceData.setAverageRating(registry.getAverageRating(child.getPath()));
代码示例来源:origin: org.wso2.carbon.registry/org.wso2.carbon.registry.extensions
serviceResourcePath);
resource.setProperty(RegistryConstants.REGISTRY_AUTHOR,
resource.getAuthorUserName());
resource.setProperty(
RegistryConstants.REGISTRY_ACTUAL_PATH,
代码示例来源:origin: org.wso2.carbon.registry/org.wso2.carbon.registry.indexing
resourceData.setAuthorUserName(child.getAuthorUserName());
resourceData.setDescription(child.getDescription());
resourceData.setAverageRating(registry
代码示例来源: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
resourceData.setAuthorUserName(child.getAuthorUserName());
resourceData.setDescription(child.getDescription());
resourceData.setAverageRating(registry.getAverageRating(child.getPath()));
代码示例来源:origin: org.wso2.carbon.appmgt/org.wso2.carbon.appmgt.impl
String provider = requestContext.getResource().getAuthorUserName();
代码示例来源:origin: org.wso2.carbon.appmgt/org.wso2.carbon.appmgt.impl
String provider = requestContext.getResource().getAuthorUserName();
代码示例来源:origin: org.wso2.carbon.registry/org.wso2.carbon.registry.indexing
resourceData.setAuthorUserName(child.getAuthorUserName());
resourceData.setDescription(child.getDescription());
resourceData.setAverageRating(registry.getAverageRating(child.getPath()));
代码示例来源:origin: org.wso2.carbon.registry/org.wso2.carbon.registry.resource
MetadataBean bean = new MetadataBean();
bean.setAuthor(resource.getAuthorUserName());
bean.setCollection(resource instanceof Collection);
bean.setDescription(resource.getDescription());
内容来源于网络,如有侵权,请联系作者删除!