Java Doc for ContentInfo.java in  » Web-Framework » rife-1.6.1 » com » uwyn » rife » cmf » 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 » Web Framework » rife 1.6.1 » com.uwyn.rife.cmf 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.uwyn.rife.site.Validation
      com.uwyn.rife.cmf.ContentInfo

All known Subclasses:   com.uwyn.rife.cmf.dam.contentmanagers.DatabaseContentInfo,
ContentInfo
public class ContentInfo extends Validation (Code)
This class represents all the information that is stored in the backend about a certain com.uwyn.rife.cmf.Content Content instance.

The setters of this class are only present to make it possible for the back-ends to automatically populate the information.
author:
   Geert Bevin (gbevin[remove] at uwyn dot com)
version:
   $Revision: 3634 $
since:
   1.0




Constructor Summary
public  ContentInfo()
     Instantiates a new ContentInfo instance.

Method Summary
public  voidactivateValidation()
    
public  StringgetAttribute(String name)
     Retrieves the value of a named content attribute.
public  Map<String, String>getAttributes()
     Retrieves the attributes map of the stored Content instance.
public  TimestampgetCreated()
     Retrieves the moment when the Content instance was stored.
public  StringgetFormattedSize()
     Retrieves the size of the stored Content instance as a formatted string.
public  StringgetMimeType()
     Retrieves the mime type of the stored Content instance.
public  StringgetName()
     Retrieves the name of the stored Content instance.
public  StringgetOptimalPath()
     Retrieves the path of the stored Content instance in the most optimal form for usage in the cmf.
public  StringgetPath()
     Retrieves the path of the stored Content instance.
public  Map<String, String>getProperties()
     Retrieves the content data properties of the stored Content instance.
public  StringgetProperty(String name)
     Retrieves the value of a named content property.
public  intgetSize()
     Retrieves the size of the stored Content instance.
public  intgetVersion()
     Retrieves the version of the stored Content instance.
public  booleanhasAttribute(String name)
     Indicates whether a specific named content attribute is present.
public  booleanhasAttributes()
     Indicates whether named content attributes are present.
public  booleanhasName()
     Indicates whether the stored Content instance has a name.
public  booleanhasProperties()
     Indicates whether content data properties are present for the stored Content instance.
public  booleanhasProperty(String name)
     Indicates whether a specific named content property is present.
public  booleanisFragment()
     Retrieves wether the stored Content instance is a fragment or not.
public  voidsetAttributes(Map<String, String> attributes)
     Sets the attributes map of the stored Content instance.
public  voidsetCreated(Timestamp created)
     Sets the moment when the Content instance was stored.
public  voidsetFragment(boolean fragment)
     Sets wether the stored Content instance is a fragment or not.
public  voidsetMimeType(String mimeType)
     Sets the mime type of the stored Content instance.
public  voidsetName(String name)
     Sets the name of the stored Content instance.
public  voidsetPath(String path)
     Sets the path of the stored Content instance.
public  voidsetProperties(Map<String, String> properties)
     Sets the content data properties of the stored Content instance.
public  voidsetSize(int size)
     Sets the size of the stored Content instance.
public  voidsetVersion(int version)
     Sets the version of the stored Content instance.


Constructor Detail
ContentInfo
public ContentInfo()(Code)
Instantiates a new ContentInfo instance.




Method Detail
activateValidation
public void activateValidation()(Code)



getAttribute
public String getAttribute(String name)(Code)
Retrieves the value of a named content attribute.
Parameters:
  name - the name of the attribute the value of the named content attribute; or

null if no such attribute could be found
See Also:   ContentInfo.hasAttribute(String)
since:
   1.0




getAttributes
public Map<String, String> getAttributes()(Code)
Retrieves the attributes map of the stored Content instance. the attributes map
See Also:   ContentInfo.setAttributes(Map)
since:
   1.0



getCreated
public Timestamp getCreated()(Code)
Retrieves the moment when the Content instance was stored. the moment of creation
See Also:   ContentInfo.setCreated(Timestamp)
since:
   1.0



getFormattedSize
public String getFormattedSize()(Code)
Retrieves the size of the stored Content instance as a formatted string. the Content's formatted size
See Also:   ContentInfo.getSize()
since:
   1.0



