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