org.outerj.daisy.frontend.components.siteconf
Class SiteConfImpl

java.lang.Object
  extended by org.outerj.daisy.frontend.components.siteconf.SiteConfImpl
All Implemented Interfaces:
java.lang.Comparable, SiteConf

public class SiteConfImpl
extends java.lang.Object
implements SiteConf, java.lang.Comparable


Constructor Summary
SiteConfImpl(java.io.File directory, java.lang.String name, java.lang.String title, java.lang.String description, java.lang.String skin, long navigationDocId, long homePageDocId, long collectionId, boolean contextualizedTree, org.outerj.daisy.repository.VersionState newVersionStateDefault, long branchId, long languageId, long defaultDocumentTypeId, java.lang.String publisherRequestSet, SiteSwitchingMode siteSwitchingMode, java.lang.String[] switchSites, SitesManagerImpl sitesManager)
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
 boolean contextualizedTree()
           
 boolean getAutoExtendLock()
           
 boolean getAutomaticLocking()
           
 long getBranchId()
           
 java.lang.String getCocoonSitemapLocation()
           
 long getCollectionId()
           
 long getDefaultDocumentTypeId()
          Returns -1 if no default configured.
 long getDefaultLockTime()
          Default lock time in milliseconds.
 java.lang.String getDescription()
           
 java.io.File getDirectory()
           
 java.lang.String getGlobalCocoonSitemapLocation()
           
 long getHomePageDocId()
           
 long getLanguageId()
           
 org.outerj.daisy.repository.LockType getLockType()
           
 java.lang.String getName()
           
 org.outerj.daisy.repository.VariantKey getNavigationDoc()
           
 long getNavigationDocId()
           
 org.outerj.daisy.navigation.LookupAlternative[] getNavigationLookupAlternatives()
          Returns the lookup alternatives for navigation lookups.
 org.outerj.daisy.repository.VersionState getNewVersionStateDefault()
           
 java.lang.String getPublisherRequestSet()
           
 java.lang.String getSkin()
           
 SaxBuffer getSkinConf()
          A SaxBuffer containing XML configuration data intended to customise the skin.
 java.lang.String getTitle()
           
 void setAutoExtendLock(boolean autoExtendLock)
           
protected  void setAutomaticLocking(boolean automaticLocking)
           
 void setDefaultLockTime(long defaultLockTime)
           
 void setLockType(org.outerj.daisy.repository.LockType lockType)
           
protected  void setSkinConf(SaxBuffer skinConf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SiteConfImpl

public SiteConfImpl(java.io.File directory,
                    java.lang.String name,
                    java.lang.String title,
                    java.lang.String description,
                    java.lang.String skin,
                    long navigationDocId,
                    long homePageDocId,
                    long collectionId,
                    boolean contextualizedTree,
                    org.outerj.daisy.repository.VersionState newVersionStateDefault,
                    long branchId,
                    long languageId,
                    long defaultDocumentTypeId,
                    java.lang.String publisherRequestSet,
                    SiteSwitchingMode siteSwitchingMode,
                    java.lang.String[] switchSites,
                    SitesManagerImpl sitesManager)
Method Detail

setAutomaticLocking

protected void setAutomaticLocking(boolean automaticLocking)

setAutoExtendLock

public void setAutoExtendLock(boolean autoExtendLock)

setLockType

public void setLockType(org.outerj.daisy.repository.LockType lockType)

setDefaultLockTime

public void setDefaultLockTime(long defaultLockTime)

getNavigationDoc

public org.outerj.daisy.repository.VariantKey getNavigationDoc()
Specified by:
getNavigationDoc in interface SiteConf

getNavigationDocId

public long getNavigationDocId()
Specified by:
getNavigationDocId in interface SiteConf

getHomePageDocId

public long getHomePageDocId()
Specified by:
getHomePageDocId in interface SiteConf

getCollectionId

public long getCollectionId()
Specified by:
getCollectionId in interface SiteConf

contextualizedTree

public boolean contextualizedTree()
Specified by:
contextualizedTree in interface SiteConf

getName

public java.lang.String getName()
Specified by:
getName in interface SiteConf

getTitle

public java.lang.String getTitle()
Specified by:
getTitle in interface SiteConf

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface SiteConf

getSkin

public java.lang.String getSkin()
Specified by:
getSkin in interface SiteConf

getCocoonSitemapLocation

public java.lang.String getCocoonSitemapLocation()
Specified by:
getCocoonSitemapLocation in interface SiteConf

getGlobalCocoonSitemapLocation

public java.lang.String getGlobalCocoonSitemapLocation()
Specified by:
getGlobalCocoonSitemapLocation in interface SiteConf

getNewVersionStateDefault

public org.outerj.daisy.repository.VersionState getNewVersionStateDefault()
Specified by:
getNewVersionStateDefault in interface SiteConf

getAutomaticLocking

public boolean getAutomaticLocking()
Specified by:
getAutomaticLocking in interface SiteConf

getLockType

public org.outerj.daisy.repository.LockType getLockType()
Specified by:
getLockType in interface SiteConf

getDefaultLockTime

public long getDefaultLockTime()
Description copied from interface: SiteConf
Default lock time in milliseconds.

Specified by:
getDefaultLockTime in interface SiteConf

getAutoExtendLock

public boolean getAutoExtendLock()
Specified by:
getAutoExtendLock in interface SiteConf

getSkinConf

public SaxBuffer getSkinConf()
Description copied from interface: SiteConf
A SaxBuffer containing XML configuration data intended to customise the skin. The SaxBuffer does not contain startDocument and endDocument events.

Specified by:
getSkinConf in interface SiteConf

getPublisherRequestSet

public java.lang.String getPublisherRequestSet()
Specified by:
getPublisherRequestSet in interface SiteConf

getNavigationLookupAlternatives

public org.outerj.daisy.navigation.LookupAlternative[] getNavigationLookupAlternatives()
Description copied from interface: SiteConf
Returns the lookup alternatives for navigation lookups. This list should contain at least one entry, the first entry should always represent the current site.

Specified by:
getNavigationLookupAlternatives in interface SiteConf

setSkinConf

protected void setSkinConf(SaxBuffer skinConf)
Parameters:
skinConf - a SaxBuffer not containing startDocument and endDocument events.

getBranchId

public long getBranchId()
Specified by:
getBranchId in interface SiteConf

getLanguageId

public long getLanguageId()
Specified by:
getLanguageId in interface SiteConf

getDirectory

public java.io.File getDirectory()
Specified by:
getDirectory in interface SiteConf

getDefaultDocumentTypeId

public long getDefaultDocumentTypeId()
Description copied from interface: SiteConf
Returns -1 if no default configured.

Specified by:
getDefaultDocumentTypeId in interface SiteConf

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable


Copyright © -2006 . All Rights Reserved.