getMimeType
public String getMimeType()(Code)
Retrieves the mime type of the stored Content instance. the Content's mime type textual identifier
See Also:   ContentInfo.setMimeType(String)
since:
   1.0



getName
public String getName()(Code)
Retrieves the name of the stored Content instance. null if the stored Content instancehas no name; or

the name of the content
See Also:   ContentInfo.setName(String)
See Also:   ContentInfo.hasName()
since:
   1.0




getOptimalPath
public String getOptimalPath()(Code)
Retrieves the path of the stored Content instance in the most optimal form for usage in the cmf. the Content's most optimal path
See Also:   ContentInfo.getPath()
since:
   1.0



getPath
public String getPath()(Code)
Retrieves the path of the stored Content instance. the Content's path
See Also:   ContentInfo.setPath(String)
See Also:   ContentInfo.getOptimalPath()
since:
   1.0



getProperties
public Map<String, String> getProperties()(Code)
Retrieves the content data properties of the stored Content instance. the content data properties; or

null if no content data properties are present
See Also:   ContentInfo.setProperties(Map)
See Also:   ContentInfo.hasProperties()
since:
   1.0




getProperty
public String getProperty(String name)(Code)
Retrieves the value of a named content property.
Parameters:
  name - the name of the property the value of the named content property; or

null if no such property could be found
See Also:   ContentInfo.hasProperty(String)
since:
   1.0




getSize
public int getSize()(Code)
Retrieves the size of the stored Content instance. the Content's size
See Also:   ContentInfo.setSize(int)
See Also:   ContentInfo.getFormattedSize()
since:
   1.0



getVersion
public int getVersion()(Code)
Retrieves the version of the stored Content instance. the Content's version
See Also:   ContentInfo.setVersion(int)
since:
   1.0



hasAttribute
public boolean hasAttribute(String name)(Code)
Indicates whether a specific named content attribute is present.
Parameters:
  name - the name of the attribute true if the name content attribute is present; or

false otherwise
See Also:   ContentInfo.getAttribute(String)
since:
   1.0




hasAttributes
public boolean hasAttributes()(Code)
Indicates whether named content attributes are present. true if named content attributes are present; or

false otherwise
See Also:   ContentInfo.setAttributes(Map)
See Also:   ContentInfo.getAttributes()
since:
   1.0




hasName
public boolean hasName()(Code)
Indicates whether the stored Content instance has a name. true if it has a name; or

false otherwise
See Also:   ContentInfo.setName(String)
See Also:   ContentInfo.getName()
since:
   1.0




hasProperties
public boolean hasProperties()(Code)
Indicates whether content data properties are present for the stored Content instance. true if properties are present; or

false otherwise
See Also:   ContentInfo.setProperties(Map)
See Also:   ContentInfo.getProperties()
since:
   1.0




hasProperty
public boolean hasProperty(String name)(Code)
Indicates whether a specific named content property is present.
Parameters:
  name - the name of the property true if the name content property is present; or

false otherwise
See Also:   ContentInfo.getProperty(String)
since:
   1.0




isFragment
public boolean isFragment()(Code)
Retrieves wether the stored Content instance is a fragment or not. true if it's a fragment; or

false otherwise
See Also:   ContentInfo.setFragment(boolean)
since:
   1.0




setAttributes
public void setAttributes(Map<String, String> attributes)(Code)
Sets the attributes map of the stored Content instance.
Parameters:
  attributes - the attributes map with String keys andvalue.
See Also:   ContentInfo.getAttributes()
since:
   1.0



setCreated
public void setCreated(Timestamp created)(Code)
Sets the moment when the Content instance was stored.
Parameters:
  created - the moment of creation
See Also:   ContentInfo.getCreated()
since:
   1.0



setFragment
public void setFragment(boolean fragment)(Code)
Sets wether the stored Content instance is a fragment or not.
Parameters:
  fragment - true if it's a fragment; or

false otherwise
See Also:   ContentInfo.isFragment()
since:
   1.0




