| java.lang.Object com.sun.portal.community.impl.CommunityManagerImpl
Method Summary | |
public void | createCommunity(CommunityId cid, String templateId, String category, String description, boolean isMembershipRestricted, boolean isSecure, boolean isListed) | public void | createCommunity(CommunityId cid, String ownerId, String templateId, String category, String description, boolean isMembershipRestricted, boolean isSecure, boolean isListed) Create a new community. | protected CMCNode | createCommunityNode(CommunityId cid) Create a new community node if it's supported. | public void | destroyCommunity(CommunityId cid) Undo whatever createCommunity() has done. | public void | destroyCommunity(CommunityId cid, boolean cont) Undo whatever createCommunity() has done. | public boolean | existsCommunity(CommunityId cid) | public String | getContentsSearchDb(CommunityId cid) | public List | getContentsSearchDbs(CommunityId cid) | public String | getDiscussionsSearchDb(CommunityId cid) | public int | getDpBasePriority() | String | getPortalId() Get the portal ID.
The system will use the default portal ID system property, or the
portalId field, if it is set. | public String | getSearchDb() | public String | getSearchDbPrefix() | public String | getSearchTaxonomyRoot() | public String | getSearchUrl() | public Map | getUserCounts(Set communityIds) | public void | logRecord(Logger logger, Level level, String msgKey, Throwable th, Object parameter) | public void | logRecord(Logger logger, Level level, String msgKey, Throwable th, Object[] parameters) | public Set | match(Pattern p, boolean nameOnly) | protected void | removeCommunityNode(CMCNode cNode) Remove community node if it's supported. | public void | setPortalId(String portalId) Set portal ID to use in this object. |
CommunityManagerImpl | public CommunityManagerImpl(HttpServletRequest request, HttpServletResponse response, SSOToken ssoToken) throws CommunityException(Code) | | Initialize CommunityManager from a servlet environment where it's assumed
that there is only one portal accessible in the JVM.
Parameters: request - Parameters: response - Parameters: ssoToken - throws: com.sun.portal.community.mgmt.CommunityException - |
createCommunity | public void createCommunity(CommunityId cid, String ownerId, String templateId, String category, String description, boolean isMembershipRestricted, boolean isSecure, boolean isListed) throws CommunityServiceException, CommunityException(Code) | | Create a new community. Here are high-level tasks:
1. Initialize a new Membership Node
2. Retrieve template for each role
3. Walk down the template for each role and collect (absolute) channel names
- this would be the union set of channel names gathered from the templates.
4. Create merged dpRoot for each role: (role_template_DP + global_DP)
5. Provision service corresponding to each channel in the set
6. Set community DP for each role
7. Add a new classification into search DB
8. Creator of the community joins the community
Parameters: name - name of the community Parameters: description - description of the community Parameters: category - category where the community is to be inserted Parameters: templateId - ID of the template to represent the layout of the community |
createCommunityNode | protected CMCNode createCommunityNode(CommunityId cid) throws CommunityException(Code) | | Create a new community node if it's supported. An exception is thrown
if it's not a supported operation.
Parameters: name - name of the community to be created throws: com.sun.portal.community.mgmt.CommunityException - a newly created CommunityNode |
getDpBasePriority | public int getDpBasePriority()(Code) | | |
getPortalId | String getPortalId()(Code) | | Get the portal ID.
The system will use the default portal ID system property, or the
portalId field, if it is set. Clients that do not wish to use
the portal ID system property should call setPortalId() before
using this object.
|
getSearchTaxonomyRoot | public String getSearchTaxonomyRoot()(Code) | | |
removeCommunityNode | protected void removeCommunityNode(CMCNode cNode) throws CommunityException(Code) | | Remove community node if it's supported. An exception is thrown
if it's not a supported operation.
Parameters: cNode - CommunityNode to remove throws: com.sun.portal.community.mgmt.CommunityException - |
setPortalId | public void setPortalId(String portalId)(Code) | | Set portal ID to use in this object.
If set, this portal ID overrides the default portal ID system
property.
|
|
|