com.uwyn.rife.cmf.dam.contentmanagers
Class DatabaseContentInfo

java.lang.Object
  extended by com.uwyn.rife.site.Validation
      extended by com.uwyn.rife.cmf.ContentInfo
          extended by com.uwyn.rife.cmf.dam.contentmanagers.DatabaseContentInfo
All Implemented Interfaces:
Constrained, ConstrainedPropertyListener, Validated, ValidatedConstrained, Cloneable

public class DatabaseContentInfo
extends ContentInfo

This class adds additional properties to the ContentInfo class to be able to store the data in a datab.ase

Since:
1.0
Version:
$Revision: 3634 $
Author:
Geert Bevin (gbevin[remove] at uwyn dot com)

Constructor Summary
DatabaseContentInfo()
          Instantiates a new DatabaseContentInfo instance.
 
Method Summary
 void activateValidation()
          This method is called at least once and maximum once when any method related to Validated rules, subjects and group or Constrained properties are used.
 int getContentId()
          Retrieves the ID of the stored Content instance.
 void setContentId(int contentId)
          Sets the ID of the stored Content instance.
 
Methods inherited from class com.uwyn.rife.cmf.ContentInfo
getAttribute, getAttributes, getCreated, getFormattedSize, getMimeType, getName, getOptimalPath, getPath, getProperties, getProperty, getSize, getVersion, hasAttribute, hasAttributes, hasName, hasProperties, hasProperty, isFragment, setAttributes, setCreated, setFragment, setMimeType, setName, setPath, setProperties, setSize, setVersion
 
Methods inherited from class com.uwyn.rife.site.Validation
addConstrainedPropertyRules, addConstraint, addConstraint, addGroup, addRule, addValidationError, clone, constraintSet, countValidationErrors, focusGroup, generateConstrainedPropertyRules, getConstrainedBean, getConstrainedProperties, getConstrainedProperty, getErrorIndication, getGroup, getGroups, getLoadingErrors, getRules, getValidatedSubjects, getValidationErrors, hasPropertyConstraint, isSubjectValid, limitSubjectErrors, makeErrorValid, makeSubjectValid, provideValidatedBean, replaceValidationErrors, resetGroup, resetValidation, retrieveValidatedBean, unlimitSubjectErrors, validate, validate, validateGroup, validateGroup
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseContentInfo

public DatabaseContentInfo()
Instantiates a new DatabaseContentInfo instance.

Method Detail

activateValidation

public void activateValidation()
Description copied from class: Validation
This method is called at least once and maximum once when any method related to Validated rules, subjects and group or Constrained properties are used.

By overriding this method, you can thus isolate all the validation setup code code and don't enforce a performance penalty at each object construction when doing it in the default constructor.

Overrides:
activateValidation in class ContentInfo

setContentId

public void setContentId(int contentId)
Sets the ID of the stored Content instance.

This ID will not be used to refer to the Content instance from outside the backend. The path and the version should be used for this instead.

Parameters:
contentId - the ID of the Content instance
See Also:
getContentId()

getContentId

public int getContentId()
Retrieves the ID of the stored Content instance.

Returns:
the Content's ID
See Also:
setContentId(int)


Copyright © 2001-2007 Uwyn sprl/bvba. All Rights Reserved.