Liferay 7.0-ce-b4

com.liferay.portal.service.impl
Class PermissionServiceImpl

java.lang.Object
  extended by com.liferay.portal.service.BaseServiceImpl
      extended by com.liferay.portal.service.base.PermissionServiceBaseImpl
          extended by com.liferay.portal.service.impl.PermissionServiceImpl
All Implemented Interfaces:
IdentifiableOSGiService, BaseService, PermissionService

public class PermissionServiceImpl
extends PermissionServiceBaseImpl

Provides the remote service for checking permissions.


Field Summary
 
Fields inherited from class com.liferay.portal.service.base.PermissionServiceBaseImpl
counterLocalService, permissionService, resourceBlockFinder, resourceBlockLocalService, resourceBlockPersistence, resourceBlockService, resourcePermissionFinder, resourcePermissionLocalService, resourcePermissionPersistence, resourcePermissionService, roleFinder, roleLocalService, rolePersistence, roleService, teamFinder, teamLocalService, teamPersistence, teamService, userFinder, userLocalService, userPersistence, userService
 
Fields inherited from class com.liferay.portal.service.BaseServiceImpl
ANONYMOUS_NAMES, JRUN_ANONYMOUS, ORACLE_ANONYMOUS, SUN_ANONYMOUS, WEBLOGIC_ANONYMOUS
 
Constructor Summary
PermissionServiceImpl()
           
 
Method Summary
 void afterPropertiesSet()
           
protected  boolean checkBaseModelPermission(PermissionChecker permissionChecker, long groupId, String className, long classPK)
           
 void checkPermission(long groupId, String name, long primKey)
          Checks to see if the group has permission to the service.
 void checkPermission(long groupId, String name, String primKey)
          Checks to see if the group has permission to the service.
protected  void checkPermission(PermissionChecker permissionChecker, long groupId, String name, String primKey)
           
 
Methods inherited from class com.liferay.portal.service.base.PermissionServiceBaseImpl
destroy, getCounterLocalService, getOSGiServiceIdentifier, getPermissionService, getResourceBlockFinder, getResourceBlockLocalService, getResourceBlockPersistence, getResourceBlockService, getResourcePermissionFinder, getResourcePermissionLocalService, getResourcePermissionPersistence, getResourcePermissionService, getRoleFinder, getRoleLocalService, getRolePersistence, getRoleService, getTeamFinder, getTeamLocalService, getTeamPersistence, getTeamService, getUserFinder, getUserLocalService, getUserPersistence, getUserService, runSQL, setCounterLocalService, setPermissionService, setResourceBlockFinder, setResourceBlockLocalService, setResourceBlockPersistence, setResourceBlockService, setResourcePermissionFinder, setResourcePermissionLocalService, setResourcePermissionPersistence, setResourcePermissionService, setRoleFinder, setRoleLocalService, setRolePersistence, setRoleService, setTeamFinder, setTeamLocalService, setTeamPersistence, setTeamService, setUserFinder, setUserLocalService, setUserPersistence, setUserService
 
Methods inherited from class com.liferay.portal.service.BaseServiceImpl
getClassLoader, getGuestOrUser, getGuestOrUserId, getPermissionChecker, getUser, getUserId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PermissionServiceImpl

public PermissionServiceImpl()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
Overrides:
afterPropertiesSet in class PermissionServiceBaseImpl

checkPermission

@JSONWebService(mode=IGNORE)
public void checkPermission(long groupId,
                                                     String name,
                                                     long primKey)
                     throws PortalException
Checks to see if the group has permission to the service.

Parameters:
groupId - the primary key of the group
name - the service name
primKey - the primary key of the service
Throws:
PortalException

checkPermission

public void checkPermission(long groupId,
                            String name,
                            String primKey)
                     throws PortalException
Checks to see if the group has permission to the service.

Parameters:
groupId - the primary key of the group
name - the service name
primKey - the primary key of the service
Throws:
PortalException

checkBaseModelPermission

protected boolean checkBaseModelPermission(PermissionChecker permissionChecker,
                                           long groupId,
                                           String className,
                                           long classPK)
                                    throws PortalException
Throws:
PortalException

checkPermission

protected void checkPermission(PermissionChecker permissionChecker,
                               long groupId,
                               String name,
                               String primKey)
                        throws PortalException
Throws:
PortalException

Liferay 7.0-ce-b4