org.sakaiproject.component.legacy.site
Class DbSiteService

java.lang.Object
  extended byorg.sakaiproject.component.legacy.site.BaseSiteService
      extended byorg.sakaiproject.component.legacy.site.DbSiteService
All Implemented Interfaces:
EntityProducer, SiteService, StorageUser

public class DbSiteService
extends BaseSiteService

DbSiteService is an extension of the BaseSiteService with a database storage.

Author:
Sakai Software Development Team

Nested Class Summary
protected  class DbSiteService.DbStorage
          Storage implementation
 
Nested classes inherited from class org.sakaiproject.component.legacy.site.BaseSiteService
BaseSiteService.Storage
 
Nested classes inherited from class org.sakaiproject.service.legacy.site.SiteService
SiteService.SelectionType, SiteService.SortType
 
Nested classes inherited from class org.sakaiproject.service.legacy.entity.EntityProducer
EntityProducer.ChangeType
 
Field Summary
protected  boolean m_autoDdl
          Configuration: to run the ddl on init or not.
protected  String[] m_siteFieldNames
          All fields for site.
protected  String m_siteIdFieldName
          ID field for site.
protected  String m_sitePropTableName
          Table name for site properties.
protected  String m_siteSortField
          Site sort field.
protected  String m_siteTableName
          Table name for sites.
protected  SqlService m_sqlService
          Dependency: SqlService
protected  boolean m_useExternalLocks
          If true, we do our locks in the remote database, otherwise we do them here.
 
Fields inherited from class org.sakaiproject.component.legacy.site.BaseSiteService
m_cacheCleanerSeconds, m_cacheSeconds, m_entityManager, m_logger, m_regenerateIds, m_relativeAccessPoint, m_serverConfigurationService, m_siteCache, m_storage
 
Fields inherited from interface org.sakaiproject.service.legacy.site.SiteService
GROUP_SUBTYPE, MAIN_CONTAINER, PAGE_SUBTYPE, REFERENCE_ROOT, SECURE_ADD_SITE, SECURE_ADD_USER_SITE, SECURE_REMOVE_SITE, SECURE_UPDATE_GROUP_MEMBERSHIP, SECURE_UPDATE_SITE, SECURE_UPDATE_SITE_MEMBERSHIP, SECURE_VIEW_ROSTER, SERVICE_NAME, SITE_ERROR, SITE_SUBTYPE, SITE_TEMPLATE, SITE_VISIT, SITE_VISIT_UNPUBLISHED, TOOL_SUBTYPE, URL_ERROR, USER_SITE_TEMPLATE
 
Constructor Summary
DbSiteService()
           
 
Method Summary
 void init()
          Final initialization, once all dependencies are set.
protected  BaseSiteService.Storage newStorage()
          Construct a Storage object.
 void setAutoDdl(String value)
          Configuration: to run the ddl on init or not.
 void setExternalLocks(String value)
          Configuration: set the external locks value.
 void setSqlService(SqlService service)
          Dependency: SqlService.
 
Methods inherited from class org.sakaiproject.component.legacy.site.BaseSiteService
addLiveProperties, addLiveUpdateProperties, addSite, addSite, adjustSkin, allowAccessSite, allowAddSite, allowRemoveSite, allowUnjoinSite, allowUpdateGroupMembership, allowUpdateSite, allowUpdateSiteMembership, allowViewRoster, archive, convertReferenceUrl, countSites, destroy, disableAuthorizationGroup, disableAzg, disableRelated, doSave, enableAuthorizationGroup, enableAzg, enableAzgSecurityAdvisor, enableRelated, enforceGroupSubMembership, findGroup, findPage, findTool, getAccessPoint, getDate, getDefinedSite, getEntity, getEntityAuthzGroups, getEntityDescription, getEntityResourceProperties, getEntityUrl, getHttpAccess, getLabel, getOwnerId, getSite, getSiteDisplay, getSites, getSiteSkin, getSiteSpecialId, getSiteTypes, getSiteUserId, getSiteVisit, getSpecialSiteId, getUserSiteId, groupAzgTemplate, importEntities, isDraft, isSpecialSite, isUserSite, join, merge, merge, newContainer, newContainer, newContainer, newContainerEdit, newContainerEdit, newContainerEdit, newResource, newResource, newResource, newResourceEdit, newResourceEdit, newResourceEdit, parseEntityReference, regenerateAllSiteIds, removeSite, save, saveGroupAzgs, saveGroupMembership, saveSiteAzg, saveSiteInfo, saveSiteMembership, setCacheCleanerMinutes, setCacheMinutes, setEntityManager, setLogger, setRegenerateIds, setServerConfigurationService, setSiteSecurity, setUserSecurity, siteAzgTemplate, siteExists, siteGroupReference, siteId, sitePageReference, siteReference, siteToolReference, storageFields, syncWithSiteChange, unjoin, unlock, unlock2, unlockCheck, unlockCheck2, willArchiveMerge, willImport
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_siteTableName

protected String m_siteTableName
Table name for sites.


m_sitePropTableName

protected String m_sitePropTableName
Table name for site properties.


m_siteIdFieldName

protected String m_siteIdFieldName
ID field for site.


m_siteSortField

protected String m_siteSortField
Site sort field.


m_siteFieldNames

protected String[] m_siteFieldNames
All fields for site.


m_sqlService

protected SqlService m_sqlService
Dependency: SqlService


m_useExternalLocks

protected boolean m_useExternalLocks
If true, we do our locks in the remote database, otherwise we do them here.


m_autoDdl

protected boolean m_autoDdl
Configuration: to run the ddl on init or not.

Constructor Detail

DbSiteService

public DbSiteService()
Method Detail

setSqlService

public void setSqlService(SqlService service)
Dependency: SqlService.

Parameters:
service - The SqlService.

setExternalLocks

public void setExternalLocks(String value)
Configuration: set the external locks value.

Parameters:
value - The external locks value.

setAutoDdl

public void setAutoDdl(String value)
Configuration: to run the ddl on init or not.

Parameters:
value - the auto ddl value.

init

public void init()
Final initialization, once all dependencies are set.

Overrides:
init in class BaseSiteService

newStorage

protected BaseSiteService.Storage newStorage()
Construct a Storage object.

Specified by:
newStorage in class BaseSiteService
Returns:
The new storage object.