Example usage for com.liferay.portal.kernel.webdav.methods MethodFactoryRegistryUtil registerMethodFactory

List of usage examples for com.liferay.portal.kernel.webdav.methods MethodFactoryRegistryUtil registerMethodFactory

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.webdav.methods MethodFactoryRegistryUtil registerMethodFactory.

Prototype

public static void registerMethodFactory(MethodFactory methodFactory) 

Source Link

Usage

From source file:it.smc.calendar.sync.listener.CalendarSyncServletContextListener.java

License:Open Source License

@Override
protected void doPortalInit() throws Exception {

    // Register CalDAVStorage

    _storage = new LiferayCalDAVStorageImpl();
    _storage.setToken(WebKeys.CALDAV_TOKEN);

    WebDAVUtil.addStorage(_storage);//w w w . j a  va2  s  .c o m

    // Register MethodFactory

    _methodFactory = new CalDAVMethodFactory();

    MethodFactoryRegistryUtil.registerMethodFactory(_methodFactory);
}