setMimeType
public void setMimeType(String mimeType)(Code)
Sets the mime type of the stored Content instance.
Parameters:
  mimeType - the String that identifies the mime type
See Also:   ContentInfo.getMimeType()
since:
   1.0



setName
public void setName(String name)(Code)
Sets the name of the stored Content instance.
Parameters:
  name - the name
See Also:   ContentInfo.getName()
See Also:   ContentInfo.hasName()
since:
   1.0



setPath
public void setPath(String path)(Code)
Sets the path of the stored Content instance.

The path has to be unique and will be used to retrieve this particular Content.
Parameters:
  path - the absolute and unique path
See Also:   ContentInfo.getPath()
since:
   1.0




setProperties
public void setProperties(Map<String, String> properties)(Code)
Sets the content data properties of the stored Content instance.
Parameters:
  properties - the content data properties
See Also:   ContentInfo.hasProperties()
See Also:   ContentInfo.getProperties()
since:
   1.0



setSize
public void setSize(int size)(Code)
Sets the size of the stored Content instance.
Parameters:
  size - the size of the cotent data
See Also:   ContentInfo.getSize()
since:
   1.0



setVersion
public void setVersion(int version)(Code)
Sets the version of the stored Content instance.

Version numbers are unique and should be increased successively when the data on a certain Content is updated.

The path and the version together identify exactly one particular Content with one particular data.
Parameters:
  version - the version as a unique integer
See Also:   ContentInfo.getVersion()
since:
   1.0




Methods inherited from com.uwyn.rife.site.Validation
protected void activateValidation()(Code)(Java Doc)
public List<PropertyValidationRule> addConstrainedPropertyRules(P constrainedProperty)(Code)(Java Doc)
public void addConstraint(P constrainedProperty)(Code)(Java Doc)
public void addConstraint(B constrainedBean)(Code)(Java Doc)
public ValidationGroup<P> addGroup(String name)(Code)(Java Doc)
public void addRule(ValidationRule rule)(Code)(Java Doc)
public void addValidationError(ValidationError newError)(Code)(Java Doc)
public Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public void constraintSet(ConstrainedProperty property, String name, Object constraintData)(Code)(Java Doc)
public int countValidationErrors()(Code)(Java Doc)
public void focusGroup(String name)(Code)(Java Doc)
public List<PropertyValidationRule> generateConstrainedPropertyRules(P constrainedProperty)(Code)(Java Doc)
public B getConstrainedBean()(Code)(Java Doc)
public Collection<P> getConstrainedProperties()(Code)(Java Doc)
public P getConstrainedProperty(String propertyName)(Code)(Java Doc)
public static String getErrorIndication(Validated validated, String subject, String valid, String error)(Code)(Java Doc)
public ValidationGroup<P> getGroup(String name)(Code)(Java Doc)
public Collection<ValidationGroup<P>> getGroups()(Code)(Java Doc)
public Collection<String> getLoadingErrors(String propertyName)(Code)(Java Doc)
public List<ValidationRule> getRules()(Code)(Java Doc)
public List<String> getValidatedSubjects()(Code)(Java Doc)
public Set<ValidationError> getValidationErrors()(Code)(Java Doc)
public boolean hasPropertyConstraint(String name)(Code)(Java Doc)
public boolean isSubjectValid(String subject)(Code)(Java Doc)
public void limitSubjectErrors(String subject)(Code)(Java Doc)
public void makeErrorValid(String identifier, String subject)(Code)(Java Doc)
public void makeSubjectValid(String subject)(Code)(Java Doc)
public void provideValidatedBean(Validated bean)(Code)(Java Doc)
public void replaceValidationErrors(Set<ValidationError> errors)(Code)(Java Doc)
public void resetGroup(String name)(Code)(Java Doc)
public void resetValidation()(Code)(Java Doc)
public Validated retrieveValidatedBean()(Code)(Java Doc)
public void unlimitSubjectErrors(String subject)(Code)(Java Doc)
public boolean validate()(Code)(Java Doc)
public boolean validate(ValidationContext context)(Code)(Java Doc)
public boolean validateGroup(String name)(Code)(Java Doc)
public boolean validateGroup(String name, ValidationContext context)(Code)(Java Doc)

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.