001 /** 002 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portal.service; 016 017 /** 018 * <p> 019 * This class is a wrapper for {@link PermissionService}. 020 * </p> 021 * 022 * @author Brian Wing Shun Chan 023 * @see PermissionService 024 * @generated 025 */ 026 public class PermissionServiceWrapper implements PermissionService, 027 ServiceWrapper<PermissionService> { 028 public PermissionServiceWrapper(PermissionService permissionService) { 029 _permissionService = permissionService; 030 } 031 032 /** 033 * Returns the Spring bean ID for this bean. 034 * 035 * @return the Spring bean ID for this bean 036 */ 037 public java.lang.String getBeanIdentifier() { 038 return _permissionService.getBeanIdentifier(); 039 } 040 041 /** 042 * Sets the Spring bean ID for this bean. 043 * 044 * @param beanIdentifier the Spring bean ID for this bean 045 */ 046 public void setBeanIdentifier(java.lang.String beanIdentifier) { 047 _permissionService.setBeanIdentifier(beanIdentifier); 048 } 049 050 /** 051 * Checks to see if the group has permission to the service. 052 * 053 * @param groupId the primary key of the group 054 * @param name the service name 055 * @param primKey the primary key of the service 056 * @throws PortalException if the group did not have permission to the 057 service, if a group with the primary key could not be found or if 058 the permission information was invalid 059 * @throws SystemException if a system exception occurred 060 */ 061 public void checkPermission(long groupId, java.lang.String name, 062 long primKey) 063 throws com.liferay.portal.kernel.exception.PortalException, 064 com.liferay.portal.kernel.exception.SystemException { 065 _permissionService.checkPermission(groupId, name, primKey); 066 } 067 068 /** 069 * Checks to see if the group has permission to the service. 070 * 071 * @param groupId the primary key of the group 072 * @param name the service name 073 * @param primKey the primary key of the service 074 * @throws PortalException if the group did not have permission to the 075 service, if a group with the primary key could not be found or if 076 the permission information was invalid 077 * @throws SystemException if a system exception occurred 078 */ 079 public void checkPermission(long groupId, java.lang.String name, 080 java.lang.String primKey) 081 throws com.liferay.portal.kernel.exception.PortalException, 082 com.liferay.portal.kernel.exception.SystemException { 083 _permissionService.checkPermission(groupId, name, primKey); 084 } 085 086 /** 087 * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} 088 */ 089 public PermissionService getWrappedPermissionService() { 090 return _permissionService; 091 } 092 093 /** 094 * @deprecated As of 6.1.0, replaced by {@link #setWrappedService} 095 */ 096 public void setWrappedPermissionService(PermissionService permissionService) { 097 _permissionService = permissionService; 098 } 099 100 public PermissionService getWrappedService() { 101 return _permissionService; 102 } 103 104 public void setWrappedService(PermissionService permissionService) { 105 _permissionService = permissionService; 106 } 107 108 private PermissionService _permissionService; 109 }