本文整理汇总了Java中org.opencms.util.CmsUUID类的典型用法代码示例。如果您正苦于以下问题:Java CmsUUID类的具体用法?Java CmsUUID怎么用?Java CmsUUID使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
CmsUUID类属于org.opencms.util包,在下文中一共展示了CmsUUID类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: readFolder
import org.opencms.util.CmsUUID; //导入依赖的package包/类
@Override
public CmsFolder readFolder(CmsDbContext dbc, CmsUUID projectId,
String foldername) throws CmsDataAccessException {
if (!isInitialized()) return super.readFolder(dbc, projectId, foldername);
// vfs resources go first
try {
return super.readFolder(dbc, projectId, foldername);
}
catch (CmsDataAccessException cdae) {
if (service.isRfsResource(foldername)) {
return (CmsFolder)service.getResourceByPath(foldername);
}
throw cdae;
}
}
示例2: readParentFolder
import org.opencms.util.CmsUUID; //导入依赖的package包/类
@Override
public CmsFolder readParentFolder(CmsDbContext dbc, CmsUUID projectId,
CmsUUID structureId) throws CmsDataAccessException {
if (!isInitialized()) return super.readParentFolder(dbc, projectId, structureId);
if (service.isRfsStructureId(structureId)) {
CmsResource res = service.getResourceByStructureId(structureId);
String parentPath = CmsResource.getParentFolder(res.getRootPath());
try {
return nextDriver.readFolder(dbc, projectId, parentPath);
}
catch (CmsDataAccessException cdae) {
if (service.isRfsResource(parentPath))
return (CmsFolder)service.getResourceByPath(parentPath);
throw cdae;
}
}
return super.readParentFolder(dbc, projectId, structureId);
}
示例3: readResource
import org.opencms.util.CmsUUID; //导入依赖的package包/类
@Override
public CmsResource readResource(CmsDbContext dbc, CmsUUID projectId,
String filename, boolean includeDeleted) throws CmsDataAccessException {
if (!isInitialized()) return super.readResource(dbc, projectId, filename, includeDeleted);
// vfs resources go first
try {
return super.readResource(dbc, projectId, filename, includeDeleted);
}
catch (CmsDataAccessException cdae) {
if (service.isRfsResource(filename)) {
return service.getResourceByPath(filename);
}
throw cdae;
}
}
示例4: createOnlineContent
import org.opencms.util.CmsUUID; //导入依赖的package包/类
@Override
public void createOnlineContent(CmsDbContext dbc, CmsUUID resourceId,
byte[] contents, int publishTag, boolean keepOnline,
boolean needToUpdateContent) throws CmsDataAccessException {
nextDriver.createOnlineContent(dbc, resourceId, contents, publishTag,
keepOnline, needToUpdateContent);
}
示例5: createPropertyDefinition
import org.opencms.util.CmsUUID; //导入依赖的package包/类
@Override
public CmsPropertyDefinition createPropertyDefinition(CmsDbContext dbc,
CmsUUID projectId, String name, CmsPropertyType type)
throws CmsDataAccessException {
return nextDriver.createPropertyDefinition(dbc, projectId, name, type);
}
示例6: deleteRelations
import org.opencms.util.CmsUUID; //导入依赖的package包/类
@Override
public void deleteRelations(CmsDbContext dbc, CmsUUID projectId,
CmsResource resource, CmsRelationFilter filter)
throws CmsDataAccessException {
nextDriver.deleteRelations(dbc, projectId, resource, filter);
}
示例7: readRelations
import org.opencms.util.CmsUUID; //导入依赖的package包/类
@Override
public List<CmsRelation> readRelations(CmsDbContext dbc, CmsUUID projectId,
CmsResource resource, CmsRelationFilter filter)
throws CmsDataAccessException {
return nextDriver.readRelations(dbc, projectId, resource, filter);
}
示例8: readResource
import org.opencms.util.CmsUUID; //导入依赖的package包/类
@Override
public CmsResource readResource(CmsDbContext dbc, CmsUUID projectId,
CmsUUID structureId, boolean includeDeleted)
throws CmsDataAccessException {
return nextDriver.readResource(dbc, projectId, structureId, includeDeleted);
}
示例9: readResources
import org.opencms.util.CmsUUID; //导入依赖的package包/类
@Override
public List<CmsResource> readResources(CmsDbContext dbc,
CmsUUID currentProject, CmsResourceState state, int mode)
throws CmsDataAccessException {
return nextDriver.readResources(dbc, currentProject, state, mode);
}
示例10: readResourcesWithProperty
import org.opencms.util.CmsUUID; //导入依赖的package包/类
@Override
public List<CmsResource> readResourcesWithProperty(CmsDbContext dbc,
CmsUUID projectId, CmsUUID propertyDefinition, String path, String value)
throws CmsDataAccessException {
return nextDriver.readResourcesWithProperty(dbc, projectId,
propertyDefinition, path, value);
}
示例11: readResourceTree
import org.opencms.util.CmsUUID; //导入依赖的package包/类
@Override
public List<CmsResource> readResourceTree(CmsDbContext dbc,
CmsUUID projectId, String parent, int type, CmsResourceState state,
long startTime, long endTime, long releasedAfter, long releasedBefore,
long expiredAfter, long expiredBefore, int mode)
throws CmsDataAccessException {
return nextDriver.readResourceTree(dbc, projectId, parent, type, state,
startTime, endTime, releasedAfter, releasedBefore, expiredAfter,
expiredBefore, mode);
}
示例12: readSiblings
import org.opencms.util.CmsUUID; //导入依赖的package包/类
@Override
public List<CmsResource> readSiblings(CmsDbContext dbc, CmsUUID projectId,
CmsResource resource, boolean includeDeleted)
throws CmsDataAccessException {
return nextDriver.readSiblings(dbc, projectId, resource, includeDeleted);
}
示例13: transferResource
import org.opencms.util.CmsUUID; //导入依赖的package包/类
@Override
public void transferResource(CmsDbContext dbc, CmsProject project,
CmsResource resource, CmsUUID createdUser, CmsUUID lastModifiedUser)
throws CmsDataAccessException {
nextDriver.transferResource(dbc, project, resource, createdUser,
lastModifiedUser);
}
示例14: isRfsStructureId
import org.opencms.util.CmsUUID; //导入依赖的package包/类
public boolean isRfsStructureId(CmsUUID id) {
for (MappingData md: mappingDatas) {
if (md.getResourcesByStructureId().containsKey(id))
return true;
}
return false;
}
示例15: isRfsResourceId
import org.opencms.util.CmsUUID; //导入依赖的package包/类
public boolean isRfsResourceId(CmsUUID id) {
for (MappingData md: mappingDatas) {
if (md.getResourcesByResourceId().containsKey(id))
return true;
}
return false;
}