001: /*
002: * Copyright © 2006 Sun Microsystems, Inc. All rights reserved.
003: *
004: * Sun Microsystems, Inc. has intellectual property rights relating to
005: * technology embodied in the product that is described in this document.
006: * In particular, and without limitation, these intellectual property
007: * rights may include one or more of the U.S. patents listed at
008: * http://www.sun.com/patents and one or more additional patents or
009: * pending patent applications in the U.S. and in other countries.
010: *
011: * U.S. Government Rights - Commercial software. Government users are subject
012: * to the Sun Microsystems, Inc. standard license agreement and applicable
013: * provisions of the FAR and its supplements. Use is subject to license terms.
014: * This distribution may include materials developed by third parties.
015: * Sun, Sun Microsystems, the Sun logo and Java are trademarks or registered
016: * trademarks of Sun Microsystems, Inc. in the U.S. and other countries.
017: */
018:
019: package com.sun.portal.community;
020:
021: import java.util.List;
022: import java.util.Map;
023: import java.util.Properties;
024:
025: import java.rmi.Remote;
026: import java.rmi.RemoteException;
027:
028: import com.iplanet.sso.SSOException;
029:
030: import com.sun.portal.community.CommunityException;
031: import com.sun.portal.community.CommunityServiceException;
032: import com.sun.portal.community.template.TemplateException;
033:
034: public interface CommunityManagerWSInterface extends Remote {
035:
036: public boolean validate() throws RemoteException, SSOException;
037:
038: public String getSearchServerURL(String ssoTokenID)
039: throws RemoteException, SSOException, CommunityException;
040:
041: public String getSearchServerID(String ssoTokenID)
042: throws RemoteException, SSOException, CommunityException;
043:
044: public String getCommunityDatabase(String ssoTokenID)
045: throws RemoteException, SSOException, CommunityException;
046:
047: // public List getAvailableTemplates(String ssoTokenID, String locale) throws RemoteException, SSOException, TemplateException;
048: public List getAvailableTemplates(String ssoTokenID, String locale)
049: throws RemoteException, SSOException, CommunityException;
050:
051: public List getAvailableDPs(String ssoTokenID)
052: throws RemoteException, SSOException;
053:
054: public List search(String ssoTokenID, String query)
055: throws RemoteException, SSOException, CommunityException;
056:
057: public List getSecuredCommunityMembership(String ssoTokenID,
058: String user) throws RemoteException, SSOException,
059: CommunityException;
060:
061: public Properties getCommunityProperties(String ssoTokenID,
062: String name) throws RemoteException, SSOException,
063: CommunityException;
064:
065: public byte[] getCommunityDP(String ssoTokenID, String name,
066: String dp) throws RemoteException, SSOException,
067: CommunityException;
068:
069: public void setCommunityProperties(String ssoTokenID, String name,
070: Properties p) throws RemoteException, SSOException,
071: CommunityException;
072:
073: public void createCommunity(String ssoTokenID, String name,
074: String description, String owner, String category,
075: String template, String unlisted,
076: String membershipRestricted, String secured)
077: throws RemoteException, SSOException, CommunityException,
078: CommunityServiceException;
079:
080: public void enableCommunity(String ssoTokenID, String name)
081: throws RemoteException, SSOException, CommunityException,
082: CommunityServiceException;
083:
084: public void disableCommunity(String ssoTokenID, String name)
085: throws RemoteException, SSOException, CommunityException,
086: CommunityServiceException;
087:
088: public void deleteCommunity(String ssoTokenID, String name)
089: throws RemoteException, SSOException, CommunityException,
090: CommunityServiceException;
091:
092: public void undeleteCommunity(String ssoTokenID, String name)
093: throws RemoteException, SSOException, CommunityException,
094: CommunityServiceException;
095:
096: public void destroyCommunity(String ssoTokenID, String name)
097: throws RemoteException, SSOException, CommunityException,
098: CommunityServiceException;
099:
100: public boolean isCommunitySecure(String ssoTokenID, String name)
101: throws RemoteException, SSOException, CommunityException;
102:
103: public void addUser(String ssoTokenID, String name, String user)
104: throws RemoteException, SSOException, CommunityException,
105: CommunityServiceException;
106:
107: public void removeUser(String ssoTokenID, String name, String user)
108: throws RemoteException, SSOException, CommunityException,
109: CommunityServiceException;
110:
111: public void approveUser(String ssoTokenID, String name, String user)
112: throws RemoteException, SSOException, CommunityException,
113: CommunityServiceException;
114:
115: public void denyUser(String ssoTokenID, String name, String user)
116: throws RemoteException, SSOException, CommunityException,
117: CommunityServiceException;
118:
119: public void banUser(String ssoTokenID, String name, String user)
120: throws RemoteException, SSOException, CommunityException,
121: CommunityServiceException;
122:
123: public void unbanUser(String ssoTokenID, String name, String user)
124: throws RemoteException, SSOException, CommunityException,
125: CommunityServiceException;
126:
127: public void addOwner(String ssoTokenID, String name, String user)
128: throws RemoteException, SSOException, CommunityException,
129: CommunityServiceException;
130:
131: public void removeOwner(String ssoTokenID, String name, String user)
132: throws RemoteException, SSOException, CommunityException,
133: CommunityServiceException;
134:
135: public List getUsers(String ssoTokenID, String name)
136: throws RemoteException, SSOException, CommunityException;
137:
138: public List getPendingUsers(String ssoTokenID, String name)
139: throws RemoteException, SSOException, CommunityException;
140:
141: public List getUserRoles(String ssoTokenID, String name, String user)
142: throws RemoteException, SSOException, CommunityException;
143:
144: public boolean hasUser(String ssoTokenID, String name, String user)
145: throws RemoteException, SSOException, CommunityException;
146:
147: public boolean isOwner(String ssoTokenID, String name, String user)
148: throws RemoteException, SSOException, CommunityException;
149:
150: public boolean isUserBanned(String ssoTokenID, String name,
151: String user) throws RemoteException, SSOException,
152: CommunityException;
153:
154: public boolean isUserPending(String ssoTokenID, String name,
155: String user) throws RemoteException, SSOException,
156: CommunityException;
157:
158: /* For testing! */
159: public void requestMembership(String ssoTokenID, String name,
160: String user) throws RemoteException, SSOException,
161: CommunityException, CommunityServiceException;
162:
163: }
|