Liferay 6.2.0-ce-m4

com.liferay.portal.service
Class ResourceLocalServiceUtil

java.lang.Object
  extended by com.liferay.portal.service.ResourceLocalServiceUtil

public class ResourceLocalServiceUtil
extends Object

The utility for the resource local service. This utility wraps ResourceLocalServiceImpl and is the primary access point for service operations in application layer code running on the local server.

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:
ResourceLocalService, ResourceLocalServiceBaseImpl, ResourceLocalServiceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Constructor Summary
ResourceLocalServiceUtil()
           
 
Method Summary
static void addModelResources(AuditedModel auditedModel, ServiceContext serviceContext)
           
static void addModelResources(long companyId, long groupId, long userId, String name, long primKey, String[] groupPermissions, String[] guestPermissions)
           
static void addModelResources(long companyId, long groupId, long userId, String name, String primKey, String[] groupPermissions, String[] guestPermissions)
           
static void addResources(long companyId, long groupId, long userId, String name, long primKey, boolean portletActions, boolean addGroupPermissions, boolean addGuestPermissions)
           
static void addResources(long companyId, long groupId, long userId, String name, String primKey, boolean portletActions, boolean addGroupPermissions, boolean addGuestPermissions)
           
static void addResources(long companyId, long groupId, String name, boolean portletActions)
           
static void deleteResource(AuditedModel auditedModel, int scope)
           
static void deleteResource(long companyId, String name, int scope, long primKey)
           
static void deleteResource(long companyId, String name, int scope, String primKey)
           
static String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
static Resource getResource(long companyId, String name, int scope, String primKey)
           
static ResourceLocalService getService()
           
static boolean hasUserPermissions(long userId, long resourceId, List<Resource> resources, String actionId, long[] roleIds)
           
static void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 void setService(ResourceLocalService service)
          Deprecated.  
static void updateModelResources(AuditedModel auditedModel, ServiceContext serviceContext)
           
static void updateResources(long companyId, long groupId, String name, long primKey, String[] groupPermissions, String[] guestPermissions)
           
static void updateResources(long companyId, long groupId, String name, String primKey, String[] groupPermissions, String[] guestPermissions)
           
static void updateResources(long companyId, String name, int scope, String primKey, String newPrimKey)
           
 
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

getBeanIdentifier

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

Returns:
the Spring bean ID for this bean

setBeanIdentifier

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

Parameters:
beanIdentifier - the Spring bean ID for this bean

addModelResources

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

addModelResources

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

addModelResources

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

addResources

public static 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

public static 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

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

deleteResource

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

deleteResource

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

deleteResource

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

getResource

public static Resource getResource(long companyId,
                                   String name,
                                   int scope,
                                   String primKey)

hasUserPermissions

public static boolean hasUserPermissions(long userId,
                                         long resourceId,
                                         List<Resource> resources,
                                         String actionId,
                                         long[] roleIds)
                                  throws PortalException,
                                         SystemException
Throws:
PortalException
SystemException

updateModelResources

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

updateResources

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

updateResources

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

updateResources

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

getService

public static ResourceLocalService getService()

setService

public void setService(ResourceLocalService service)
Deprecated. 


Liferay 6.2.0-ce-m4