com.centrasite.control.repository.util
Class RepositoryUtils
java.lang.Object
com.centrasite.control.repository.util.RepositoryUtils
public class RepositoryUtils
- extends java.lang.Object
Utilities for that part of CentraSite Control dealing with WebDAV
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EXTERNAL_LINK_NAME_SUPPORTING_DOCS_LIB
public static final java.lang.String EXTERNAL_LINK_NAME_SUPPORTING_DOCS_LIB
- See Also:
- Constant Field Values
SUPPORTING_DOCS_ROOT
public static final java.lang.String SUPPORTING_DOCS_ROOT
- See Also:
- Constant Field Values
DEFAULT_ORG_DIR
public static final java.lang.String DEFAULT_ORG_DIR
- See Also:
- Constant Field Values
RepositoryUtils
public RepositoryUtils()
getRepositoryFileContentTypeIcon
public static java.lang.String getRepositoryFileContentTypeIcon(java.lang.String contentType)
- Get the icon corresponding to the given content type
- Parameters:
contentType
-
- Returns:
- relative path to the icon image
createZipFile
public static java.io.ByteArrayOutputStream createZipFile(java.util.Collection<RepositoryObjectItem> items)
throws java.lang.Exception
- Create ZIP file for given collection of WebDAV resources
- Parameters:
items
- Collection of RepositoryObjectItems
- Returns:
- ByteArrayOutputStream containing the ZIP archive
- Throws:
java.lang.Exception