com.liferay.portal.service
Class ResourceLocalServiceUtil
java.lang.Object
com.liferay.portal.service.ResourceLocalServiceUtil
- public class ResourceLocalServiceUtil
- extends java.lang.Object
View Source
ServiceBuilder generated this class. Modifications in this class will be overwritten
the next time is generated.
This class provides static methods for the com.liferay.portal.service.ResourceLocalService
bean. The static methods of this class calls the same methods of the bean instance.
It's convenient to be able to just write one line to call a method on a bean
instead of writing a lookup call and a method call.
com.liferay.portal.service.ResourceLocalServiceFactory
is responsible
for the lookup of the bean.
- Author:
- Brian Wing Shun Chan
- See Also:
ResourceLocalService
,
ResourceLocalServiceFactory
Method Summary |
static void |
addModelResources(long companyId,
long groupId,
long userId,
java.lang.String name,
long primKey,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
static void |
addModelResources(long companyId,
long groupId,
long userId,
java.lang.String name,
java.lang.String primKey,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
static Resource |
addResource(long companyId,
java.lang.String name,
int scope,
java.lang.String primKey)
|
static Resource |
addResource(Resource model)
|
static void |
addResources(long companyId,
long groupId,
long userId,
java.lang.String name,
long primKey,
boolean portletActions,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
static void |
addResources(long companyId,
long groupId,
long userId,
java.lang.String name,
java.lang.String primKey,
boolean portletActions,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
static void |
addResources(long companyId,
long groupId,
java.lang.String name,
boolean portletActions)
|
static void |
deleteResource(long resourceId)
|
static void |
deleteResource(long companyId,
java.lang.String name,
int scope,
long primKey)
|
static void |
deleteResource(long companyId,
java.lang.String name,
int scope,
java.lang.String primKey)
|
static void |
deleteResource(Resource resource)
|
static void |
deleteResources(java.lang.String name)
|
static java.util.List |
dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
|
static java.util.List |
dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
int begin,
int end)
|
static long |
getLatestResourceId()
|
static Resource |
getResource(long resourceId)
|
static Resource |
getResource(long companyId,
java.lang.String name,
int scope,
java.lang.String primKey)
|
static java.util.List |
getResources()
|
static Resource |
updateResource(Resource model)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceLocalServiceUtil
public ResourceLocalServiceUtil()
addResource
public static Resource addResource(Resource model)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
dynamicQuery
public static java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
dynamicQuery
public static java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
int begin,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
updateResource
public static Resource updateResource(Resource model)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
addModelResources
public static void addModelResources(long companyId,
long groupId,
long userId,
java.lang.String name,
long primKey,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addModelResources
public static void addModelResources(long companyId,
long groupId,
long userId,
java.lang.String name,
java.lang.String primKey,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addResource
public static Resource addResource(long companyId,
java.lang.String name,
int scope,
java.lang.String primKey)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addResources
public static void addResources(long companyId,
long groupId,
java.lang.String name,
boolean portletActions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addResources
public static void addResources(long companyId,
long groupId,
long userId,
java.lang.String name,
long primKey,
boolean portletActions,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addResources
public static void addResources(long companyId,
long groupId,
long userId,
java.lang.String name,
java.lang.String primKey,
boolean portletActions,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteResource
public static void deleteResource(long resourceId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteResource
public static void deleteResource(Resource resource)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteResource
public static void deleteResource(long companyId,
java.lang.String name,
int scope,
long primKey)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteResource
public static void deleteResource(long companyId,
java.lang.String name,
int scope,
java.lang.String primKey)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteResources
public static void deleteResources(java.lang.String name)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getLatestResourceId
public static long getLatestResourceId()
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getResource
public static Resource getResource(long resourceId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getResources
public static java.util.List getResources()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getResource
public static Resource getResource(long companyId,
java.lang.String name,
int scope,
java.lang.String primKey)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException