001: package com.sun.portal.community.admin.mbeans;
002:
003: import java.util.*;
004: import java.net.*;
005:
006: import com.sun.portal.admin.server.mbeans.PSMBean;
007: import com.sun.portal.admin.common.util.AdminUtil;
008: import com.sun.portal.admin.common.PSMBeanException;
009:
010: public interface CommunityManagerMBean extends PSMBean {
011:
012: public static final String TYPE = AdminUtil.COMMUNITYMANAGER_MBEAN_TYPE;
013:
014: public String getID();
015:
016: public String retrieveCommunityManagerWSURL()
017: throws PSMBeanException;
018:
019: public void modifyCommunityManagerWSURL(String url)
020: throws PSMBeanException;
021:
022: public String retrieveEffectiveCommunityManagerWSURL()
023: throws PSMBeanException;
024:
025: public String retrieveSearchServerID() throws PSMBeanException,
026: UnknownHostException;
027:
028: public ArrayList getAvailableCommunityTemplates(String locale)
029: throws PSMBeanException, UnknownHostException;
030:
031: public ArrayList retrieveAvailableCommunityDPs()
032: throws PSMBeanException, UnknownHostException;
033:
034: public ArrayList searchForCommunities(String query)
035: throws PSMBeanException, UnknownHostException;
036:
037: public Properties getCommunity(String name)
038: throws PSMBeanException, UnknownHostException;
039:
040: public byte[] getCommunityDP(String name, String dp)
041: throws PSMBeanException, UnknownHostException;
042:
043: public void setCommunity(String name, Properties p)
044: throws PSMBeanException, UnknownHostException;
045:
046: public void createCommunity(String name, String description,
047: String owner, String category, String template,
048: String unlisted, String membershipRestricted, String secured)
049: throws PSMBeanException, UnknownHostException;
050:
051: public void enableCommunity(String name) throws PSMBeanException,
052: UnknownHostException;
053:
054: public void disableCommunity(String name) throws PSMBeanException,
055: UnknownHostException;
056:
057: public void deleteCommunity(String name) throws PSMBeanException,
058: UnknownHostException;
059:
060: public void undeleteCommunity(String name) throws PSMBeanException,
061: UnknownHostException;
062:
063: public void destroyCommunity(String name) throws PSMBeanException,
064: UnknownHostException;
065:
066: public void addUser(String name, String user)
067: throws PSMBeanException, UnknownHostException;
068:
069: public void removeCommunityUser(String name, String user)
070: throws PSMBeanException, UnknownHostException;
071:
072: public void approveUser(String name, String user)
073: throws PSMBeanException, UnknownHostException;
074:
075: public void denyUser(String name, String user)
076: throws PSMBeanException, UnknownHostException;
077:
078: public void banCommunityUser(String name, String user)
079: throws PSMBeanException, UnknownHostException;
080:
081: public void unbanCommunityUser(String name, String user)
082: throws PSMBeanException, UnknownHostException;
083:
084: public void addCommunityOwner(String name, String user)
085: throws PSMBeanException, UnknownHostException;
086:
087: public void removeCommunityOwner(String name, String user)
088: throws PSMBeanException, UnknownHostException;
089:
090: public ArrayList getCommunityUsers(String name)
091: throws PSMBeanException, UnknownHostException;
092:
093: public ArrayList getPendingUsers(String name)
094: throws PSMBeanException, UnknownHostException;
095:
096: public String getCommunityUserRoles(String name, String user)
097: throws PSMBeanException, UnknownHostException;
098:
099: public Boolean isCommunityUser(String name, String user)
100: throws PSMBeanException, UnknownHostException;
101:
102: public Boolean isCommunityOwner(String name, String user)
103: throws PSMBeanException, UnknownHostException;
104:
105: public Boolean isCommunityUserBanned(String name, String user)
106: throws PSMBeanException, UnknownHostException;
107:
108: public Boolean isUserPending(String name, String user)
109: throws PSMBeanException, UnknownHostException;
110:
111: /* For testing! */
112: public void requestCommunityMembership(String name, String user)
113: throws PSMBeanException, UnknownHostException;
114:
115: }
|