Java Doc for CommunityImpl.java in  » Portal » Open-Portal » com » sun » portal » community » impl » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Portal » Open Portal » com.sun.portal.community.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.portal.community.impl.CommunityImpl

CommunityImpl
public class CommunityImpl implements Community,TemplateTokens(Code)

Inner Class :class CommunityServiceResult

Field Summary
final public static  StringNOTIFICATION_RB_BASE
    

Constructor Summary
public  CommunityImpl(HttpServletRequest req, HttpServletResponse res, SSOToken ssoToken, CommunityId cid)
    

Method Summary
public  voidacceptInvitation(String userId)
    
public  voidaddMember(String userId)
     Adds a member to the community.
public  voidaddOwner(String userId)
     Adds a owner.
 voidaddSearchIndex(String category, String description, String ownerId)
    
public  voidaddUser(String userId, RoleId rid)
     Add a user to the community.
public  voidapproveMembershipRequest(String userId)
    
public  voidbanUser(String userId)
    
protected  SetcollectChannelNames(Collection dpDocs)
     Get a union set of channel names that appear in given set of display profiles.
public static  CMCRolePrincipalconvertToCMCRolePrincipal(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  StringconvertToServiceRole(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  voiddenyInvitation(String userId)
    
public  StringgetCategory()
    
protected  byte[]getCommunityDP(CMCNode cNode, CMCRolePrincipal rPrincipal)
    
protected  MapgetCommunityDPs(CMCNode cNode)
    
public  CommunityIdgetCommunityId()
    
public  StringgetContentsSearchDb()
    
public  ListgetContentsSearchDbs()
    
public  byte[]getDP(DPName dpName)
    
protected  DPRootgetDPRoot(byte[] dpDoc)
    
public  StringgetDescription()
    
public  StringgetDiscussionsSearchDb()
    
protected  MapgetMergedDPRoots(Map baseDPs)
     Build DPRoot from the base display profile then merge in the global display profile.
 StringgetPortalId()
    
protected  MapgetRoleTemplates(String templateId, Map tokenMapping)
     Get the Template for the given templateID.
public  StringgetSearchDb()
    
 StringgetSearchDbPrefix()
    
 StringgetSearchUrl()
    
public  SetgetUsers()
    
public  SetgetUsers(Set roleIds)
    
protected  SOIFInputStreamgetVirtualDatabaseRDs(String database)
    
public  voidinviteUser(String userId, String message)
    
public  booleanisDeleted()
    
public  booleanisDisabled()
    
public  booleanisListed()
    
public  booleanisMembershipRestricted()
     Return true if the community membership is restricted.
public  booleanisSecure()
     Returns true if the community content is secured based.
public  voidlogRecord(Logger logger, Level level, String msgKey, Throwable th, Object parameter)
    
public  voidlogRecord(Logger logger, Level level, String msgKey, Throwable th, Object[] parameters)
    
protected  MapprovisionServiceHelper(CMCPrincipal cPrincipal, String event, String channelName, Map mergedDPRoots)
    
 voidprovisionServices(String templateId, Map tokenMapping)
    
protected  CommunityServiceResultprovisionServicesHelper(CMCNode cNode, String event, Set channelNames, Map mergedDPRoots)
     Provision services corresponding to the channel names.
protected  voidprovisionUserService(CMCPrincipal cPrincipal, String userId, String channelName, DPRoot dpRoot, CMCRolePrincipal rPrincipal)
     Provision a service for a user.
protected  voidprovisionUserServiceHelper(CMCPrincipal cPrincipal, String userId, String channelName, DPRoot dpRoot, CMCRolePrincipal rPrincipal, boolean doProvision)
    
protected  voidprovisionUserServices(CMCPrincipal cmcp, String userId, CMCRolePrincipal rPrincipal)
     Provision services for a user.
protected  voidprovisionUserServicesHelper(CMCPrincipal cmcp, String userId, CMCRolePrincipal rPrincipal, boolean doProvision)
    
public  voidrejectMembershipRequest(String userId)
    
 voidremoveSearchIndexForCommunity()
    
 voidremoveSearchIndexForCommunityContent()
    
public  voidremoveUser(String userId, RoleId rid)
     Remove the user from the community.
protected  voidremoveVirtualDatabase(String database)
    
 voidreprovisionServices(String event)
     Reprovision all services for the given event.
public  voidrequestMembership(String userId)
    
 voidsecureSearchIndexForCommunityContent(String ctyMemberRole)
    
public  voidsetCategory(String category)
    
protected  voidsetCommunityDPs(CMCNode cNode, Map dpDocs)
     First convert the given map (CMCRolePrincipal to its corresponding DPRoot) to ConfigTable.
public  voidsetDP(DPName dpName, byte[] dp)
    
public  voidsetDeleted(boolean deleted)
    
public  voidsetDescription(String description)
    
public  voidsetDisabled(boolean disabled)
    
public  voidsetListed(boolean isListed)
    
public  voidsetMembershipRestricted(boolean isMembershipRestricted)
     Set whether community membership is restricted.
public  voidsetSecure(boolean isSecure)
     Set whether the community content needs to be secured.
public  voidunbanUser(String userId)
    
 voidunprovisionServices()
    
protected  voidunprovisionUserService(CMCPrincipal cPrincipal, String userId, String channelName, DPRoot dpRoot, CMCRolePrincipal rPrincipal)
     Unprovision a service for a user.
protected  voidunprovisionUserServices(CMCPrincipal cmcp, String userId, CMCRolePrincipal rPrincipal)
     Unprovision services for a user.
protected  voidupdateVirtualDatabase(String database, SOIF s)
    

Field Detail
NOTIFICATION_RB_BASE
final public static String NOTIFICATION_RB_BASE(Code)




Constructor Detail
CommunityImpl
public CommunityImpl(HttpServletRequest req, HttpServletResponse res, SSOToken ssoToken, CommunityId cid) throws CommunityDoesNotExistException, CommunityException(Code)




Method Detail
acceptInvitation
public void acceptInvitation(String userId) throws CommunityServiceException, CommunityException(Code)
Accept invitation to the community



addMember
public void addMember(String userId) throws CommunityServiceException, CommunityException(Code)
Adds a member to the community. This method assigns the user RoleId.MEMBER role.



addOwner
public void addOwner(String userId) throws CommunityServiceException, CommunityException(Code)
Adds a owner. This method assigns the user RoleId.OWNER role.



addSearchIndex
void addSearchIndex(String category, String description, String ownerId) throws CommunityException(Code)



addUser
public void addUser(String userId, RoleId rid) throws CommunityServiceException, CommunityException(Code)
Add a user to the community. Invoke user provision on all services offered by the community.



approveMembershipRequest
public void approveMembershipRequest(String userId) throws CommunityServiceException, CommunityException(Code)
Approve the membership request for the user



banUser
public void banUser(String userId) throws CommunityServiceException, CommunityException(Code)
Ban a user from the community



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



denyInvitation
public void denyInvitation(String userId) throws CommunityServiceException, CommunityException(Code)
Accept invitation to the community



getCategory
public String getCategory() throws CommunityException(Code)
Get the classification for the community



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



getCommunityId
public CommunityId getCommunityId()(Code)



getContentsSearchDb
public String getContentsSearchDb() throws CommunityException(Code)



getContentsSearchDbs
public List getContentsSearchDbs() throws CommunityException(Code)



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



getDPRoot
protected DPRoot getDPRoot(byte[] dpDoc) throws CommunityException(Code)
get DPRoot object from a display profile document



getDescription
public String getDescription() throws CommunityException(Code)
Get the description for the community



getDiscussionsSearchDb
public String getDiscussionsSearchDb() throws CommunityException(Code)



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



getPortalId
String getPortalId()(Code)



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



getSearchDb
public String getSearchDb()(Code)



getSearchDbPrefix
String getSearchDbPrefix()(Code)



getSearchUrl
String getSearchUrl()(Code)



getUsers
public Set getUsers() throws CommunityException(Code)



getUsers
public Set getUsers(Set roleIds) throws CommunityException(Code)



getVirtualDatabaseRDs
protected SOIFInputStream getVirtualDatabaseRDs(String database)(Code)



inviteUser
public void inviteUser(String userId, String message) throws CommunityServiceException, CommunityException(Code)
Invite User to the community



isDeleted
public boolean isDeleted() throws CommunityException(Code)



isDisabled
public boolean isDisabled() throws CommunityException(Code)



isListed
public boolean isListed() throws CommunityException(Code)
Returns whether community is listed or not



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.



logRecord
public void logRecord(Logger logger, Level level, String msgKey, Throwable th, Object parameter)(Code)



logRecord
public void logRecord(Logger logger, Level level, String msgKey, Throwable th, Object[] parameters)(Code)



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



provisionServices
void provisionServices(String templateId, Map tokenMapping) throws CommunityServiceException, CommunityException(Code)



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 -



provisionUserServiceHelper
protected void provisionUserServiceHelper(CMCPrincipal cPrincipal, String userId, String channelName, DPRoot dpRoot, CMCRolePrincipal rPrincipal, boolean doProvision) throws ServiceException, CommunityException(Code)



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 -



provisionUserServicesHelper
protected void provisionUserServicesHelper(CMCPrincipal cmcp, String userId, CMCRolePrincipal rPrincipal, boolean doProvision) throws CommunityServiceException, CommunityException(Code)



rejectMembershipRequest
public void rejectMembershipRequest(String userId) throws CommunityServiceException, CommunityException(Code)
Reject the membership request



removeSearchIndexForCommunity
void removeSearchIndexForCommunity() throws CommunityException(Code)



removeSearchIndexForCommunityContent
void removeSearchIndexForCommunityContent() throws CommunityException(Code)



removeUser
public void removeUser(String userId, RoleId rid) throws CommunityServiceException, CommunityException(Code)
Remove the user from the community.



removeVirtualDatabase
protected void removeVirtualDatabase(String database)(Code)



reprovisionServices
void reprovisionServices(String event) throws CommunityServiceException, CommunityException(Code)
Reprovision all services for the given event.
throws:
  com.sun.portal.community.mgmt.CommunityException -



requestMembership
public void requestMembership(String userId) throws CommunityServiceException, CommunityException(Code)
Register the membership request for a user



secureSearchIndexForCommunityContent
void secureSearchIndexForCommunityContent(String ctyMemberRole) throws CommunityException(Code)



setCategory
public void setCategory(String category) throws CommunityException(Code)
Set the classification for the community



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



setDeleted
public void setDeleted(boolean deleted) throws CommunityServiceException, CommunityException(Code)



setDescription
public void setDescription(String description) throws CommunityException(Code)
Set the description for the community



setDisabled
public void setDisabled(boolean disabled) throws CommunityServiceException, CommunityException(Code)



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.



unbanUser
public void unbanUser(String userId) throws CommunityServiceException, CommunityException(Code)
Unban a user from the community



unprovisionServices
void unprovisionServices() throws CommunityServiceException, CommunityException(Code)



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)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.