Class EntityBuilder
java.lang.Object
org.exoplatform.documents.rest.util.EntityBuilder
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic List<BreadCrumbItemEntity>getBreadCrumbs(org.exoplatform.documents.service.DocumentFileService documentFileService, org.exoplatform.documents.model.AbstractNode node, long authenticatedUserId) static org.exoplatform.social.core.identity.model.IdentitygetOwnerIdentityFromNodePath(String path, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.space.spi.SpaceService spaceService) retrieveMetadataItems(Map<String, List<org.exoplatform.social.metadata.model.MetadataItem>> metadatas, long authentiatedUserId) static List<BreadCrumbItemEntity>toBreadCrumbItemEntities(List<org.exoplatform.documents.model.BreadCrumbItem> folders) static List<AbstractNodeEntity>toDocumentItemEntities(org.exoplatform.documents.service.DocumentFileService documentFileService, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.space.spi.SpaceService spaceService, org.exoplatform.social.metadata.MetadataService metadataService, List<org.exoplatform.documents.model.AbstractNode> documents, String expand, long authenticatedUserId) static AbstractNodeEntitytoDocumentItemEntity(org.exoplatform.documents.service.DocumentFileService documentFileService, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.space.spi.SpaceService spaceService, org.exoplatform.social.metadata.MetadataService metadataService, org.exoplatform.documents.model.AbstractNode document, String expand, long authenticatedUserId) static FileNodeEntitytoFileEntity(org.exoplatform.documents.service.DocumentFileService documentFileService, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.space.spi.SpaceService spaceService, org.exoplatform.social.metadata.MetadataService metadataService, org.exoplatform.documents.model.FileNode file, List<String> expandProperties, long authenticatedUserId) static FolderNodeEntitytoFolderEntity(org.exoplatform.documents.service.DocumentFileService documentFileService, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.space.spi.SpaceService spaceService, org.exoplatform.social.metadata.MetadataService metadataService, org.exoplatform.documents.model.FolderNode folder, List<String> expandProperties, long authenticatedUser) static List<FullTreeItemEntity>toFullTreeItemEntities(List<org.exoplatform.documents.model.FullTreeItem> folders) static IdentityEntitytoIdentityEntity(org.exoplatform.social.core.identity.model.Identity identity, org.exoplatform.social.core.space.spi.SpaceService spaceService) static IdentityEntitytoIdentityEntity(org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.space.spi.SpaceService spaceService, long identityId) static org.exoplatform.documents.model.NodePermissiontoNodePermission(AbstractNodeEntity node, org.exoplatform.documents.service.DocumentFileService documentFileService, org.exoplatform.social.core.space.spi.SpaceService spaceService, org.exoplatform.social.core.manager.IdentityManager identityManager) static FileVersionsEntitytoVersionEntities(List<org.exoplatform.documents.model.FileVersion> versions) static FileVersionEntitytoVersionEntity(org.exoplatform.documents.model.FileVersion fileVersion)
-
Field Details
-
USER_PRIVATE_ROOT_NODE
- See Also:
-
USER_PUBLIC_ROOT_NODE
- See Also:
-
GROUP_PROVIDER_ID
- See Also:
-
-
Method Details
-
toDocumentItemEntities
public static List<AbstractNodeEntity> toDocumentItemEntities(org.exoplatform.documents.service.DocumentFileService documentFileService, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.space.spi.SpaceService spaceService, org.exoplatform.social.metadata.MetadataService metadataService, List<org.exoplatform.documents.model.AbstractNode> documents, String expand, long authenticatedUserId) -
toDocumentItemEntity
public static AbstractNodeEntity toDocumentItemEntity(org.exoplatform.documents.service.DocumentFileService documentFileService, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.space.spi.SpaceService spaceService, org.exoplatform.social.metadata.MetadataService metadataService, org.exoplatform.documents.model.AbstractNode document, String expand, long authenticatedUserId) -
toFileEntity
public static FileNodeEntity toFileEntity(org.exoplatform.documents.service.DocumentFileService documentFileService, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.space.spi.SpaceService spaceService, org.exoplatform.social.metadata.MetadataService metadataService, org.exoplatform.documents.model.FileNode file, List<String> expandProperties, long authenticatedUserId) -
toVersionEntities
public static FileVersionsEntity toVersionEntities(List<org.exoplatform.documents.model.FileVersion> versions) -
toVersionEntity
public static FileVersionEntity toVersionEntity(org.exoplatform.documents.model.FileVersion fileVersion) -
toFolderEntity
public static FolderNodeEntity toFolderEntity(org.exoplatform.documents.service.DocumentFileService documentFileService, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.space.spi.SpaceService spaceService, org.exoplatform.social.metadata.MetadataService metadataService, org.exoplatform.documents.model.FolderNode folder, List<String> expandProperties, long authenticatedUser) -
toBreadCrumbItemEntities
public static List<BreadCrumbItemEntity> toBreadCrumbItemEntities(List<org.exoplatform.documents.model.BreadCrumbItem> folders) -
toFullTreeItemEntities
public static List<FullTreeItemEntity> toFullTreeItemEntities(List<org.exoplatform.documents.model.FullTreeItem> folders) -
toNodePermission
public static org.exoplatform.documents.model.NodePermission toNodePermission(AbstractNodeEntity node, org.exoplatform.documents.service.DocumentFileService documentFileService, org.exoplatform.social.core.space.spi.SpaceService spaceService, org.exoplatform.social.core.manager.IdentityManager identityManager) -
getOwnerIdentityFromNodePath
public static org.exoplatform.social.core.identity.model.Identity getOwnerIdentityFromNodePath(String path, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.space.spi.SpaceService spaceService) -
retrieveMetadataItems
-
getBreadCrumbs
public static List<BreadCrumbItemEntity> getBreadCrumbs(org.exoplatform.documents.service.DocumentFileService documentFileService, org.exoplatform.documents.model.AbstractNode node, long authenticatedUserId) -
toIdentityEntity
public static IdentityEntity toIdentityEntity(org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.space.spi.SpaceService spaceService, long identityId) -
toIdentityEntity
public static IdentityEntity toIdentityEntity(org.exoplatform.social.core.identity.model.Identity identity, org.exoplatform.social.core.space.spi.SpaceService spaceService)
-