|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sakaiproject.component.legacy.alias.BaseAliasService
org.sakaiproject.component.legacy.alias.DbAliasService
DbAliasService is an extension of the BaseAliasService with a database storage. Fields are fully relational. Full properties are not yet supported - core ones are. Code to find and convert records from before, from the XML based CHEF_ALIAS table is included.
Nested Class Summary | |
protected class |
DbAliasService.DbStorage
Covers for the BaseXmlFileStorage, providing User and AliasEdit parameters |
protected class |
DbAliasService.DbStorageOld
This is how to access the old chef_alias table (CTools through 2.0.7) |
Nested classes inherited from class org.sakaiproject.component.legacy.alias.BaseAliasService |
BaseAliasService.BaseAliasEdit, BaseAliasService.Storage |
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 boolean |
m_checkOld
Configuration: check the old table, too. |
protected boolean |
m_convertOld
Set if we are to run the from-old conversion. |
protected String[] |
m_fieldNames
All fields. |
protected String |
m_idFieldName
ID field. |
protected String |
m_propTableName
Table name for properties. |
protected SqlService |
m_sqlService
Dependency: SqlService |
protected String |
m_tableName
Table name for aliases. |
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.alias.BaseAliasService |
m_cacheCleanerSeconds, m_cacheSeconds, m_callCache, m_entityManager, m_logger, m_memoryService, m_relativeAccessPoint, m_serverConfigurationService, m_storage |
Fields inherited from interface org.sakaiproject.service.legacy.alias.AliasService |
REFERENCE_ROOT, SECURE_ADD_ALIAS, SECURE_REMOVE_ALIAS, SECURE_UPDATE_ALIAS, SERVICE_NAME |
Constructor Summary | |
DbAliasService()
|
Method Summary | |
protected void |
convertOld()
Create a new table record for all old table records found, and delete the old. |
void |
init()
Final initialization, once all dependencies are set. |
protected BaseAliasService.Storage |
newStorage()
Construct a Storage object. |
void |
setAutoDdl(String value)
Configuration: to run the ddl on init or not. |
void |
setCheckOld(String value)
Configuration: set the locks-in-db |
void |
setConvertOld(String value)
Configuration: run the from-old conversion. |
void |
setExternalLocks(String value)
Configuration: set the external locks value. |
void |
setSqlService(SqlService service)
Dependency: SqlService. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected String m_tableName
protected String m_propTableName
protected String m_idFieldName
protected String[] m_fieldNames
protected boolean m_useExternalLocks
protected boolean m_convertOld
protected SqlService m_sqlService
protected boolean m_checkOld
protected boolean m_autoDdl
Constructor Detail |
public DbAliasService()
Method Detail |
public void setConvertOld(String value)
value
- The conversion desired value.public void setSqlService(SqlService service)
service
- The SqlService.public void setExternalLocks(String value)
value
- The external locks value.public void setCheckOld(String value)
value
- The locks-in-db value.public void setAutoDdl(String value)
value
- the auto ddl value.public void init()
init
in class BaseAliasService
protected BaseAliasService.Storage newStorage()
newStorage
in class BaseAliasService
protected void convertOld()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |