Interface Storable

All Known Implementing Classes:
AbstractCalendarEvent, AbstractChooser, AbstractDBFaq, AbstractDBGlossary, AbstractDBTestType, AbstractEventResource, AbstractJPortal, AbstractMedia, AbstractPortalJspCollection, AbstractShortcut, AbstractTestType, AbstractWebPage, AccessControlList, AccessToken, ACLChooser, Alert, AuthenticationCookie, BackgroundProcessInfo, BasicStorable, Category, CategoryRight, Content, CountryChooser, CountryData, CountryData, Data, DataRight, DBFileDocument, DBMember, FileDocument, FileProcessingInfo, FileProcessingLog, Form, Group, JPortalStructure, LanguageChooser, LanguageData, LoginEvent, MailMessage, MediaProgression, Member, MemberDeleteRequest, MemberPreference, Notification, NotificationCriteria, Portal, PortalElement, PortalRedirect, Portlet, PortletCollection, PortletParent, PortletSkinable, Publication, PublicationFollower, PublicDownload, PublicLink, ReaderTracker, Recommendation, StrongLock, TrackerInfo, TranstypedId, TranstypedType, UITheme, UIThemeSkin, UserContent, Vote, WFNote, WKRole, Workspace, WSTypeEntry

public interface Storable
The interface an object must implement to be managed in the Store.
Author:
Olivier Dedieu
  • Method Details

    • setAttributes

      void setAttributes(StorableLogEntry sle)
      Storable attributes setter
      Parameters:
      sle - the StorableLogEntry that contains the attributes to set:
      Key=AttName(String) Value=persistent representation(String)
    • getAttributes

      Map<String,String> getAttributes()
      Storable attributes getter
      Returns:
      the attributes of the storable with the mapping:
      Key=Name(String) Value=persistent representation(String)
    • getAttribute

      String getAttribute(Object attribute)
      Returns a persistent representation of an attribute from its name
      Parameters:
      attribute - he attribute
      Returns:
      the persistent representation of the attribute
    • resolveAtt

      String resolveAtt(Object attVal)
      This method must be called if the type was not resolved by
      the getAttribute method
      Parameters:
      attVal - the value of the attribute
      Returns:
      the persistent representation of the attribute
    • resolveVal

      Object resolveVal(Class<?> classType, String persistentValue)
      This method must be called if the type was not resolved by the getValue method
      Parameters:
      classType - the class type
      persistentValue - the persistent value
      Returns:
      the object from its class type and persistent value
    • clone

      Object clone()
    • getId

      String getId()
      Get the value of id.
      Returns:
      Value of id.
    • setId

      void setId(String v)
      Set the value of id.
      Parameters:
      v - Value to assign to id.
    • getStore

      Store getStore()
      Get the value of store.
      Returns:
      Value of store.
    • setStore

      void setStore(Store v)
      Set the value of store.
      Parameters:
      v - Value to assign to store.
    • getCdate

      Date getCdate()
      Get the value of cdate.
      Returns:
      Value of cdate.
    • setCdate

      void setCdate(Date v)
      Set the value of cdate.
      Parameters:
      v - Value to assign to cdate.
    • getMdate

      Date getMdate()
      Get the value of mdate.
      Returns:
      Value of mdate.
    • setMdate

      void setMdate(Date v)
      Set the value of mdate.
      Parameters:
      v - Value to assign to mdate.
    • getDdate

      Date getDdate()
      Returns the delete date of this storable.
      Returns:
      the delete date of this storable.
      Since:
      jcms-5.5.0
    • setDdate

      void setDdate(Date ddate)
      Sets the delete date of this storable.
      Parameters:
      ddate -
      Since:
      jcms-5.5.0
    • resetInternalCaches

      void resetInternalCaches()
      Reset internal caches (like isStoredCache for example)