Example usage for com.liferay.portal.kernel.webdav WebDAVUtil getStorageTokens

List of usage examples for com.liferay.portal.kernel.webdav WebDAVUtil getStorageTokens

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.webdav WebDAVUtil getStorageTokens.

Prototype

public static Collection<String> getStorageTokens() 

Source Link

Usage

From source file:com.liferay.compat.servlet.CompatServletContextListener.java

License:Open Source License

protected void updateWebDAVStorages() throws Exception {
    Collection<String> tokens = WebDAVUtil.getStorageTokens();

    if (_log.isInfoEnabled()) {
        _log.info("Retrieved " + tokens.size() + " WebDAV storage tokens");
    }//from  w w w . j a v  a 2s.  c  o  m

    for (String token : tokens) {
        updateWebDAVStorage(token);
    }
}