Java Doc for ChannelRegistryManager.java in  » Portal » uPortal_rel-2-6-1-GA » org » jasig » portal » 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 » uPortal_rel 2 6 1 GA » org.jasig.portal 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jasig.portal.ChannelRegistryManager

ChannelRegistryManager
public class ChannelRegistryManager (Code)
Manages the channel registry which is a listing of published channels that one can subscribe to (add to their layout). Also currently manages the channel types data and CPD documents. (maybe these should be managed by another class -Ken)
author:
   Ken Weiner, kweiner@unicon.net
version:
   $Revision: 36546 $


Field Summary
final protected static  intchanTypesCacheTimeout
     Timeout, in seconds, of the cache of channel types.
final protected static  SmartCachechannelRegistryCache
    
final protected static  SmartCachechannelTypesCache
    
final protected static  SmartCachecpdCache
    
final protected static  intcpdCacheTimeout
     Timeout, in seconds, of the cache of channel publishing documents.
final protected static  IChannelRegistryStorecrs
    
final protected static  booleanlocaleAware
     Boolean indicating whether internationalization will be used.
final protected static  intregistryCacheTimeout
     Timeout, in seconds, of the cache of the registry of channels.


Method Summary
public static  DocumentgetCPD(String chanTypeID)
    
public static  NodeListgetCategories(String channelPublishId)
     Looks in channel registry for a channel element matching the given channel ID.
public static  ElementgetChannel(String channelPublishId)
     Looks in channel registry for a channel element matching the given channel ID.
public static  DocumentgetChannelRegistry()
     Returns a copy of the channel registry as a Document.
public static  DocumentgetChannelRegistry(IPerson person)
     Returns the channel registry as a Document.
public static  DocumentgetChannelRegistryXML()
     Returns an XML document which describes the channel registry.
public static  DocumentgetChannelTypes()
     Returns the publishable channel types as a Document.
public static  DocumentgetChannelTypesXML()
     Create XML representing the channel types.
public static  ElementgetChannelXML(String subscribeId, ChannelDefinition channelDef)
     Create XML representing this channel definition.
public static  voidpublishChannel(Element channel, String[] categoryIDs, IGroupMember[] groupMembers, IPerson publisher)
     Publishes a channel.
public static  voidremoveChannel(String channelID, IPerson person)
     Removes a channel from the channel registry.
public static  voidsetChannelXML(Element channelE, ChannelDefinition channelDef)
     Update a channel definition with data from a channel XML element.

Field Detail
chanTypesCacheTimeout
final protected static int chanTypesCacheTimeout(Code)
Timeout, in seconds, of the cache of channel types.



channelRegistryCache
final protected static SmartCache channelRegistryCache(Code)



channelTypesCache
final protected static SmartCache channelTypesCache(Code)



cpdCache
final protected static SmartCache cpdCache(Code)



cpdCacheTimeout
final protected static int cpdCacheTimeout(Code)
Timeout, in seconds, of the cache of channel publishing documents.



crs
final protected static IChannelRegistryStore crs(Code)



localeAware
final protected static boolean localeAware(Code)
Boolean indicating whether internationalization will be used.



registryCacheTimeout
final protected static int registryCacheTimeout(Code)
Timeout, in seconds, of the cache of the registry of channels.





Method Detail
getCPD
public static Document getCPD(String chanTypeID) throws PortalException(Code)
Returns a CPD (channel publishing document) as a Document
Parameters:
  chanTypeID - the channel type ID, "-1" if channel type is "custom" the CPD document matching the chanTypeID, null if "custom" channel
throws:
  org.jasig.portal.PortalException -



getCategories
public static NodeList getCategories(String channelPublishId) throws PortalException(Code)
Looks in channel registry for a channel element matching the given channel ID.
Parameters:
  channelPublishId - the channel publish ID the channel element matching chanID
throws:
  org.jasig.portal.PortalException -



getChannel
public static Element getChannel(String channelPublishId) throws PortalException(Code)
Looks in channel registry for a channel element matching the given channel ID.
Parameters:
  channelPublishId - the channel publish id the channel element matching specified channel publish id
throws:
  PortalException -



getChannelRegistry
public static Document getChannelRegistry() throws PortalException(Code)
Returns a copy of the channel registry as a Document. This document is not filtered according to a user's channel permissions. For a filtered list, see getChannelRegistry(IPerson person) a copy of the channel registry as a Document



getChannelRegistry
public static Document getChannelRegistry(IPerson person) throws PortalException(Code)
Returns the channel registry as a Document. This document is filtered according to a user's channel permissions. the filtered channel registry as a Document



getChannelRegistryXML
public static Document getChannelRegistryXML() throws Exception(Code)
Returns an XML document which describes the channel registry. See uPortal's channelRegistry.dtd doc the channel registry document
throws:
  java.lang.Exception -



getChannelTypes
public static Document getChannelTypes() throws PortalException(Code)
Returns the publishable channel types as a Document. a list of channel types as a Document



getChannelTypesXML
public static Document getChannelTypesXML() throws Exception(Code)
Create XML representing the channel types. It will look something like this:

org.jasig.portal.channels.CImage Image Simple channel to display an image with optional caption and subcaption webpages/media/org/jasig/portal/channels/CImage/CImage.cpd org.jasig.portal.channels.CWebProxy Web Proxy Incorporate a dynamic HTML or XML application webpages/media/org/jasig/portal/channels/CWebProxy/CWebProxy.cpd

channelTypesXML, the XML representing the channel types
throws:
  java.lang.Exception -



getChannelXML
public static Element getChannelXML(String subscribeId, ChannelDefinition channelDef)(Code)
Create XML representing this channel definition. I don't think this method really belongs in the ChannelRegistryManager since this XML fragment is related more to a channel instance, but we'll hold it here for now and find a better place for it later :)
Parameters:
  subscribeId - the channel subscibe ID, formerly called instance ID
Parameters:
  channelDef - a channel definition the XML representing this channel definition



publishChannel
public static void publishChannel(Element channel, String[] categoryIDs, IGroupMember[] groupMembers, IPerson publisher) throws Exception(Code)
Publishes a channel.
Parameters:
  channel - the channel XML fragment
Parameters:
  categoryIDs - a list of categories that the channel belongs to
Parameters:
  groupMembers - a list of groups and/or people that are permitted to subscribe to and view the channel
Parameters:
  publisher - the user ID of the channel publisher
throws:
  java.lang.Exception -



removeChannel
public static void removeChannel(String channelID, IPerson person) throws Exception(Code)
Removes a channel from the channel registry.
Parameters:
  channelID - the channel ID
Parameters:
  person - the person removing the channel
throws:
  java.lang.Exception -



setChannelXML
public static void setChannelXML(Element channelE, ChannelDefinition channelDef)(Code)
Update a channel definition with data from a channel XML element. I don't think this method really belongs in the ChannelRegistryManager since this XML fragment contains a channel subscribe ID, but we'll hold it here for now and find a better place for it later :) Note that this method does not set the ID, publisher ID, approver ID, pubish date, or approval date.
Parameters:
  channelE - an XML element representing a channel definition
Parameters:
  channelDef - the channel definition to update



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.