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


org.jasig.portal.layout.IUserLayoutManager

All known Subclasses:   org.jasig.portal.layout.immutable.ImmutableUserLayoutManagerWrapper,  org.jasig.portal.layout.dlm.DistributedLayoutManager,  org.jasig.portal.layout.simple.SimpleUserLayoutManager,  org.jasig.portal.layout.TransientUserLayoutManagerWrapper,
IUserLayoutManager
public interface IUserLayoutManager (Code)
An interface for abstracting operations performed on the user layout.
author:
   Peter Kharchenko pkharchenko@interactivebusiness.com"
author:
   Michael Ivanov
version:
   1.1




Method Summary
public  booleanaddLayoutEventListener(LayoutEventListener l)
    
public  IUserLayoutNodeDescriptionaddNode(IUserLayoutNodeDescription node, String parentId, String nextSiblingId)
     Add a new node to a current user layout.
Parameters:
  node - an UserLayoutNodeDescription value of a node to be added (Id doesn't have to be set)
Parameters:
  parentId - a String id of a folder to which the new node (channel or folder) should be added.
Parameters:
  nextSiblingId - a String an id of a sibling node (channel or folder) prior to which the new node should be inserted.
public  booleancanAddNode(IUserLayoutNodeDescription node, String parentId, String nextSiblingId)
     Test if a particular node can be added at a given location.
Parameters:
  node - an UserLayoutNodeDescription value describing the node to be added.
Parameters:
  parentId - a String id of a parent to which the node to be added.
Parameters:
  nextSiblingId - a String id of a sibling prior to which the node to be inserted.
public  booleancanDeleteNode(String nodeId)
     Tests if a particular node can be deleted.
Parameters:
  nodeId - a String node id.
public  booleancanMoveNode(String nodeId, String parentId, String nextSiblingId)
     Test if a particular node can be moved to a given location.
public  booleancanUpdateNode(IUserLayoutNodeDescription node)
     Test if a certain node can be updated.
Parameters:
  node - a IUserLayoutNodeDescription node id.
public  IUserLayoutNodeDescriptioncreateNodeDescription(int nodeType)
    
public  booleandeleteNode(String nodeId)
     Delete a node (folder or a channel) from a user layout.
public  StringgetCacheKey()
     Return a cache key, uniqly corresponding to the composition and the structure of the user layout.
public  EnumerationgetChildIds(String nodeId)
     Returns a list of child node Ids for a given node.
public  intgetDepth(String nodeId)
     Returns the depth of a node in the layout tree.
public  intgetLayoutId()
    
public  StringgetNextSiblingId(String nodeId)
     Determine an Id of a next sibling node.
public  IUserLayoutNodeDescriptiongetNode(String nodeId)
     Obtain a description of a node (channel or a folder) in a given user layout.
Parameters:
  nodeId - a String channel subscribe id or folder id.
public  StringgetParentId(String nodeId)
     Returns an Id of a parent user layout node.
public  StringgetPreviousSiblingId(String nodeId)
     Determine an Id of a previous sibling node.
public  StringgetRootFolderId()
     Returns an id of the root folder.
public  StringgetSubscribeId(String fname)
     Returns a subscription id using the supplied functional name.
public  IUserLayoutgetUserLayout()
     Gets a user layout (with appropriate markings).
public  voidgetUserLayout(ContentHandler ch)
    
public  voidgetUserLayout(String nodeId, ContentHandler ch)
    
public  DocumentgetUserLayoutDOM()
    
public  voidloadUserLayout()
    
public  voidmarkAddTargets(IUserLayoutNodeDescription node)
     Ask manager to output markings at the locations where a given node can be added.
public  voidmarkMoveTargets(String nodeId)
     Ask manager to output markings at the locations where a given node can be moved.
public  booleanmoveNode(String nodeId, String parentId, String nextSiblingId)
     Move a node (channel or folder) from one location to another.
Parameters:
  nodeId - a String value of a node Id.
Parameters:
  parentId - a String id of a folder to which the node should be moved.
Parameters:
  nextSiblingId - a String id of a sibling node (folder or channel) prior to which the node should be placed.
public  voidprocessLayoutParameters(IPerson person, UserPreferences userPrefs, HttpServletRequest req)
     Allows layout manager specific handling of user request parameter processing potentially including passing of specific parameters to the structure and theme transformations via the user preferences object.
public  booleanremoveLayoutEventListener(LayoutEventListener l)
     Remove a registered layout event listener.
public  voidsaveUserLayout()
    
public  voidsetLayoutStore(IUserLayoutStore ls)
     Set a user layout store implementation.
public  voidsetUserLayout(IUserLayout userLayout)
     Sets a user layout (with appropriate markings).
public  booleanupdateNode(IUserLayoutNodeDescription node)
     Update a given node.
Parameters:
  node - an UserLayoutNodeDescription value with a valid id.



Method Detail
addLayoutEventListener
public boolean addLayoutEventListener(LayoutEventListener l)(Code)
Register a layout event listener
Parameters:
  l - a LayoutEventListener object a boolean success status



addNode
public IUserLayoutNodeDescription addNode(IUserLayoutNodeDescription node, String parentId, String nextSiblingId) throws PortalException(Code)
Add a new node to a current user layout.
Parameters:
  node - an UserLayoutNodeDescription value of a node to be added (Id doesn't have to be set)
Parameters:
  parentId - a String id of a folder to which the new node (channel or folder) should be added.
Parameters:
  nextSiblingId - a String an id of a sibling node (channel or folder) prior to which the new node should be inserted. an UserLayoutNodeDescription value with a newly determined Id.
exception:
  PortalException - if an error occurs



canAddNode
public boolean canAddNode(IUserLayoutNodeDescription node, String parentId, String nextSiblingId) throws PortalException(Code)
Test if a particular node can be added at a given location.
Parameters:
  node - an UserLayoutNodeDescription value describing the node to be added.
Parameters:
  parentId - a String id of a parent to which the node to be added.
Parameters:
  nextSiblingId - a String id of a sibling prior to which the node to be inserted. (null to append at the end) a boolean value
exception:
  PortalException - if an error occurs



canDeleteNode
public boolean canDeleteNode(String nodeId) throws PortalException(Code)
Tests if a particular node can be deleted.
Parameters:
  nodeId - a String node id. a boolean value
exception:
  PortalException - if an error occurs



canMoveNode
public boolean canMoveNode(String nodeId, String parentId, String nextSiblingId) throws PortalException(Code)
Test if a particular node can be moved to a given location.
Parameters:
  nodeId - a String id of a node to be moved.
Parameters:
  parentId - a String id of a parent to which the node to be moved.
Parameters:
  nextSiblingId - a String id of a sibling prior to which the node is to be inserted (null to append at the end) a boolean value
exception:
  PortalException - if an error occurs



canUpdateNode
public boolean canUpdateNode(IUserLayoutNodeDescription node) throws PortalException(Code)
Test if a certain node can be updated.
Parameters:
  node - a IUserLayoutNodeDescription node id. a boolean value
exception:
  PortalException - if an error occurs



createNodeDescription
public IUserLayoutNodeDescription createNodeDescription(int nodeType) throws PortalException(Code)
A factory method to create an empty IUserLayoutNodeDescription instance
Parameters:
  nodeType - a node type constant from IUserLayoutNodeDescription interface an IUserLayoutNodeDescription instance
exception:
  PortalException - if the error occurs.



deleteNode
public boolean deleteNode(String nodeId) throws PortalException(Code)
Delete a node (folder or a channel) from a user layout.
Parameters:
  nodeId - a String id (channel subscribe id or folder id) a boolean value noting if the operation was successful
exception:
  PortalException - if an error occurs



getCacheKey
public String getCacheKey() throws PortalException(Code)
Return a cache key, uniqly corresponding to the composition and the structure of the user layout. a String value
exception:
  PortalException - if an error occurs



getChildIds
public Enumeration getChildIds(String nodeId) throws PortalException(Code)
Returns a list of child node Ids for a given node.
Parameters:
  nodeId - a String value a List of String child node Ids.
exception:
  PortalException - if an error occurs



getDepth
public int getDepth(String nodeId) throws PortalException(Code)
Returns the depth of a node in the layout tree.
Parameters:
  nodeId - a String value a depth value
exception:
  PortalException - if an error occurs



getLayoutId
public int getLayoutId()(Code)
Returns a layout Id associated with this manager/ an int layout Id value;



getNextSiblingId
public String getNextSiblingId(String nodeId) throws PortalException(Code)
Determine an Id of a next sibling node.
Parameters:
  nodeId - a String value a String Id value of a next sibling node, or null if this is the last sibling.
exception:
  PortalException - if an error occurs



getNode
public IUserLayoutNodeDescription getNode(String nodeId) throws PortalException(Code)
Obtain a description of a node (channel or a folder) in a given user layout.
Parameters:
  nodeId - a String channel subscribe id or folder id. an UserLayoutNodeDescription value
exception:
  PortalException - if an error occurs



getParentId
public String getParentId(String nodeId) throws PortalException(Code)
Returns an Id of a parent user layout node. The user layout root node always has ID= IUserLayout.ROOT_NODE_NAME
Parameters:
  nodeId - a String value a String value
exception:
  PortalException - if an error occurs



getPreviousSiblingId
public String getPreviousSiblingId(String nodeId) throws PortalException(Code)
Determine an Id of a previous sibling node.
Parameters:
  nodeId - a String value a String Id value of a previous sibling node, or null if this is the first sibling.
exception:
  PortalException - if an error occurs



getRootFolderId
public String getRootFolderId()(Code)
Returns an id of the root folder. a String value



getSubscribeId
public String getSubscribeId(String fname) throws PortalException(Code)
Returns a subscription id using the supplied functional name.
Parameters:
  fname - the functional name to lookup a String subscription id



getUserLayout
public IUserLayout getUserLayout() throws PortalException(Code)
Gets a user layout (with appropriate markings). the user layout
exception:
  PortalException - if an error occurs



getUserLayout
public void getUserLayout(ContentHandler ch) throws PortalException(Code)
Output user layout (with appropriate markings) into a ContentHandler
Parameters:
  ch - a ContentHandler value
exception:
  PortalException - if an error occurs



getUserLayout
public void getUserLayout(String nodeId, ContentHandler ch) throws PortalException(Code)
Output subtree of a user layout (with appropriate markings) defined by a particular node into a ContentHandler
Parameters:
  nodeId - a String a node determining a user layout subtree.
Parameters:
  ch - a ContentHandler value
exception:
  PortalException - if an error occurs



getUserLayoutDOM
public Document getUserLayoutDOM() throws PortalException(Code)



loadUserLayout
public void loadUserLayout() throws PortalException(Code)
Signal manager to load a user layout from a database
exception:
  PortalException - if an error occurs



markAddTargets
public void markAddTargets(IUserLayoutNodeDescription node) throws PortalException(Code)
Ask manager to output markings at the locations where a given node can be added. The marks will appear next time getUserLayout method is called.
Parameters:
  node - an UserLayoutNodeDescription value or null to stop outputting add markings.
exception:
  PortalException - if an error occurs



markMoveTargets
public void markMoveTargets(String nodeId) throws PortalException(Code)
Ask manager to output markings at the locations where a given node can be moved. The marks will appear next time getUserLayout method is called.
Parameters:
  nodeId - a String value or null to stop outputting move markings.
exception:
  PortalException - if an error occurs



moveNode
public boolean moveNode(String nodeId, String parentId, String nextSiblingId) throws PortalException(Code)
Move a node (channel or folder) from one location to another.
Parameters:
  nodeId - a String value of a node Id.
Parameters:
  parentId - a String id of a folder to which the node should be moved.
Parameters:
  nextSiblingId - a String id of a sibling node (folder or channel) prior to which the node should be placed. (null to append at the end) a boolean value noting if the operation was successful
exception:
  PortalException - if an error occurs



processLayoutParameters
public void processLayoutParameters(IPerson person, UserPreferences userPrefs, HttpServletRequest req) throws PortalException(Code)
Allows layout manager specific handling of user request parameter processing potentially including passing of specific parameters to the structure and theme transformations via the user preferences object.



removeLayoutEventListener
public boolean removeLayoutEventListener(LayoutEventListener l)(Code)
Remove a registered layout event listener.
Parameters:
  l - a LayoutEventListener object a boolean success status



saveUserLayout
public void saveUserLayout() throws PortalException(Code)
Signal manager to persist user layout to a database
exception:
  PortalException - if an error occurs



setLayoutStore
public void setLayoutStore(IUserLayoutStore ls)(Code)
Set a user layout store implementation.
Parameters:
  ls - an IUserLayoutStore value



setUserLayout
public void setUserLayout(IUserLayout userLayout) throws PortalException(Code)
Sets a user layout (with appropriate markings).
Parameters:
  userLayout - the user layout
exception:
  PortalException - if an error occurs



updateNode
public boolean updateNode(IUserLayoutNodeDescription node) throws PortalException(Code)
Update a given node.
Parameters:
  node - an UserLayoutNodeDescription value with a valid id. a boolean value noting if the operation was successful
exception:
  PortalException - if an error occurs



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