001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portal.service;
022:
023: /**
024: * <a href="PermissionService.java.html"><b><i>View Source</i></b></a>
025: *
026: * <p>
027: * ServiceBuilder generated this class. Modifications in this class will be
028: * overwritten the next time is generated.
029: * </p>
030: *
031: * <p>
032: * This interface defines the service. The default implementation is
033: * <code>com.liferay.portal.service.impl.PermissionServiceImpl</code>.
034: * Modify methods in that class and rerun ServiceBuilder to populate this class
035: * and all other generated classes.
036: * </p>
037: *
038: * <p>
039: * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portal.service.PermissionServiceFactory
045: * @see com.liferay.portal.service.PermissionServiceUtil
046: *
047: */
048: public interface PermissionService {
049: public void checkPermission(long groupId, java.lang.String name,
050: java.lang.String primKey) throws java.rmi.RemoteException,
051: com.liferay.portal.SystemException,
052: com.liferay.portal.PortalException;
053:
054: public boolean hasGroupPermission(long groupId,
055: java.lang.String actionId, long resourceId)
056: throws java.rmi.RemoteException,
057: com.liferay.portal.SystemException,
058: com.liferay.portal.PortalException;
059:
060: public boolean hasUserPermission(long userId,
061: java.lang.String actionId, long resourceId)
062: throws java.rmi.RemoteException,
063: com.liferay.portal.SystemException,
064: com.liferay.portal.PortalException;
065:
066: public boolean hasUserPermissions(
067: long userId,
068: long groupId,
069: java.lang.String actionId,
070: long[] resourceIds,
071: com.liferay.portal.kernel.security.permission.PermissionCheckerBag permissionCheckerBag)
072: throws java.rmi.RemoteException,
073: com.liferay.portal.SystemException,
074: com.liferay.portal.PortalException;
075:
076: public void setGroupPermissions(long groupId,
077: java.lang.String[] actionIds, long resourceId)
078: throws java.rmi.RemoteException,
079: com.liferay.portal.SystemException,
080: com.liferay.portal.PortalException;
081:
082: public void setGroupPermissions(java.lang.String className,
083: java.lang.String classPK, long groupId,
084: java.lang.String[] actionIds, long resourceId)
085: throws java.rmi.RemoteException,
086: com.liferay.portal.SystemException,
087: com.liferay.portal.PortalException;
088:
089: public void setOrgGroupPermissions(long organizationId,
090: long groupId, java.lang.String[] actionIds, long resourceId)
091: throws java.rmi.RemoteException,
092: com.liferay.portal.SystemException,
093: com.liferay.portal.PortalException;
094:
095: public void setRolePermission(long roleId, long groupId,
096: java.lang.String name, int scope, java.lang.String primKey,
097: java.lang.String actionId) throws java.rmi.RemoteException,
098: com.liferay.portal.SystemException,
099: com.liferay.portal.PortalException;
100:
101: public void setRolePermissions(long roleId, long groupId,
102: java.lang.String[] actionIds, long resourceId)
103: throws java.rmi.RemoteException,
104: com.liferay.portal.SystemException,
105: com.liferay.portal.PortalException;
106:
107: public void setUserPermissions(long userId, long groupId,
108: java.lang.String[] actionIds, long resourceId)
109: throws java.rmi.RemoteException,
110: com.liferay.portal.SystemException,
111: com.liferay.portal.PortalException;
112:
113: public void unsetRolePermission(long roleId, long groupId,
114: long permissionId) throws java.rmi.RemoteException,
115: com.liferay.portal.SystemException,
116: com.liferay.portal.PortalException;
117:
118: public void unsetRolePermission(long roleId, long groupId,
119: java.lang.String name, int scope, java.lang.String primKey,
120: java.lang.String actionId) throws java.rmi.RemoteException,
121: com.liferay.portal.SystemException,
122: com.liferay.portal.PortalException;
123:
124: public void unsetRolePermissions(long roleId, long groupId,
125: java.lang.String name, int scope, java.lang.String actionId)
126: throws java.rmi.RemoteException,
127: com.liferay.portal.SystemException,
128: com.liferay.portal.PortalException;
129:
130: public void unsetUserPermissions(long userId, long groupId,
131: java.lang.String[] actionIds, long resourceId)
132: throws java.rmi.RemoteException,
133: com.liferay.portal.SystemException,
134: com.liferay.portal.PortalException;
135: }
|