Package com.liferay.portal.service.impl
Class PermissionServiceImpl
Object
com.liferay.portal.kernel.service.BaseServiceImpl
com.liferay.portal.service.base.PermissionServiceBaseImpl
com.liferay.portal.service.impl.PermissionServiceImpl
- All Implemented Interfaces:
com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService,com.liferay.portal.kernel.service.BaseService,com.liferay.portal.kernel.service.PermissionService
Provides the remote service for checking permissions.
- Author:
- Brian Wing Shun Chan, Raymond Augé
-
Field Summary
Fields inherited from class com.liferay.portal.service.base.PermissionServiceBaseImpl
counterLocalService, permissionServiceFields inherited from class com.liferay.portal.kernel.service.BaseServiceImpl
ANONYMOUS_NAMES, JRUN_ANONYMOUS, ORACLE_ANONYMOUS, SUN_ANONYMOUS, WEBLOGIC_ANONYMOUS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancheckModelResourcePermission(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker, long groupId, String className, long classPK) voidcheckPermission(long groupId, String name, long primKey) Checks to see if the group has permission to the service.voidcheckPermission(long groupId, String name, String primKey) Checks to see if the group has permission to the service.protected voidcheckPermission(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker, long groupId, String name, String primKey) Methods inherited from class com.liferay.portal.service.base.PermissionServiceBaseImpl
afterPropertiesSet, destroy, getCounterLocalService, getOSGiServiceIdentifier, getPermissionService, runSQL, setCounterLocalService, setPermissionServiceMethods inherited from class com.liferay.portal.kernel.service.BaseServiceImpl
getClassLoader, getGuestOrUser, getGuestOrUserId, getPermissionChecker, getUser, getUserId
-
Constructor Details
-
PermissionServiceImpl
public PermissionServiceImpl()
-
-
Method Details
-
checkPermission
@JSONWebService(mode=IGNORE) @Transactional(readOnly=true) public void checkPermission(long groupId, String name, long primKey) throws com.liferay.portal.kernel.exception.PortalException Checks to see if the group has permission to the service.- Parameters:
groupId- the primary key of the groupname- the service nameprimKey- the primary key of the service- Throws:
com.liferay.portal.kernel.exception.PortalException
-
checkPermission
@Transactional(readOnly=true) public void checkPermission(long groupId, String name, String primKey) throws com.liferay.portal.kernel.exception.PortalException Checks to see if the group has permission to the service.- Parameters:
groupId- the primary key of the groupname- the service nameprimKey- the primary key of the service- Throws:
com.liferay.portal.kernel.exception.PortalException
-
checkModelResourcePermission
protected boolean checkModelResourcePermission(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker, long groupId, String className, long classPK) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
checkPermission
protected void checkPermission(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker, long groupId, String name, String primKey) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-