Liferay 6.2.0-ce-m4

com.liferay.portal.service
Interface ResourceLocalService

All Superinterfaces:
BaseLocalService
All Known Implementing Classes:
ResourceLocalServiceBaseImpl, ResourceLocalServiceImpl, ResourceLocalServiceWrapper

@Transactional(isolation=PORTAL,
               rollbackFor={PortalException.class,SystemException.class})
public interface ResourceLocalService
extends BaseLocalService

The interface for the resource local service.

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.

See Also:
ResourceLocalServiceUtil, ResourceLocalServiceBaseImpl, ResourceLocalServiceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Method Summary
 void addModelResources(AuditedModel auditedModel, ServiceContext serviceContext)
           
 void addModelResources(long companyId, long groupId, long userId, String name, long primKey, String[] groupPermissions, String[] guestPermissions)
           
 void addModelResources(long companyId, long groupId, long userId, String name, String primKey, String[] groupPermissions, String[] guestPermissions)
           
 void addResources(long companyId, long groupId, long userId, String name, long primKey, boolean portletActions, boolean addGroupPermissions, boolean addGuestPermissions)
           
 void addResources(long companyId, long groupId, long userId, String name, String primKey, boolean portletActions, boolean addGroupPermissions, boolean addGuestPermissions)
           
 void addResources(long companyId, long groupId, String name, boolean portletActions)
           
 void deleteResource(AuditedModel auditedModel, int scope)
           
 void deleteResource(long companyId, String name, int scope, long primKey)
           
 void deleteResource(long companyId, String name, int scope, String primKey)
           
 String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
 Resource getResource(long companyId, String name, int scope, String primKey)
           
 boolean hasUserPermissions(long userId, long resourceId, List<Resource> resources, String actionId, long[] roleIds)
           
 void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 void updateModelResources(AuditedModel auditedModel, ServiceContext serviceContext)
           
 void updateResources(long companyId, long groupId, String name, long primKey, String[] groupPermissions, String[] guestPermissions)
           
 void updateResources(long companyId, long groupId, String name, String primKey, String[] groupPermissions, String[] guestPermissions)
           
 void updateResources(long companyId, String name, int scope, String primKey, String newPrimKey)
           
 

Method Detail

getBeanIdentifier

String getBeanIdentifier()
Returns the Spring bean ID for this bean.

Returns:
the Spring bean ID for this bean

setBeanIdentifier

void setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean.

Parameters:
beanIdentifier - the Spring bean ID for this bean

addModelResources

void addModelResources(AuditedModel auditedModel,
                       ServiceContext serviceContext)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

addModelResources

void addModelResources(long companyId,
                       long groupId,
                       long userId,
                       String name,
                       long primKey,
                       String[] groupPermissions,
                       String[] guestPermissions)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

addModelResources

void addModelResources(long companyId,
                       long groupId,
                       long userId,
                       String name,
                       String primKey,
                       String[] groupPermissions,
                       String[] guestPermissions)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

addResources

void addResources(long companyId,
                  long groupId,
                  long userId,
                  String name,
                  long primKey,
                  boolean portletActions,
                  boolean addGroupPermissions,
                  boolean addGuestPermissions)
                  throws PortalException,
                         SystemException
Throws:
PortalException
SystemException

addResources

void addResources(long companyId,
                  long groupId,
                  long userId,
                  String name,
                  String primKey,
                  boolean portletActions,
                  boolean addGroupPermissions,
                  boolean addGuestPermissions)
                  throws PortalException,
                         SystemException
Throws:
PortalException
SystemException

addResources

void addResources(long companyId,
                  long groupId,
                  String name,
                  boolean portletActions)
                  throws PortalException,
                         SystemException
Throws:
PortalException
SystemException

deleteResource

void deleteResource(AuditedModel auditedModel,
                    int scope)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

deleteResource

void deleteResource(long companyId,
                    String name,
                    int scope,
                    long primKey)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

deleteResource

void deleteResource(long companyId,
                    String name,
                    int scope,
                    String primKey)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

getResource

@Transactional(propagation=SUPPORTS,
               readOnly=true)
Resource getResource(long companyId,
                                                              String name,
                                                              int scope,
                                                              String primKey)

hasUserPermissions

@Transactional(propagation=SUPPORTS,
               readOnly=true)
boolean hasUserPermissions(long userId,
                                                                    long resourceId,
                                                                    List<Resource> resources,
                                                                    String actionId,
                                                                    long[] roleIds)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

updateModelResources

void updateModelResources(AuditedModel auditedModel,
                          ServiceContext serviceContext)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

updateResources

void updateResources(long companyId,
                     long groupId,
                     String name,
                     long primKey,
                     String[] groupPermissions,
                     String[] guestPermissions)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

updateResources

void updateResources(long companyId,
                     long groupId,
                     String name,
                     String primKey,
                     String[] groupPermissions,
                     String[] guestPermissions)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

updateResources

void updateResources(long companyId,
                     String name,
                     int scope,
                     String primKey,
                     String newPrimKey)
                     throws SystemException
Throws:
SystemException

Liferay 6.2.0-ce-m4