public class SpaceUtil extends Object
| Constructor and Description |
|---|
SpaceUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
formatAclDisplayName(String key) |
protected static boolean |
hasRole(org.springframework.security.core.Authentication authentication,
String role) |
static boolean |
isAdmin(org.springframework.security.core.Authentication authentication) |
protected static boolean |
isSnapshotProvider(org.duracloud.client.ContentStore store) |
static void |
populateContentItem(String duradminBaseURL,
ContentItem contentItem,
String spaceId,
String contentId,
org.duracloud.client.ContentStore store,
org.springframework.security.core.Authentication authentication) |
static Space |
populateSpace(Space space,
org.duracloud.domain.Space cloudSpace,
org.duracloud.client.ContentStore contentStore,
org.springframework.security.core.Authentication authentication) |
static org.duracloud.common.model.AclType |
resolveCallerAcl(String spaceId,
org.duracloud.client.ContentStore store,
Map<String,org.duracloud.common.model.AclType> acls,
org.springframework.security.core.Authentication authentication) |
static org.duracloud.common.model.AclType |
resolveCallerAcl(String spaceId,
org.duracloud.client.ContentStore store,
Map<String,org.duracloud.common.model.AclType> acls,
org.springframework.security.core.Authentication authentication,
Boolean snapshotInProgress) |
static void |
sortAcls(List<Acl> acls) |
static void |
streamContent(org.duracloud.client.ContentStore store,
javax.servlet.http.HttpServletResponse response,
String spaceId,
String contentId) |
static void |
streamToResponse(InputStream is,
javax.servlet.http.HttpServletResponse response,
String mimetype,
String contentLength) |
static List<Acl> |
toAclList(Map<String,org.duracloud.common.model.AclType> spaceACLs) |
public static Space populateSpace(Space space, org.duracloud.domain.Space cloudSpace, org.duracloud.client.ContentStore contentStore, org.springframework.security.core.Authentication authentication) throws org.duracloud.error.ContentStoreException
org.duracloud.error.ContentStoreExceptionpublic static void populateContentItem(String duradminBaseURL, ContentItem contentItem, String spaceId, String contentId, org.duracloud.client.ContentStore store, org.springframework.security.core.Authentication authentication) throws org.duracloud.error.ContentStoreException
org.duracloud.error.ContentStoreExceptionpublic static void streamContent(org.duracloud.client.ContentStore store,
javax.servlet.http.HttpServletResponse response,
String spaceId,
String contentId)
throws org.duracloud.error.ContentStoreException,
IOException
org.duracloud.error.ContentStoreExceptionIOExceptionpublic static void streamToResponse(InputStream is, javax.servlet.http.HttpServletResponse response, String mimetype, String contentLength) throws org.duracloud.error.ContentStoreException, IOException
org.duracloud.error.ContentStoreExceptionIOExceptionpublic static org.duracloud.common.model.AclType resolveCallerAcl(String spaceId, org.duracloud.client.ContentStore store, Map<String,org.duracloud.common.model.AclType> acls, org.springframework.security.core.Authentication authentication) throws org.duracloud.error.ContentStoreException
org.duracloud.error.ContentStoreExceptionpublic static org.duracloud.common.model.AclType resolveCallerAcl(String spaceId, org.duracloud.client.ContentStore store, Map<String,org.duracloud.common.model.AclType> acls, org.springframework.security.core.Authentication authentication, Boolean snapshotInProgress) throws org.duracloud.error.ContentStoreException
org.duracloud.error.ContentStoreExceptionprotected static boolean isSnapshotProvider(org.duracloud.client.ContentStore store)
public static boolean isAdmin(org.springframework.security.core.Authentication authentication)
protected static boolean hasRole(org.springframework.security.core.Authentication authentication,
String role)
public static List<Acl> toAclList(Map<String,org.duracloud.common.model.AclType> spaceACLs)
Copyright © 2009–2017 DuraSpace. All rights reserved.