Java Doc for WikiPage.java in  » Wiki-Engine » JSPWiki » com » ecyrd » jspwiki » 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 » Wiki Engine » JSPWiki » com.ecyrd.jspwiki 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.ecyrd.jspwiki.WikiPage

All known Subclasses:   com.ecyrd.jspwiki.attachment.Attachment,
WikiPage
public class WikiPage implements Cloneable,Comparable(Code)
Simple wrapper class for the Wiki page attributes. The Wiki page content is moved around in Strings, though.


Field Summary
final public static  StringALIAS
     A special variable name for storing a page alias.
final public static  StringCHANGENOTE
     A special variable name for storing a changenote.
final public static  StringDESCRIPTION
     "Summary" is a short summary of the page.
final public static  StringREDIRECT
    

Constructor Summary
public  WikiPage(WikiEngine engine, String name)
     Create a new WikiPage using a given engine and name.

Method Summary
public  Objectclone()
     Creates a deep clone of a WikiPage.
public  intcompareTo(Object o)
     Compares a page with another.
public  booleanequals(Object o)
     A page is equal to another page if its name and version are equal.
public  AclgetAcl()
     Returns the Acl for this page.
public  ObjectgetAttribute(String key)
     A WikiPage may have a number of attributes, which might or might not be available.
public  MapgetAttributes()
     Returns the full attributes Map, in case external code needs to iterate through the attributes. The attribute Map.
public  StringgetAuthor()
     Returns author name, or null, if no author has been defined.
public  DategetLastModified()
     Returns the date when this page was last modified.
public  StringgetName()
     Returns the name of the page.
public  longgetSize()
     Returns the size of the page. the size of the page.
public  intgetVersion()
     Returns the version that this WikiPage instance represents.
public  StringgetWiki()
    
public  booleanhasMetadata()
     Returns true if the page has valid metadata; that is, it has been parsed.
public  inthashCode()
    
public  voidinvalidateMetadata()
     This method will remove all metadata from the page.
public  ObjectremoveAttribute(String key)
     Removes an attribute from the page, if it exists.
public  voidsetAcl(Acl acl)
     Sets the Acl for this page.
public  voidsetAttribute(String key, Object attribute)
     Sets an metadata attribute.
public  voidsetAuthor(String author)
     Sets the author of the page.
public  voidsetHasMetadata()
     Sets the metadata flag to true.
public  voidsetLastModified(Date date)
     Sets the last modification date.
public  voidsetSize(long size)
     Sets the size.
public  voidsetVersion(int version)
     Sets the page version.
public  StringtoString()
     Returns a debug-suitable version of the page.

Field Detail
ALIAS
final public static String ALIAS(Code)
A special variable name for storing a page alias.



CHANGENOTE
final public static String CHANGENOTE(Code)
A special variable name for storing a changenote.



DESCRIPTION
final public static String DESCRIPTION(Code)
"Summary" is a short summary of the page. It is a String.



REDIRECT
final public static String REDIRECT(Code)
A special variable name for storing a redirect note




Constructor Detail
WikiPage
public WikiPage(WikiEngine engine, String name)(Code)
Create a new WikiPage using a given engine and name.
Parameters:
  engine - The WikiEngine that owns this page.
Parameters:
  name - The name of the page.




Method Detail
clone
public Object clone()(Code)
Creates a deep clone of a WikiPage. Strings are not cloned, since they're immutable. Attributes are not cloned, only the internal HashMap (so if you modify the contents of a value of an attribute, these will reflect back to everyone). A deep clone of the WikiPage



compareTo
public int compareTo(Object o)(Code)
Compares a page with another. The primary sorting order is according to page name, and if they have the same name, then according to the page version.
Parameters:
  o - The object to compare against -1, 0 or 1



equals
public boolean equals(Object o)(Code)
A page is equal to another page if its name and version are equal.



getAcl
public Acl getAcl()(Code)
Returns the Acl for this page. May return null, in case there is no Acl defined, or it has not yet been set by WikiPage.setAcl(Acl) . The access control list. May return null, if there is no acl.



getAttribute
public Object getAttribute(String key)(Code)
A WikiPage may have a number of attributes, which might or might not be available. Typically attributes are things that do not need to be stored with the wiki page to the page repository, but are generated on-the-fly. A provider is not required to save them, but they can do that if they really want.
Parameters:
  key - The key using which the attribute is fetched The attribute. If the attribute has not been set, returns null.



getAttributes
public Map getAttributes()(Code)
Returns the full attributes Map, in case external code needs to iterate through the attributes. The attribute Map. Please note that this is a directreference, not a copy.



getAuthor
public String getAuthor()(Code)
Returns author name, or null, if no author has been defined. Author name, or possibly null.



getLastModified
public Date getLastModified()(Code)
Returns the date when this page was last modified. The last modification date



getName
public String getName()(Code)
Returns the name of the page. The page name.



getSize
public long getSize()(Code)
Returns the size of the page. the size of the page.
since:
   2.1.109



getVersion
public int getVersion()(Code)
Returns the version that this WikiPage instance represents. the version number of this page.



getWiki
public String getWiki()(Code)
Returns the wiki nanme for this page The name of the wiki.



hasMetadata
public boolean hasMetadata()(Code)
Returns true if the page has valid metadata; that is, it has been parsed. Note that this method is a kludge to support our pre-3.0 metadata system, and as such will go away with the new API. true, if the page has metadata.



hashCode
public int hashCode()(Code)



invalidateMetadata
public void invalidateMetadata()(Code)
This method will remove all metadata from the page.



removeAttribute
public Object removeAttribute(String key)(Code)
Removes an attribute from the page, if it exists.
Parameters:
  key - The key for the attribute If the attribute existed, returns the object.
since:
   2.1.111



setAcl
public void setAcl(Acl acl)(Code)
Sets the Acl for this page. Note that method does not persist the Acl itself to back-end storage or in page markup; it merely sets the internal field that stores the Acl. To persist the Acl, callers should invoke com.ecyrd.jspwiki.auth.acl.AclManager.setPermissions(WikiPageAcl) .
Parameters:
  acl - The Acl to set



setAttribute
public void setAttribute(String key, Object attribute)(Code)
Sets an metadata attribute.
See Also:   WikiPage.getAttribute()
Parameters:
  key - The key for the attribute used to fetch the attribute later on.
Parameters:
  attribute - The attribute value



setAuthor
public void setAuthor(String author)(Code)
Sets the author of the page. Typically called only by the provider.
Parameters:
  author - The author name.



setHasMetadata
public void setHasMetadata()(Code)
Sets the metadata flag to true. Never call.



setLastModified
public void setLastModified(Date date)(Code)
Sets the last modification date. In general, this is only changed by the provider.
Parameters:
  date - The date



setSize
public void setSize(long size)(Code)
Sets the size. Typically called by the provider only.
Parameters:
  size - The size of the page.
since:
   2.1.109



setVersion
public void setVersion(int version)(Code)
Sets the page version. In general, this is only changed by the provider.
Parameters:
  version - The version number



toString
public String toString()(Code)
Returns a debug-suitable version of the page. A debug string.



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.