Class JCRSpaceDocumentsExposureStorage

java.lang.Object
org.exoplatform.documents.storage.jcr.JCRSpaceDocumentsExposureStorage
All Implemented Interfaces:
org.exoplatform.documents.storage.SpaceDocumentsExposureStorage

@Component public class JCRSpaceDocumentsExposureStorage extends Object implements org.exoplatform.documents.storage.SpaceDocumentsExposureStorage
Reads what a space's documents expose outside the space through a system session: the caller checks, before it calls, that the user may manage the space.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The documents and folders under a root that carry their own access list, formatted with the root's path.
    static final String
    The root of the documents the DLP quarantines
  • Constructor Summary

    Constructors
    Constructor
    Description
    JCRSpaceDocumentsExposureStorage(org.exoplatform.services.jcr.RepositoryService repositoryService, org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator, org.exoplatform.documents.storage.TrashStorage trashStorage)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.exoplatform.services.cms.documents.security.DocumentSpaceGuard
     
    List<org.exoplatform.documents.model.ExposedDocument>
    getSharedOutsideDocuments(org.exoplatform.social.core.space.model.Space space, Predicate<String> isMember, Set<String> everyoneIgnored)
     
    List<org.exoplatform.documents.model.ExposedDocument>
    getSpaceDocuments(org.exoplatform.social.core.space.model.Space space, Collection<String> documentIds)
     
    protected javax.jcr.Session
    getSystemSession(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider)
     
    org.exoplatform.documents.model.ExposedDocument
    prepareLinkRemoval(org.exoplatform.social.core.space.model.Space space, String documentId, boolean removeEveryone)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ACCESS_LISTS_QUERY

      public static final String ACCESS_LISTS_QUERY
      The documents and folders under a root that carry their own access list, formatted with the root's path. The JCR-SQL grammar refuses two jcr:path clauses joined by OR, so each root has a query of its own.
      See Also:
    • QUARANTINE_ROOT

      public static final String QUARANTINE_ROOT
      The root of the documents the DLP quarantines
      See Also:
  • Constructor Details

    • JCRSpaceDocumentsExposureStorage

      public JCRSpaceDocumentsExposureStorage(org.exoplatform.services.jcr.RepositoryService repositoryService, org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator, org.exoplatform.documents.storage.TrashStorage trashStorage)
  • Method Details

    • getSpaceDocuments

      public List<org.exoplatform.documents.model.ExposedDocument> getSpaceDocuments(org.exoplatform.social.core.space.model.Space space, Collection<String> documentIds)
      Specified by:
      getSpaceDocuments in interface org.exoplatform.documents.storage.SpaceDocumentsExposureStorage
    • getSharedOutsideDocuments

      public List<org.exoplatform.documents.model.ExposedDocument> getSharedOutsideDocuments(org.exoplatform.social.core.space.model.Space space, Predicate<String> isMember, Set<String> everyoneIgnored)
      Specified by:
      getSharedOutsideDocuments in interface org.exoplatform.documents.storage.SpaceDocumentsExposureStorage
    • prepareLinkRemoval

      public org.exoplatform.documents.model.ExposedDocument prepareLinkRemoval(org.exoplatform.social.core.space.model.Space space, String documentId, boolean removeEveryone)
      Specified by:
      prepareLinkRemoval in interface org.exoplatform.documents.storage.SpaceDocumentsExposureStorage
    • getDocumentSpaceGuard

      protected org.exoplatform.services.cms.documents.security.DocumentSpaceGuard getDocumentSpaceGuard()
    • getSystemSession

      protected javax.jcr.Session getSystemSession(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider) throws javax.jcr.RepositoryException
      Throws:
      javax.jcr.RepositoryException