Class ResourceActionLocalServiceImpl

Object
com.liferay.portal.kernel.service.BaseLocalServiceImpl
com.liferay.portal.service.base.ResourceActionLocalServiceBaseImpl
com.liferay.portal.service.impl.ResourceActionLocalServiceImpl
All Implemented Interfaces:
com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService, com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.PersistedModelLocalService, com.liferay.portal.kernel.service.ResourceActionLocalService

public class ResourceActionLocalServiceImpl extends ResourceActionLocalServiceBaseImpl
Author:
Brian Wing Shun Chan, Shuyang Zhou
  • Constructor Details

    • ResourceActionLocalServiceImpl

      public ResourceActionLocalServiceImpl()
  • Method Details

    • addResourceAction

      public com.liferay.portal.kernel.model.ResourceAction addResourceAction(String name, String actionId, long bitwiseValue)
    • checkResourceActions

      @Transactional(propagation=SUPPORTS, readOnly=true) public void checkResourceActions()
    • checkResourceActions

      public void checkResourceActions(String name, List<String> actionIds)
    • checkResourceActions

      public void checkResourceActions(String name, List<String> actionIds, boolean addDefaultActions)
    • deleteResourceAction

      public com.liferay.portal.kernel.model.ResourceAction deleteResourceAction(long resourceActionId) throws com.liferay.portal.kernel.exception.PortalException
      Description copied from class: ResourceActionLocalServiceBaseImpl
      Deletes the resource action with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect ResourceActionLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      Specified by:
      deleteResourceAction in interface com.liferay.portal.kernel.service.ResourceActionLocalService
      Overrides:
      deleteResourceAction in class ResourceActionLocalServiceBaseImpl
      Parameters:
      resourceActionId - the primary key of the resource action
      Returns:
      the resource action that was removed
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a resource action with the primary key could not be found
    • deleteResourceAction

      public com.liferay.portal.kernel.model.ResourceAction deleteResourceAction(com.liferay.portal.kernel.model.ResourceAction resourceAction)
      Description copied from class: ResourceActionLocalServiceBaseImpl
      Deletes the resource action from the database. Also notifies the appropriate model listeners.

      Important: Inspect ResourceActionLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      Specified by:
      deleteResourceAction in interface com.liferay.portal.kernel.service.ResourceActionLocalService
      Overrides:
      deleteResourceAction in class ResourceActionLocalServiceBaseImpl
      Parameters:
      resourceAction - the resource action
      Returns:
      the resource action that was removed
    • fetchResourceAction

      @Transactional(enabled=false) public com.liferay.portal.kernel.model.ResourceAction fetchResourceAction(String name, String actionId)
    • getResourceAction

      @Transactional(enabled=false) public com.liferay.portal.kernel.model.ResourceAction getResourceAction(String name, String actionId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getResourceActions

      public List<com.liferay.portal.kernel.model.ResourceAction> getResourceActions(String name)
    • getResourceActionsCount

      public int getResourceActionsCount(String name)
    • encodeKey

      protected String encodeKey(String name, String actionId)