com.uwyn.rife.cmf
Class ContentRepository

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

public class ContentRepository
extends Validation

Contains the information that's required to describe a content repository.

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

Field Summary
static String DEFAULT
           
 
Constructor Summary
ContentRepository()
          Instantiates a new ContentRepository 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.
 String getName()
          Retrieves the name of the content repository.
 ContentRepository name(String name)
          Sets the name of the content repository.
 void setName(String name)
          Sets the name of the content repository.
 
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
 

Field Detail

DEFAULT

public static final String DEFAULT
See Also:
Constant Field Values
Constructor Detail

ContentRepository

public ContentRepository()
Instantiates a new ContentRepository instance.

Since:
1.0
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 Validation

name

public ContentRepository name(String name)
Sets the name of the content repository.

Parameters:
name - the name
Returns:
the current ContentRepository instance
Since:
1.0
See Also:
setName(String), getName()

setName

public void setName(String name)
Sets the name of the content repository.

Parameters:
name - the name
Since:
1.0
See Also:
name(String), getName()

getName

public String getName()
Retrieves the name of the content repository.

Returns:
null if the stored Content instance has no name; or

the name of the content

Since:
1.0
See Also:
name(String), setName(String)


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