com.liferay.portal.service.test
Class ServiceTestUtil
java.lang.Object
com.liferay.portal.service.test.ServiceTestUtil
public class ServiceTestUtil
- extends Object
|
Method Summary |
static void |
addResourcePermission(Role role,
String resourceName,
int scope,
String primKey,
String actionId)
Deprecated. As of 7.0.0 |
static void |
addResourcePermission(String roleName,
String resourceName,
int scope,
String primKey,
String actionId)
Deprecated. As of 7.0.0 |
static Role |
addRole(String roleName,
int roleType)
Deprecated. As of 7.0.0 |
static Role |
addRole(String roleName,
int roleType,
String resourceName,
int scope,
String primKey,
String actionId)
Deprecated. As of 7.0.0 |
static void |
initMainServletServices()
|
static void |
initPermissions()
|
static void |
initServices()
|
static void |
initStaticServices()
|
static Date |
newDate()
|
static Date |
newDate(int month,
int day,
int year)
|
static void |
setUser(User user)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RETRY_COUNT
public static final int RETRY_COUNT
- See Also:
- Constant Field Values
THREAD_COUNT
public static final int THREAD_COUNT
- See Also:
- Constant Field Values
ServiceTestUtil
public ServiceTestUtil()
addResourcePermission
@Deprecated
public static void addResourcePermission(Role role,
String resourceName,
int scope,
String primKey,
String actionId)
throws Exception
- Deprecated. As of 7.0.0
- Throws:
Exception
addResourcePermission
@Deprecated
public static void addResourcePermission(String roleName,
String resourceName,
int scope,
String primKey,
String actionId)
throws Exception
- Deprecated. As of 7.0.0
- Throws:
Exception
addRole
@Deprecated
public static Role addRole(String roleName,
int roleType)
throws Exception
- Deprecated. As of 7.0.0
- Throws:
Exception
addRole
@Deprecated
public static Role addRole(String roleName,
int roleType,
String resourceName,
int scope,
String primKey,
String actionId)
throws Exception
- Deprecated. As of 7.0.0
- Throws:
Exception
initMainServletServices
public static void initMainServletServices()
initPermissions
public static void initPermissions()
initServices
public static void initServices()
initStaticServices
public static void initStaticServices()
newDate
public static Date newDate()
throws Exception
- Throws:
Exception
newDate
public static Date newDate(int month,
int day,
int year)
throws Exception
- Throws:
Exception
setUser
public static void setUser(User user)
throws Exception
- Throws:
Exception