当前位置: 首页>>代码示例>>Java>>正文


Java CmsUUID类代码示例

本文整理汇总了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;
  }
}
 
开发者ID:stephan-hartmann,项目名称:opencms-rfs-driver,代码行数:18,代码来源:RfsDriver.java

示例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);
}
 
开发者ID:stephan-hartmann,项目名称:opencms-rfs-driver,代码行数:23,代码来源:RfsDriver.java

示例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;
  }
}
 
开发者ID:stephan-hartmann,项目名称:opencms-rfs-driver,代码行数:19,代码来源:RfsDriver.java

示例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);
}
 
开发者ID:stephan-hartmann,项目名称:opencms-rfs-driver,代码行数:8,代码来源:VfsDriverWrapper.java

示例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);
}
 
开发者ID:stephan-hartmann,项目名称:opencms-rfs-driver,代码行数:8,代码来源:VfsDriverWrapper.java

示例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);
}
 
开发者ID:stephan-hartmann,项目名称:opencms-rfs-driver,代码行数:8,代码来源:VfsDriverWrapper.java

示例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);
}
 
开发者ID:stephan-hartmann,项目名称:opencms-rfs-driver,代码行数:8,代码来源:VfsDriverWrapper.java

示例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);
}
 
开发者ID:stephan-hartmann,项目名称:opencms-rfs-driver,代码行数:8,代码来源:VfsDriverWrapper.java

示例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);
}
 
开发者ID:stephan-hartmann,项目名称:opencms-rfs-driver,代码行数:8,代码来源:VfsDriverWrapper.java

示例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);
}
 
开发者ID:stephan-hartmann,项目名称:opencms-rfs-driver,代码行数:9,代码来源:VfsDriverWrapper.java

示例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);
}
 
开发者ID:stephan-hartmann,项目名称:opencms-rfs-driver,代码行数:12,代码来源:VfsDriverWrapper.java

示例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);
}
 
开发者ID:stephan-hartmann,项目名称:opencms-rfs-driver,代码行数:8,代码来源:VfsDriverWrapper.java

示例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);
}
 
开发者ID:stephan-hartmann,项目名称:opencms-rfs-driver,代码行数:9,代码来源:VfsDriverWrapper.java

示例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;
}
 
开发者ID:stephan-hartmann,项目名称:opencms-rfs-driver,代码行数:8,代码来源:RfsDriverService.java

示例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;
}
 
开发者ID:stephan-hartmann,项目名称:opencms-rfs-driver,代码行数:8,代码来源:RfsDriverService.java


注:本文中的org.opencms.util.CmsUUID类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。