|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sakaiproject.message.impl.BaseMessageService
org.sakaiproject.announcement.impl.BaseAnnouncementService
org.sakaiproject.announcement.impl.DbAnnouncementService
public class DbAnnouncementService
DbAnnouncementService fills out the BaseAnnouncementService with a database implementation.
The sql scripts in src/sql/chef_announcement.sql must be run on the database.
| Nested Class Summary | |
|---|---|
protected class |
DbAnnouncementService.DbStorage
Storage implementation |
| Nested classes/interfaces inherited from class org.sakaiproject.announcement.impl.BaseAnnouncementService |
|---|
BaseAnnouncementService.BaseAnnouncementChannelEdit, BaseAnnouncementService.BaseAnnouncementMessageEdit, BaseAnnouncementService.BaseAnnouncementMessageHeaderEdit, BaseAnnouncementService.PrivacyFilter |
| Nested classes/interfaces inherited from class org.sakaiproject.message.impl.BaseMessageService |
|---|
org.sakaiproject.message.impl.BaseMessageService.BaseMessageChannelEdit, org.sakaiproject.message.impl.BaseMessageService.BaseMessageEdit, org.sakaiproject.message.impl.BaseMessageService.BaseMessageHeaderEdit, org.sakaiproject.message.impl.BaseMessageService.MessagePermissionFilter, org.sakaiproject.message.impl.BaseMessageService.MessageSelectionFilter, org.sakaiproject.message.impl.BaseMessageService.NotifyThread, org.sakaiproject.message.impl.BaseMessageService.PublicFilter, org.sakaiproject.message.impl.BaseMessageService.Storage |
| Field Summary | |
|---|---|
protected static String[] |
FIELDS
|
protected boolean |
m_autoDdl
Configuration: to run the ddl on init or not. |
protected boolean |
m_convertToDraft
Set if we are to run the to-draft/owner conversion. |
protected boolean |
m_convertToPubView
Set if we are to run the to-pubview conversion. |
protected String |
m_cTableName
The name of the db table holding announcement channels. |
protected boolean |
m_locksInDb
If true, we do our locks in the remote database, otherwise we do them here. |
protected String |
m_rTableName
The name of the db table holding announcement messages. |
protected org.sakaiproject.db.api.SqlService |
m_sqlService
Dependency: SqlService |
| Fields inherited from class org.sakaiproject.announcement.impl.BaseAnnouncementService |
|---|
m_notificationService, rb |
| Fields inherited from class org.sakaiproject.message.impl.BaseMessageService |
|---|
m_caching, m_channelCache, m_entityManager, m_eventTrackingService, m_idManager, m_memoryService, m_messageCaches, m_securityService, m_serverConfigurationService, m_sessionManager, m_siteService, m_storage, m_threadLocalManager, m_timeService, m_userDirectoryService |
| Fields inherited from interface org.sakaiproject.announcement.api.AnnouncementService |
|---|
APPLICATION_ID, ASSIGNMENT_REFERENCE, EVENT_ANNC_UPDATE_ACCESS, EVENT_ANNC_UPDATE_AVAILABILITY, EVENT_ANNC_UPDATE_TITLE, MOD_DATE, REF_TYPE_ANNOUNCEMENT, REF_TYPE_ANNOUNCEMENT_RSS, REFERENCE_ROOT, RELEASE_DATE, RETRACT_DATE, SECURE_ANNC_ADD, SECURE_ANNC_ALL_GROUPS, SECURE_ANNC_READ, SECURE_ANNC_READ_DRAFT, SECURE_ANNC_REMOVE_ANY, SECURE_ANNC_REMOVE_OWN, SECURE_ANNC_ROOT, SECURE_ANNC_UPDATE_ANY, SECURE_ANNC_UPDATE_OWN |
| Fields inherited from interface org.sakaiproject.message.api.MessageService |
|---|
REF_TYPE_CHANNEL, REF_TYPE_MESSAGE, SECURE_ADD, SECURE_ALL_GROUPS, SECURE_CREATE, SECURE_READ, SECURE_READ_DRAFT, SECURE_REMOVE_ANY, SECURE_REMOVE_OWN, SECURE_UPDATE_ANY, SECURE_UPDATE_OWN |
| Constructor Summary | |
|---|---|
DbAnnouncementService()
|
|
| Method Summary | |
|---|---|
protected void |
convertToDraft()
fill in the draft and owner db fields |
protected void |
convertToPubView()
fill in the pubview db fields |
protected boolean |
getPubView(String ref)
Does this resource support public view? |
void |
init()
Final initialization, once all dependencies are set. |
protected org.sakaiproject.message.impl.BaseMessageService.Storage |
newStorage()
Construct a Storage object. |
void |
setAuthzGroupService(org.sakaiproject.authz.api.AuthzGroupService authzGroupService)
|
void |
setAutoDdl(String value)
Configuration: to run the ddl on init or not. |
void |
setContainerTableName(String name)
Configuration: set the table name for the container. |
void |
setConvertDraft(String value)
Configuration: run the to-draft/owner conversion |
void |
setConvertPubView(String value)
Configuration: run the to-pubview conversion |
void |
setLocksInDb(String value)
Configuration: set the locks-in-db |
void |
setResourceTableName(String name)
Configuration: set the table name for the resource. |
void |
setSqlService(org.sakaiproject.db.api.SqlService service)
Dependency: SqlService. |
| Methods inherited from class org.sakaiproject.message.impl.BaseMessageService |
|---|
addChannel, allowAddChannel, allowEditChannel, allowGetChannel, allowGetMessage, allowRemoveChannel, archive, archiveSynopticOptions, cancelChannel, cancelMessage, commitChannel, destroy, disableMessageChannel, editChannel, enableMessageChannel, findChannel, getAccessPoint, getChannel, getChannelIds, getChannelPublic, getChannels, getEntity, getEntityAuthzGroups, getEntityDescription, getEntityResourceProperties, getEntityUrl, getMessage, getMessages, getSummary, merge, messageReference, messageReference, parseMergeChannelExtra, refresh, removeChannel, service, setCaching, setEntityManager, setEventTrackingService, setIdManager, setMemoryService, setServerConfigurationService, setSiteService, setThreadLocalManager, setUserDirectoryService, transferSynopticOptions, unlock, unlock2, unlock3, unlockCheck, unlockCheck2, unlockCheck3, willArchiveMerge |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.sakaiproject.message.api.MessageService |
|---|
addChannel, allowAddChannel, allowEditChannel, allowGetChannel, allowRemoveChannel, cancelChannel, cancelMessage, commitChannel, editChannel, getChannel, getChannelIds, getChannelPublic, getChannels, getMessage, getMessages, getSummary, messageReference, messageReference, removeChannel |
| Methods inherited from interface org.sakaiproject.entity.api.EntityProducer |
|---|
archive, getEntity, getEntityAuthzGroups, getEntityDescription, getEntityResourceProperties, getEntityUrl, merge, willArchiveMerge |
| Field Detail |
|---|
protected String m_cTableName
protected String m_rTableName
protected boolean m_locksInDb
protected static final String[] FIELDS
protected org.sakaiproject.db.api.SqlService m_sqlService
protected boolean m_convertToDraft
protected boolean m_convertToPubView
protected boolean m_autoDdl
| Constructor Detail |
|---|
public DbAnnouncementService()
| Method Detail |
|---|
public void setSqlService(org.sakaiproject.db.api.SqlService service)
service - The SqlService.public void setAuthzGroupService(org.sakaiproject.authz.api.AuthzGroupService authzGroupService)
setAuthzGroupService in class org.sakaiproject.message.impl.BaseMessageServicepublic void setContainerTableName(String name)
path - The table name for the container.public void setResourceTableName(String name)
path - The table name for the resource.public void setLocksInDb(String value)
path - The storage path.public void setConvertDraft(String value)
value - The conversion desired value.public void setConvertPubView(String value)
value - The conversion desired value.public void setAutoDdl(String value)
value - the auto ddl value.public void init()
init in class BaseAnnouncementServiceprotected org.sakaiproject.message.impl.BaseMessageService.Storage newStorage()
newStorage in class org.sakaiproject.message.impl.BaseMessageServiceprotected void convertToDraft()
protected void convertToPubView()
protected boolean getPubView(String ref)
ref - The resource reference
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||