com.liferay.portal.service
Interface ResourceLocalService


public interface ResourceLocalService

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

This interface defines the service. The default implementation is com.liferay.portal.service.impl.ResourceLocalServiceImpl. Modify methods in that class and rerun ServiceBuilder to populate this class and all other generated classes.

This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.

Author:
Brian Wing Shun Chan
See Also:
ResourceLocalServiceFactory, ResourceLocalServiceUtil

Method Summary
 void addModelResources(long companyId, long groupId, long userId, java.lang.String name, long primKey, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 void addModelResources(long companyId, long groupId, long userId, java.lang.String name, java.lang.String primKey, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 Resource addResource(long companyId, java.lang.String name, int scope, java.lang.String primKey)
           
 Resource addResource(Resource resource)
           
 void addResources(long companyId, long groupId, long userId, java.lang.String name, long primKey, boolean portletActions, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addResources(long companyId, long groupId, long userId, java.lang.String name, java.lang.String primKey, boolean portletActions, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addResources(long companyId, long groupId, java.lang.String name, boolean portletActions)
           
 void deleteResource(long resourceId)
           
 void deleteResource(long companyId, java.lang.String name, int scope, long primKey)
           
 void deleteResource(long companyId, java.lang.String name, int scope, java.lang.String primKey)
           
 void deleteResource(Resource resource)
           
 void deleteResources(java.lang.String name)
           
 java.util.List<Resource> dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
 java.util.List<Resource> dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
 long getLatestResourceId()
           
 Resource getResource(long resourceId)
           
 Resource getResource(long companyId, java.lang.String name, int scope, java.lang.String primKey)
           
 java.util.List<Resource> getResources()
           
 Resource updateResource(Resource resource)
           
 

Method Detail

addResource

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

deleteResource

void deleteResource(long resourceId)
                    throws com.liferay.portal.SystemException,
                           com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

deleteResource

void deleteResource(Resource resource)
                    throws com.liferay.portal.SystemException,
                           com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

dynamicQuery

java.util.List<Resource> dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

java.util.List<Resource> dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
                                      int begin,
                                      int end)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateResource

Resource updateResource(Resource resource)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addModelResources

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

addModelResources

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

addResource

Resource addResource(long companyId,
                     java.lang.String name,
                     int scope,
                     java.lang.String primKey)
                     throws com.liferay.portal.SystemException,
                            com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

addResources

void addResources(long companyId,
                  long groupId,
                  java.lang.String name,
                  boolean portletActions)
                  throws com.liferay.portal.SystemException,
                         com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

addResources

void addResources(long companyId,
                  long groupId,
                  long userId,
                  java.lang.String name,
                  long primKey,
                  boolean portletActions,
                  boolean addCommunityPermissions,
                  boolean addGuestPermissions)
                  throws com.liferay.portal.SystemException,
                         com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

addResources

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

deleteResource

void deleteResource(long companyId,
                    java.lang.String name,
                    int scope,
                    long primKey)
                    throws com.liferay.portal.SystemException,
                           com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

deleteResource

void deleteResource(long companyId,
                    java.lang.String name,
                    int scope,
                    java.lang.String primKey)
                    throws com.liferay.portal.SystemException,
                           com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

deleteResources

void deleteResources(java.lang.String name)
                     throws com.liferay.portal.SystemException,
                            com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getLatestResourceId

long getLatestResourceId()
                         throws com.liferay.portal.SystemException,
                                com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getResource

Resource getResource(long resourceId)
                     throws com.liferay.portal.SystemException,
                            com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getResources

java.util.List<Resource> getResources()
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getResource

Resource getResource(long companyId,
                     java.lang.String name,
                     int scope,
                     java.lang.String primKey)
                     throws com.liferay.portal.SystemException,
                            com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException