Liferay 7.0-ce-m2

com.liferay.portlet.mobiledevicerules.util.test
Class MDRTestUtil

java.lang.Object
  extended by com.liferay.portlet.mobiledevicerules.util.test.MDRTestUtil

public class MDRTestUtil
extends Object


Constructor Summary
MDRTestUtil()
           
 
Method Summary
static MDRAction addAction(long ruleGroupInstanceId)
           
static MDRAction addAction(long ruleGroupInstanceId, Map<Locale,String> nameMap, Map<Locale,String> descriptionMap, String type, String typeSettings)
           
static MDRRule addRule(long ruleGroupId)
           
static MDRRule addRule(long ruleGroupId, Map<Locale,String> nameMap, Map<Locale,String> descriptionMap, String type, String typeSettings)
           
static MDRRuleGroup addRuleGroup(long groupId)
           
static MDRRuleGroup addRuleGroup(long groupId, Map<Locale,String> nameMap, Map<Locale,String> descriptionMap)
           
static MDRRuleGroupInstance addRuleGroupInstance(long groupId, long ruleGroupId)
           
static MDRRuleGroupInstance addRuleGroupInstance(long groupId, String className, long classPK, long ruleGroupId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MDRTestUtil

public MDRTestUtil()
Method Detail

addAction

public static MDRAction addAction(long ruleGroupInstanceId)
                           throws Exception
Throws:
Exception

addAction

public static MDRAction addAction(long ruleGroupInstanceId,
                                  Map<Locale,String> nameMap,
                                  Map<Locale,String> descriptionMap,
                                  String type,
                                  String typeSettings)
                           throws Exception
Throws:
Exception

addRule

public static MDRRule addRule(long ruleGroupId)
                       throws Exception
Throws:
Exception

addRule

public static MDRRule addRule(long ruleGroupId,
                              Map<Locale,String> nameMap,
                              Map<Locale,String> descriptionMap,
                              String type,
                              String typeSettings)
                       throws Exception
Throws:
Exception

addRuleGroup

public static MDRRuleGroup addRuleGroup(long groupId)
                                 throws Exception
Throws:
Exception

addRuleGroup

public static MDRRuleGroup addRuleGroup(long groupId,
                                        Map<Locale,String> nameMap,
                                        Map<Locale,String> descriptionMap)
                                 throws Exception
Throws:
Exception

addRuleGroupInstance

public static MDRRuleGroupInstance addRuleGroupInstance(long groupId,
                                                        long ruleGroupId)
                                                 throws Exception
Throws:
Exception

addRuleGroupInstance

public static MDRRuleGroupInstance addRuleGroupInstance(long groupId,
                                                        String className,
                                                        long classPK,
                                                        long ruleGroupId)
                                                 throws Exception
Throws:
Exception

Liferay 7.0-ce-m2