com.liferay.portal.service
Class ResourceLocalServiceUtil

java.lang.Object
  extended by 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.

Author:
Brian Wing Shun Chan
See Also:
ResourceLocalService

Constructor Summary
ResourceLocalServiceUtil()
           
 
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 resource)
           
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 Resource createResource(long resourceId)
           
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<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 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<Resource> getResources()
           
static java.util.List<Resource> getResources(int start, int end)
           
static int getResourcesCount()
           
static ResourceLocalService getService()
           
 void setService(ResourceLocalService service)
           
static Resource updateResource(Resource resource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceLocalServiceUtil

public ResourceLocalServiceUtil()
Method Detail

addResource

public static Resource addResource(Resource resource)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

createResource

public static Resource createResource(long resourceId)

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.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

public static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

public static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                                                            int start,
                                                            int end)
                                                     throws com.liferay.portal.SystemException
Throws:
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<Resource> getResources(int start,
                                                    int end)
                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getResourcesCount

public static int getResourcesCount()
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateResource

public static Resource updateResource(Resource resource)
                               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.SystemException
Throws:
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 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.SystemException
Throws:
com.liferay.portal.SystemException

getLatestResourceId

public static long getLatestResourceId()
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getResources

public static java.util.List<Resource> 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

getService

public static ResourceLocalService getService()

setService

public void setService(ResourceLocalService service)