Class DatabaseContentInfo

java.lang.Object
rife.validation.Validation
rife.cmf.ContentInfo
rife.cmf.dam.contentmanagers.DatabaseContentInfo
All Implemented Interfaces:
Cloneable, Constrained, ConstrainedPropertyListener, Validated

public class DatabaseContentInfo extends ContentInfo
This class adds additional properties to the ContentInfo class to be able to store the data in a database.
Since:
1.0
  • Constructor Details

    • DatabaseContentInfo

      public DatabaseContentInfo()
      Instantiates a new DatabaseContentInfo instance.
  • Method Details

    • 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 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

      public int getContentId()
      Retrieves the ID of the stored Content instance.
      Returns:
      the Content's ID
      See Also: