本文整理了Java中org.wso2.carbon.registry.core.Registry.getVersions
方法的一些代码示例,展示了Registry.getVersions
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Registry.getVersions
方法的具体详情如下:
包路径:org.wso2.carbon.registry.core.Registry
类名称:Registry
方法名:getVersions
暂无
代码示例来源:origin: org.wso2.carbon.registry/org.wso2.carbon.registry.cmis
@Override
protected boolean isLatestVersion() throws RegistryException {
String[] versions = getRepository().getVersions(getNode().getPath());
if(versions.length != 0) {
return versions[0].equals(version);
} else {
return getNode().getPath().equals(version);
}
}
代码示例来源:origin: org.wso2.carbon.registry/org.wso2.carbon.registry.cmis
public RegistryDocument getGregNode(Resource node) throws RegistryException {
String version = node.getPath();
String[] versions = repository.getVersions(node.getPath());
if(versions !=null && versions.length != 0){
version = versions[0];
}
return new RegistryVersion(repository, node, version, typeManager, pathManager);
}
代码示例来源:origin: org.wso2.carbon.registry/org.wso2.carbon.registry.cmis
String[] versionArray = getRepository().getVersions(getNode().getPath());
List<String> versions;
if(versionArray.length == 0){
代码示例来源:origin: org.wso2.carbon.registry/org.wso2.carbon.registry.cmis
/**
* @return Id of the version representing the base of this versions series
* @throws RegistryException
*/
protected String getBaseNodeId() throws RegistryException {
String[] versions = getRepository().getVersions(getNode().getPath());
return (versions.length != 0 ? versions[versions.length-1] : getNode().getPath());
}
代码示例来源:origin: org.wso2.carbon.registry/org.wso2.carbon.registry.cmis
String pathOfLatestVersion = repository.getVersions(pathToGet)[0];
代码示例来源:origin: org.wso2.carbon.identity/org.wso2.carbon.identity.entitlement
if (registry.resourceExists(path) && !isNew) {
resource = registry.get(path);
String[] versions = registry.getVersions(path);
代码示例来源:origin: wso2/carbon-identity-framework
if (registry.resourceExists(path) && !isNew) {
resource = registry.get(path);
String[] versions = registry.getVersions(path);
代码示例来源:origin: org.wso2.carbon.identity.framework/org.wso2.carbon.identity.entitlement
if (registry.resourceExists(path) && !isNew) {
resource = registry.get(path);
String[] versions = registry.getVersions(path);
代码示例来源:origin: org.wso2.carbon.registry/org.wso2.carbon.registry.cmis
try {
Resource node = getNode();
String[] versions = getRepository().getVersions(node.getPath());
if(versions == null){
throw new CmisObjectNotFoundException("No versions exist");
代码示例来源:origin: org.wso2.carbon.registry/org.wso2.carbon.registry.cmis
String[] versions = getRepository().getVersions(path);
if(versions!=null){
for(String version: versions){
代码示例来源:origin: org.wso2.carbon.registry/org.wso2.carbon.registry.cmis
/**
* See CMIS 1.0 section 2.2.7.3 checkedIn
*
* @throws CmisRuntimeException
*/
public RegistryVersion checkin(Properties properties, ContentStream contentStream, String checkinComment) {
Resource node = getNode();
try {
if (!isCheckedOut(node)) {
throw new CmisStorageException("Not checked out: " + node.getId());
}
if (properties != null && !properties.getPropertyList().isEmpty()) {
updateProperties(properties);
}
if (contentStream != null) {
setContentStream(contentStream, true);
}
// todo handle checkinComment
Resource resource = checkin();
String pathOfLatestVersion = getRepository().getVersions(resource.getPath())[0];
return new RegistryVersion(getRepository(), resource, pathOfLatestVersion, typeManager, pathManager);
}
catch (RegistryException e) {
String msg = "Failed checkin";
log.error(msg, e);
throw new CmisRuntimeException(msg, e);
}
}
代码示例来源:origin: org.wso2.carbon.registry/org.wso2.carbon.registry.cmis
String pathOfLatestVersion = getRepository().getVersions(destPath)[0];
return getRepository().get(pathOfLatestVersion);
} else{
内容来源于网络,如有侵权,请联系作者删除!