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 -
Constructor Summary
ConstructorsConstructorDescriptionJCRSpaceDocumentsExposureStorage(org.exoplatform.services.jcr.RepositoryService repositoryService, org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator, org.exoplatform.documents.storage.TrashStorage trashStorage) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.exoplatform.services.cms.documents.security.DocumentSpaceGuardList<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.SessiongetSystemSession(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider) org.exoplatform.documents.model.ExposedDocumentprepareLinkRemoval(org.exoplatform.social.core.space.model.Space space, String documentId, boolean removeEveryone)
-
Field Details
-
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 twojcr:pathclauses joined by OR, so each root has a query of its own.- See Also:
-
QUARANTINE_ROOT
-
-
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:
getSpaceDocumentsin interfaceorg.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:
prepareLinkRemovalin interfaceorg.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
-