Class CmsRepositorySession

    • Field Summary

      Modifier and Type Field Description
      static java.lang.String EXTERNAL_PREFIX
      Prefix used for encoded property names outside the default property namespace.
      static java.lang.String PROPERTY_NAMESPACE
      Default namespace for OpenCms properties.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void copy​(java.lang.String src, java.lang.String dest, boolean overwrite, boolean shallow)
      Copies the item found at the source path to the destination path.
      void create​(java.lang.String path)
      Creates a new item at the given path.
      static java.lang.String decodeNamespace​(java.lang.String code)
      Decodes the namespace URI.
      void delete​(java.lang.String path)
      Deletes the item at the given path.
      static java.lang.String encodeNamespace​(java.lang.String data)
      Encodes the namespace URI.
      boolean exists​(java.lang.String path)
      Returns if an item exists at the given path.
      I_CmsRepositoryItem getItem​(java.lang.String path)
      Returns the item found at the given path.
      CmsRepositoryLockInfo getLock​(java.lang.String path)
      Returns the lock for the resource at the given path.
      java.util.Map<CmsPropertyName,​java.lang.String> getProperties​(java.lang.String path)
      Gets the properties for the given path.
      protected boolean isFiltered​(java.lang.String name)
      Adds the site root to the path name and checks then if the path is filtered.
      java.util.List<I_CmsRepositoryItem> list​(java.lang.String path)
      Returns a list with all items found directly in the given path.
      boolean lock​(java.lang.String path, CmsRepositoryLockInfo lock)
      Creates a new lock on the item at the path with the given information in the lock info.
      void move​(java.lang.String src, java.lang.String dest, boolean overwrite)
      Moves an item from a source path to a destination path.
      void save​(java.lang.String path, inputStream, boolean overwrite)
      Saves an item at the given path.
      void unlock​(java.lang.String path)
      Unlocks the item found at the path.
      void updateProperties​(java.lang.String path, java.util.Map<CmsPropertyName,​java.lang.String> properties)
      Updates the properties for the given path.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait