本文整理匯總了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;
}