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 * Provides a wrapper for {@link PermissionService}. 019 * 020 * @author Brian Wing Shun Chan 021 * @see PermissionService 022 * @generated 023 */ 024 public class PermissionServiceWrapper implements PermissionService, 025 ServiceWrapper<PermissionService> { 026 public PermissionServiceWrapper(PermissionService permissionService) { 027 _permissionService = permissionService; 028 } 029 030 /** 031 * Returns the Spring bean ID for this bean. 032 * 033 * @return the Spring bean ID for this bean 034 */ 035 @Override 036 public java.lang.String getBeanIdentifier() { 037 return _permissionService.getBeanIdentifier(); 038 } 039 040 /** 041 * Sets the Spring bean ID for this bean. 042 * 043 * @param beanIdentifier the Spring bean ID for this bean 044 */ 045 @Override 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 @Override 062 public void checkPermission(long groupId, java.lang.String name, 063 long primKey) 064 throws com.liferay.portal.kernel.exception.PortalException, 065 com.liferay.portal.kernel.exception.SystemException { 066 _permissionService.checkPermission(groupId, name, primKey); 067 } 068 069 /** 070 * Checks to see if the group has permission to the service. 071 * 072 * @param groupId the primary key of the group 073 * @param name the service name 074 * @param primKey the primary key of the service 075 * @throws PortalException if the group did not have permission to the 076 service, if a group with the primary key could not be found or if 077 the permission information was invalid 078 * @throws SystemException if a system exception occurred 079 */ 080 @Override 081 public void checkPermission(long groupId, java.lang.String name, 082 java.lang.String primKey) 083 throws com.liferay.portal.kernel.exception.PortalException, 084 com.liferay.portal.kernel.exception.SystemException { 085 _permissionService.checkPermission(groupId, name, primKey); 086 } 087 088 /** 089 * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} 090 */ 091 public PermissionService getWrappedPermissionService() { 092 return _permissionService; 093 } 094 095 /** 096 * @deprecated As of 6.1.0, replaced by {@link #setWrappedService} 097 */ 098 public void setWrappedPermissionService(PermissionService permissionService) { 099 _permissionService = permissionService; 100 } 101 102 @Override 103 public PermissionService getWrappedService() { 104 return _permissionService; 105 } 106 107 @Override 108 public void setWrappedService(PermissionService permissionService) { 109 _permissionService = permissionService; 110 } 111 112 private PermissionService _permissionService; 113 }