Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.theme.webwidgets
Class Manager

java.lang.Object
  extended by org.nuxeo.theme.webwidgets.Manager

public class Manager
extends Object


Method Summary
static String addPanelDecoration(String decorationName, String mode, String regionName, String content)
           
static void addWidget(int area, String widgetTypeName, int order)
           
static AreaFragment getAreaById(int area)
           
static List<String> getDecorationNames()
           
static DecorationType getDecorationType(String name)
           
static String getPanelData(int area, String mode)
           
static Provider getProvider(String name)
           
static List<String> getProviderNames()
           
static ProviderType getProviderType(String name)
           
static Service getService()
           
static WidgetData getWidgetData(Provider provider, Widget widget, String dataName)
           
static WidgetData getWidgetData(String providerName, String uid, String dataName)
           
static String getWidgetDataContent(String providerName, String uid, String dataName)
           
static String getWidgetDataInfo(String providerName, String uid, String dataName)
           
static Map<String,String> getWidgetDecoration(String decorationName)
           
static byte[] getWidgetIconContent(String widgetTypeName)
           
static String getWidgetIconPath(String widgetTypeName)
           
static Map<String,String> getWidgetPreferences(Provider provider, Widget widget)
           
static WidgetState getWidgetState(Provider provider, Widget widget)
           
static WidgetType getWidgetType(String widgetTypeName)
           
static String moveWidget(int srcArea, String srcUid, int destArea, int destOrder)
           
static void removeWidget(String providerName, String uid)
           
static void setWidgetData(Provider provider, Widget widget, String dataName, WidgetData data)
           
static void setWidgetData(String providerName, String uid, String dataName, WidgetData data)
           
static void setWidgetPreference(String providerName, String uid, String name, String value)
           
static void setWidgetPreferences(Provider provider, Widget widget, Map<String,String> preferences)
           
static void setWidgetState(Provider provider, Widget widget, WidgetState state)
           
static void setWidgetState(String providerName, String uid, String stateName)
           
static void updateWidgetPreferences(String providerName, String uid, Map<String,String> preferences)
           
static String uploadFile(HttpServletRequest request, String providerName, String uid, String dataName)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getService

public static Service getService()

getProviderNames

public static List<String> getProviderNames()

getProvider

public static Provider getProvider(String name)
                            throws WidgetException
Throws:
WidgetException

getAreaById

public static AreaFragment getAreaById(int area)
                                throws WidgetException
Throws:
WidgetException

getProviderType

public static ProviderType getProviderType(String name)

getDecorationNames

public static List<String> getDecorationNames()

getDecorationType

public static DecorationType getDecorationType(String name)

getWidgetType

public static WidgetType getWidgetType(String widgetTypeName)

getWidgetDecoration

public static Map<String,String> getWidgetDecoration(String decorationName)

addPanelDecoration

public static String addPanelDecoration(String decorationName,
                                        String mode,
                                        String regionName,
                                        String content)

addWidget

public static void addWidget(int area,
                             String widgetTypeName,
                             int order)
                      throws WidgetException,
                             ProviderException
Throws:
WidgetException
ProviderException

moveWidget

public static String moveWidget(int srcArea,
                                String srcUid,
                                int destArea,
                                int destOrder)
                         throws WidgetException,
                                ProviderException
Throws:
WidgetException
ProviderException

removeWidget

public static void removeWidget(String providerName,
                                String uid)
                         throws WidgetException,
                                ProviderException
Throws:
WidgetException
ProviderException

getWidgetPreferences

public static Map<String,String> getWidgetPreferences(Provider provider,
                                                      Widget widget)
                                               throws ProviderException
Throws:
ProviderException

setWidgetPreferences

public static void setWidgetPreferences(Provider provider,
                                        Widget widget,
                                        Map<String,String> preferences)
                                 throws ProviderException
Throws:
ProviderException

updateWidgetPreferences

public static void updateWidgetPreferences(String providerName,
                                           String uid,
                                           Map<String,String> preferences)
                                    throws WidgetException,
                                           ProviderException
Throws:
WidgetException
ProviderException

setWidgetPreference

public static void setWidgetPreference(String providerName,
                                       String uid,
                                       String name,
                                       String value)
                                throws WidgetException,
                                       ProviderException
Throws:
WidgetException
ProviderException

setWidgetState

public static void setWidgetState(Provider provider,
                                  Widget widget,
                                  WidgetState state)
                           throws ProviderException
Throws:
ProviderException

setWidgetState

public static void setWidgetState(String providerName,
                                  String uid,
                                  String stateName)
                           throws WidgetException,
                                  ProviderException
Throws:
WidgetException
ProviderException

getWidgetState

public static WidgetState getWidgetState(Provider provider,
                                         Widget widget)
                                  throws ProviderException
Throws:
ProviderException

setWidgetData

public static void setWidgetData(String providerName,
                                 String uid,
                                 String dataName,
                                 WidgetData data)
                          throws WidgetException,
                                 ProviderException
Throws:
WidgetException
ProviderException

setWidgetData

public static void setWidgetData(Provider provider,
                                 Widget widget,
                                 String dataName,
                                 WidgetData data)
                          throws ProviderException
Throws:
ProviderException

getWidgetData

public static WidgetData getWidgetData(String providerName,
                                       String uid,
                                       String dataName)
                                throws WidgetException,
                                       ProviderException
Throws:
WidgetException
ProviderException

getWidgetData

public static WidgetData getWidgetData(Provider provider,
                                       Widget widget,
                                       String dataName)
                                throws ProviderException
Throws:
ProviderException

uploadFile

public static String uploadFile(HttpServletRequest request,
                                String providerName,
                                String uid,
                                String dataName)
                         throws WidgetException,
                                ProviderException
Throws:
WidgetException
ProviderException

getWidgetDataContent

public static String getWidgetDataContent(String providerName,
                                          String uid,
                                          String dataName)
                                   throws WidgetException,
                                          ProviderException
Throws:
WidgetException
ProviderException

getWidgetDataInfo

public static String getWidgetDataInfo(String providerName,
                                       String uid,
                                       String dataName)
                                throws WidgetException,
                                       ProviderException
Throws:
WidgetException
ProviderException

getPanelData

public static String getPanelData(int area,
                                  String mode)
                           throws WidgetException,
                                  ProviderException
Throws:
WidgetException
ProviderException

getWidgetIconPath

public static String getWidgetIconPath(String widgetTypeName)

getWidgetIconContent

public static byte[] getWidgetIconContent(String widgetTypeName)

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.