com.liferay.portal.service
Interface ResourceLocalService


@Transactional(rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
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:
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)
           
 Resource createResource(long resourceId)
           
 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<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
 java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 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()
           
 java.util.List<Resource> getResources(int start, int end)
           
 int getResourcesCount()
           
 Resource updateResource(Resource resource)
           
 

Method Detail

addResource

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

createResource

Resource createResource(long resourceId)

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

dynamicQuery

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

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

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

getResources

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Resource> getResources(int start,
                                                    int end)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getResourcesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getResourcesCount()
                      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.PortalException,
                              com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

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

addResource

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

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

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

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

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

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

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

getLatestResourceId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
long getLatestResourceId()
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getResources

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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.PortalException,
                            com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException