| java.lang.Object com.sun.portal.community.impl.CommunityImpl
Inner Class :class CommunityServiceResult | |
Method Summary | |
public void | acceptInvitation(String userId) | public void | addMember(String userId) Adds a member to the community. | public void | addOwner(String userId) Adds a owner. | void | addSearchIndex(String category, String description, String ownerId) | public void | addUser(String userId, RoleId rid) Add a user to the community. | public void | approveMembershipRequest(String userId) | public void | banUser(String userId) | protected Set | collectChannelNames(Collection dpDocs) Get a union set of channel names that appear in given set of display profiles. | public static CMCRolePrincipal | convertToCMCRolePrincipal(String serviceDPType) convert role representation used in service provisioning to CMCRolePrincipal
todo: would be nice if this conversion doesn't have to take place. | public static String | convertToServiceRole(CMCRolePrincipal rPrincipal) convert CMCRolePrincipal to the role representation used in service provisioning
todo: would be nice if this conversion doesn't have to take place. | public void | denyInvitation(String userId) | public String | getCategory() | protected byte[] | getCommunityDP(CMCNode cNode, CMCRolePrincipal rPrincipal) | protected Map | getCommunityDPs(CMCNode cNode) | public CommunityId | getCommunityId() | public String | getContentsSearchDb() | public List | getContentsSearchDbs() | public byte[] | getDP(DPName dpName) | protected DPRoot | getDPRoot(byte[] dpDoc) | public String | getDescription() | public String | getDiscussionsSearchDb() | protected Map | getMergedDPRoots(Map baseDPs) Build DPRoot from the base display profile then merge in the global display profile. | String | getPortalId() | protected Map | getRoleTemplates(String templateId, Map tokenMapping) Get the Template for the given templateID. | public String | getSearchDb() | String | getSearchDbPrefix() | String | getSearchUrl() | public Set | getUsers() | public Set | getUsers(Set roleIds) | protected SOIFInputStream | getVirtualDatabaseRDs(String database) | public void | inviteUser(String userId, String message) | public boolean | isDeleted() | public boolean | isDisabled() | public boolean | isListed() | public boolean | isMembershipRestricted() Return true if the community membership is restricted. | public boolean | isSecure() Returns true if the community content is secured based. | 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) | protected Map | provisionServiceHelper(CMCPrincipal cPrincipal, String event, String channelName, Map mergedDPRoots) | void | provisionServices(String templateId, Map tokenMapping) | protected CommunityServiceResult | provisionServicesHelper(CMCNode cNode, String event, Set channelNames, Map mergedDPRoots) Provision services corresponding to the channel names. | protected void | provisionUserService(CMCPrincipal cPrincipal, String userId, String channelName, DPRoot dpRoot, CMCRolePrincipal rPrincipal) Provision a service for a user. | protected void | provisionUserServiceHelper(CMCPrincipal cPrincipal, String userId, String channelName, DPRoot dpRoot, CMCRolePrincipal rPrincipal, boolean doProvision) | protected void | provisionUserServices(CMCPrincipal cmcp, String userId, CMCRolePrincipal rPrincipal) Provision services for a user. | protected void | provisionUserServicesHelper(CMCPrincipal cmcp, String userId, CMCRolePrincipal rPrincipal, boolean doProvision) | public void | rejectMembershipRequest(String userId) | void | removeSearchIndexForCommunity() | void | removeSearchIndexForCommunityContent() | public void | removeUser(String userId, RoleId rid) Remove the user from the community. | protected void | removeVirtualDatabase(String database) | void | reprovisionServices(String event) Reprovision all services for the given event. | public void | requestMembership(String userId) | void | secureSearchIndexForCommunityContent(String ctyMemberRole) | public void | setCategory(String category) | protected void | setCommunityDPs(CMCNode cNode, Map dpDocs) First convert the given map (CMCRolePrincipal to its corresponding
DPRoot ) to ConfigTable . | public void | setDP(DPName dpName, byte[] dp) | public void | setDeleted(boolean deleted) | public void | setDescription(String description) | public void | setDisabled(boolean disabled) | public void | setListed(boolean isListed) | public void | setMembershipRestricted(boolean isMembershipRestricted) Set whether community membership is restricted. | public void | setSecure(boolean isSecure) Set whether the community content needs to be secured. | public void | unbanUser(String userId) | void | unprovisionServices() | protected void | unprovisionUserService(CMCPrincipal cPrincipal, String userId, String channelName, DPRoot dpRoot, CMCRolePrincipal rPrincipal) Unprovision a service for a user. | protected void | unprovisionUserServices(CMCPrincipal cmcp, String userId, CMCRolePrincipal rPrincipal) Unprovision services for a user. | protected void | updateVirtualDatabase(String database, SOIF s) |
NOTIFICATION_RB_BASE | final public static String NOTIFICATION_RB_BASE(Code) | | |
collectChannelNames | protected Set collectChannelNames(Collection dpDocs) throws CommunityException(Code) | | Get a union set of channel names that appear in given set of display profiles.
Parameters: dpDocs - display profile documents set of channel names |
convertToCMCRolePrincipal | public static CMCRolePrincipal convertToCMCRolePrincipal(String serviceDPType) throws CommunityException(Code) | | convert role representation used in service provisioning to CMCRolePrincipal
todo: would be nice if this conversion doesn't have to take place.
make it a consipiracy that the CMCRolePrincipal and ProvisionRequest
use the same role representation
|
convertToServiceRole | public static String convertToServiceRole(CMCRolePrincipal rPrincipal) throws CommunityException(Code) | | convert CMCRolePrincipal to the role representation used in service provisioning
todo: would be nice if this conversion doesn't have to take place.
make it a consipiracy that the CMCRolePrincipal and ProvisionRequest
use the same role representation
|
getCommunityDP | protected byte[] getCommunityDP(CMCNode cNode, CMCRolePrincipal rPrincipal) throws CommunityException(Code) | | Get community display profiles for the given role roles
Parameters: cNode - CommunityNode from which to retrieve the display profile Parameters: rPrincipal - CMCRolePrincipal for which to retrieve the display profile display profile document |
getCommunityDPs | protected Map getCommunityDPs(CMCNode cNode) throws CommunityException(Code) | | Get community display profiles for all roles
Parameters: cNode - CommunityNode to operate on a map mapping CMCRolePrincipal to its corresponding display profile document |
getDP | public byte[] getDP(DPName dpName) throws CommunityException(Code) | | Get community display profile for the given DPName
Parameters: dpName - DPName for which to retrieve the display profile display profile document |
getMergedDPRoots | protected Map getMergedDPRoots(Map baseDPs) throws CommunityException(Code) | | Build DPRoot from the base display profile then merge in the global display profile.
Repeat this process for each entry in the map.
Parameters: baseDPs - a map mapping CMCRolePrincipal to its corresponding display profile document. throws: com.sun.portal.community.mgmt.CommunityException - a map mapping CMCRolePrincipal to its corresponding merged DPRoot |
getRoleTemplates | protected Map getRoleTemplates(String templateId, Map tokenMapping) throws CommunityException(Code) | | Get the Template for the given templateID. Grab all
role templates that are associated with this template. The templates
should have been token-replaced.
Parameters: templateId - ID of the template you want to retrieve Parameters: communityName - community name to be used in token replacement Parameters: communityDesc - community description to be used in token replacement throws: com.sun.portal.community.mgmt.CommunityException - a map mapping CMCRolePrincipal to its corresponding template |
isMembershipRestricted | public boolean isMembershipRestricted() throws CommunityException(Code) | | Return true if the community membership is restricted.
|
isSecure | public boolean isSecure() throws CommunityException(Code) | | Returns true if the community content is secured based.
|
provisionServiceHelper | protected Map provisionServiceHelper(CMCPrincipal cPrincipal, String event, String channelName, Map mergedDPRoots) throws ServiceException, CommunityException(Code) | | Provision a service
Parameters: cPrincipal - CommunityPrincipal for which this service is provisioned Parameters: event - the event for which the service is provisioned Parameters: channelName - name of the channels to be provisioned Parameters: mergedDPRoots - a map mapping CMCRolePrincipal to its corresponding DPRoot throws: com.sun.portal.community.mgmt.CommunityException - a map mapping CMCRolePrincipal to its corresponding display profile document |
provisionServicesHelper | protected CommunityServiceResult provisionServicesHelper(CMCNode cNode, String event, Set channelNames, Map mergedDPRoots) throws CommunityException(Code) | | Provision services corresponding to the channel names.
Parameters: cNode - CommunityNode for which this service is provisioned for Parameters: event - the event for which the service is provisioned Parameters: channelNames - names of the channels to be provisioned Parameters: mergedDPRoots - a map mapping CMCRolePrincipal to its corresponding DPRoot throws: com.sun.portal.community.CommunityException - |
provisionUserService | protected void provisionUserService(CMCPrincipal cPrincipal, String userId, String channelName, DPRoot dpRoot, CMCRolePrincipal rPrincipal) throws ServiceException, CommunityException(Code) | | Provision a service for a user.
Parameters: cPrincipal - CommunityPrincipal for which this service is provisioned for Parameters: userId - ID of the user for whom the service is provisioned Parameters: dpRoot - DPRoot of the role for the given community throws: com.sun.portal.community.mgmt.CommunityException - |
provisionUserServices | protected void provisionUserServices(CMCPrincipal cmcp, String userId, CMCRolePrincipal rPrincipal) throws CommunityServiceException, CommunityException(Code) | | Provision services for a user.
Parameters: cNode - CommunityNode for which this service is provisioned for Parameters: userId - ID of the user for whom the service is provisioned Parameters: rPrincipal - CMCRolePrincipal for which the service is provisioned throws: com.sun.portal.community.mgmt.CommunityException - |
removeVirtualDatabase | protected void removeVirtualDatabase(String database)(Code) | | |
setCommunityDPs | protected void setCommunityDPs(CMCNode cNode, Map dpDocs) throws CommunityException(Code) | | First convert the given map (CMCRolePrincipal to its corresponding
DPRoot ) to ConfigTable . Then assign the
ConfigTable to the community node.
Parameters: cNode - CommunityNode to operate on Parameters: dpDocs - a map mapping CMCRolePrincipal to its corresponding display profile document |
setDP | public void setDP(DPName dpName, byte[] dp) throws CommunityException(Code) | | Set community display profile for the given DPName
Parameters: dpName - DPName for which to set the display profile Parameters: dp - byte[] the display profile |
setListed | public void setListed(boolean isListed) throws CommunityException(Code) | | Sets whether community needs to be listed
|
setMembershipRestricted | public void setMembershipRestricted(boolean isMembershipRestricted) throws CommunityException(Code) | | Set whether community membership is restricted.
|
setSecure | public void setSecure(boolean isSecure) throws CommunityException(Code) | | Set whether the community content needs to be secured.
|
unprovisionUserService | protected void unprovisionUserService(CMCPrincipal cPrincipal, String userId, String channelName, DPRoot dpRoot, CMCRolePrincipal rPrincipal) throws ServiceException, CommunityException(Code) | | Unprovision a service for a user.
Parameters: cPrincipal - CommunityPrincipal for which this service is unprovisioned for Parameters: userId - ID of the user for whom the service is unprovisioned Parameters: dpRoot - DPRoot of the role for the given community throws: com.sun.portal.community.mgmt.CommunityException - |
unprovisionUserServices | protected void unprovisionUserServices(CMCPrincipal cmcp, String userId, CMCRolePrincipal rPrincipal) throws CommunityServiceException, CommunityException(Code) | | Unprovision services for a user.
Parameters: cNode - CommunityNode for which this service is unprovisioned for Parameters: userId - ID of the user for whom the service is unprovisioned Parameters: rPrincipal - CMCRolePrincipal for which the service is unprovisioned throws: com.sun.portal.community.mgmt.CommunityException - |
updateVirtualDatabase | protected void updateVirtualDatabase(String database, SOIF s)(Code) | | |
|
|