com.dotmarketing.business
Class VersionableFactory

java.lang.Object
  extended by com.dotmarketing.business.VersionableFactory
Direct Known Subclasses:
VersionableFactoryImpl

public abstract class VersionableFactory
extends java.lang.Object

Author:
will

Constructor Summary
VersionableFactory()
           
 
Method Summary
protected abstract  ContentletVersionInfo createContentletVersionInfo(Identifier identifier, long lang, java.lang.String workingInode)
           
protected abstract  VersionInfo createVersionInfo(Identifier identifier, java.lang.String workingInode)
           
protected abstract  void deleteContentletVersionInfo(java.lang.String id, long lang)
           
protected abstract  void deleteVersionInfo(java.lang.String identifier)
           
protected abstract  java.util.List<Versionable> findAllVersions(java.lang.String id)
           
protected abstract  ContentletVersionInfo findContentletVersionInfoInDB(java.lang.String identifier, long lang)
          The method will load from Hibernate and NOT use cache
protected abstract  Versionable findDeletedVersion(java.lang.String id)
           
protected abstract  Versionable findLiveVersion(java.lang.String id)
           
protected abstract  VersionInfo findVersionInfoFromDb(Identifier identifier)
           
protected abstract  Versionable findWorkingVersion(java.lang.String id)
           
protected abstract  ContentletVersionInfo getContentletVersionInfo(java.lang.String identifier, long lang)
           
protected abstract  VersionInfo getVersionInfo(java.lang.String identifier)
           
protected abstract  void saveContentletVersionInfo(ContentletVersionInfo cvInfo)
           
protected abstract  void saveVersionInfo(VersionInfo info)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionableFactory

public VersionableFactory()
Method Detail

findWorkingVersion

protected abstract Versionable findWorkingVersion(java.lang.String id)
                                           throws DotDataException,
                                                  DotStateException
Throws:
DotDataException
DotStateException

findLiveVersion

protected abstract Versionable findLiveVersion(java.lang.String id)
                                        throws DotDataException,
                                               DotStateException
Throws:
DotDataException
DotStateException

findDeletedVersion

protected abstract Versionable findDeletedVersion(java.lang.String id)
                                           throws DotDataException,
                                                  DotStateException
Throws:
DotDataException
DotStateException

findAllVersions

protected abstract java.util.List<Versionable> findAllVersions(java.lang.String id)
                                                        throws DotDataException,
                                                               DotStateException
Throws:
DotDataException
DotStateException

saveVersionInfo

protected abstract void saveVersionInfo(VersionInfo info)
                                 throws DotDataException,
                                        DotStateException
Throws:
DotDataException
DotStateException

getVersionInfo

protected abstract VersionInfo getVersionInfo(java.lang.String identifier)
                                       throws DotDataException,
                                              DotStateException
Throws:
DotDataException
DotStateException

getContentletVersionInfo

protected abstract ContentletVersionInfo getContentletVersionInfo(java.lang.String identifier,
                                                                  long lang)
                                                           throws DotDataException,
                                                                  DotStateException
Throws:
DotDataException
DotStateException

findContentletVersionInfoInDB

protected abstract ContentletVersionInfo findContentletVersionInfoInDB(java.lang.String identifier,
                                                                       long lang)
                                                                throws DotDataException,
                                                                       DotStateException
The method will load from Hibernate and NOT use cache

Parameters:
cvInfo -
Throws:
DotDataException
DotStateException

saveContentletVersionInfo

protected abstract void saveContentletVersionInfo(ContentletVersionInfo cvInfo)
                                           throws DotDataException,
                                                  DotStateException
Throws:
DotDataException
DotStateException

createVersionInfo

protected abstract VersionInfo createVersionInfo(Identifier identifier,
                                                 java.lang.String workingInode)
                                          throws DotStateException,
                                                 DotDataException
Throws:
DotStateException
DotDataException

createContentletVersionInfo

protected abstract ContentletVersionInfo createContentletVersionInfo(Identifier identifier,
                                                                     long lang,
                                                                     java.lang.String workingInode)
                                                              throws DotStateException,
                                                                     DotDataException
Throws:
DotStateException
DotDataException

deleteVersionInfo

protected abstract void deleteVersionInfo(java.lang.String identifier)
                                   throws DotDataException
Throws:
DotDataException

deleteContentletVersionInfo

protected abstract void deleteContentletVersionInfo(java.lang.String id,
                                                    long lang)
                                             throws DotDataException
Throws:
DotDataException

findVersionInfoFromDb

protected abstract VersionInfo findVersionInfoFromDb(Identifier identifier)
                                              throws DotDataException,
                                                     DotStateException
Throws:
DotDataException
DotStateException


Copyright © 2013 dotCMS Inc. All Rights Reserved.