public class SpaceUtil extends Object
Constructor and Description |
---|
SpaceUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
formatAclDisplayName(String key) |
static boolean |
isAdmin(org.springframework.security.Authentication authentication) |
static void |
populateContentItem(String duradminBaseURL,
ContentItem contentItem,
String spaceId,
String contentId,
ContentStore store,
ServicesManager servicesManager,
org.springframework.security.Authentication authentication) |
static Space |
populateSpace(Space space,
Space cloudSpace,
ContentStore contentStore,
org.springframework.security.Authentication authentication) |
static AclType |
resolveCallerAcl(Map<String,AclType> acls,
org.springframework.security.Authentication authentication) |
static void |
sortAcls(List<Acl> acls) |
static void |
streamContent(ContentStore store,
javax.servlet.http.HttpServletResponse response,
String spaceId,
String contentId) |
static List<Acl> |
toAclList(Map<String,AclType> spaceACLs) |
public static Space populateSpace(Space space, Space cloudSpace, ContentStore contentStore, org.springframework.security.Authentication authentication) throws ContentStoreException
ContentStoreException
public static void populateContentItem(String duradminBaseURL, ContentItem contentItem, String spaceId, String contentId, ContentStore store, ServicesManager servicesManager, org.springframework.security.Authentication authentication) throws ContentStoreException
ContentStoreException
public static void streamContent(ContentStore store, javax.servlet.http.HttpServletResponse response, String spaceId, String contentId) throws ContentStoreException, IOException
ContentStoreException
IOException
public static AclType resolveCallerAcl(Map<String,AclType> acls, org.springframework.security.Authentication authentication) throws ContentStoreException
ContentStoreException
public static boolean isAdmin(org.springframework.security.Authentication authentication)
Copyright © 2009-2013 DuraSpace. All Rights Reserved.