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="GroupService.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.GroupServiceImpl</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.GroupServiceFactory
045: * @see com.liferay.portal.service.GroupServiceUtil
046: *
047: */
048: public interface GroupService {
049: public com.liferay.portal.model.Group addGroup(
050: java.lang.String name, java.lang.String description,
051: int type, java.lang.String friendlyURL, boolean active)
052: throws java.rmi.RemoteException,
053: com.liferay.portal.SystemException,
054: com.liferay.portal.PortalException;
055:
056: public com.liferay.portal.model.Group addGroup(long liveGroupId,
057: java.lang.String name, java.lang.String description,
058: int type, java.lang.String friendlyURL, boolean active)
059: throws java.rmi.RemoteException,
060: com.liferay.portal.SystemException,
061: com.liferay.portal.PortalException;
062:
063: public void addRoleGroups(long roleId, long[] groupIds)
064: throws java.rmi.RemoteException,
065: com.liferay.portal.SystemException,
066: com.liferay.portal.PortalException;
067:
068: public void deleteGroup(long groupId)
069: throws java.rmi.RemoteException,
070: com.liferay.portal.SystemException,
071: com.liferay.portal.PortalException;
072:
073: public com.liferay.portal.model.Group getGroup(long groupId)
074: throws java.rmi.RemoteException,
075: com.liferay.portal.SystemException,
076: com.liferay.portal.PortalException;
077:
078: public com.liferay.portal.model.Group getGroup(long companyId,
079: java.lang.String name) throws java.rmi.RemoteException,
080: com.liferay.portal.SystemException,
081: com.liferay.portal.PortalException;
082:
083: public java.util.List getOrganizationsGroups(
084: java.util.List organizations)
085: throws java.rmi.RemoteException,
086: com.liferay.portal.SystemException,
087: com.liferay.portal.PortalException;
088:
089: public java.util.List getUserGroupsGroups(java.util.List userGroups)
090: throws java.rmi.RemoteException,
091: com.liferay.portal.SystemException,
092: com.liferay.portal.PortalException;
093:
094: public boolean hasUserGroup(long userId, long groupId)
095: throws java.rmi.RemoteException,
096: com.liferay.portal.SystemException;
097:
098: public java.util.List search(long companyId, java.lang.String name,
099: java.lang.String description, java.lang.String[] params,
100: int begin, int end) throws java.rmi.RemoteException,
101: com.liferay.portal.SystemException;
102:
103: public int searchCount(long companyId, java.lang.String name,
104: java.lang.String description, java.lang.String[] params)
105: throws java.rmi.RemoteException,
106: com.liferay.portal.SystemException;
107:
108: public void setRoleGroups(long roleId, long[] groupIds)
109: throws java.rmi.RemoteException,
110: com.liferay.portal.SystemException,
111: com.liferay.portal.PortalException;
112:
113: public void unsetRoleGroups(long roleId, long[] groupIds)
114: throws java.rmi.RemoteException,
115: com.liferay.portal.SystemException,
116: com.liferay.portal.PortalException;
117:
118: public com.liferay.portal.model.Group updateGroup(long groupId,
119: java.lang.String name, java.lang.String description,
120: int type, java.lang.String friendlyURL, boolean active)
121: throws java.rmi.RemoteException,
122: com.liferay.portal.SystemException,
123: com.liferay.portal.PortalException;
124:
125: public com.liferay.portal.model.Group updateGroup(long groupId,
126: java.lang.String typeSettings)
127: throws java.rmi.RemoteException,
128: com.liferay.portal.SystemException,
129: com.liferay.portal.PortalException;
130: }
|