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 |
destroyServices()
|
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 |
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
destroyServices
public static void destroyServices()
initPermissions
public static void initPermissions()
initMainServletServices
public static void initMainServletServices()
initStaticServices
public static void initStaticServices()
initServices
public static void initServices()
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