public class DbAnnouncementService extends BaseAnnouncementService
DbAnnouncementService fills out the BaseAnnouncementService with a database implementation.
The sql scripts in src/sql/chef_announcement.sql must be run on the database.
| Modifier and Type | Class and Description |
|---|---|
protected class |
DbAnnouncementService.DbStorage
Storage implementation
|
BaseAnnouncementService.BaseAnnouncementChannelEdit, BaseAnnouncementService.BaseAnnouncementMessageEdit, BaseAnnouncementService.BaseAnnouncementMessageHeaderEdit, BaseAnnouncementService.PrivacyFilterBaseMessage.BaseMessageChannelEdit, BaseMessage.BaseMessageEdit, BaseMessage.BaseMessageHeaderEdit, BaseMessage.MessagePermissionFilter, BaseMessage.MessageSelectionFilter, BaseMessage.NotifyThread, BaseMessage.PublicFilter, BaseMessage.Storage| Modifier and Type | Field and Description |
|---|---|
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 SqlService |
m_sqlService
Dependency: SqlService
|
m_notificationService, rbm_authzGroupService, m_entityManager, m_eventTrackingService, m_idManager, m_memoryService, m_securityService, m_serverConfigurationService, m_sessionManager, m_siteService, m_storage, m_threadLocalManager, m_timeService, m_userDirectoryServiceANNOUNCEMENT_CHANNEL_PROPERTY, 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_OWNREF_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 and Description |
|---|
DbAnnouncementService() |
| Modifier and Type | Method and Description |
|---|---|
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 BaseMessage.Storage |
newStorage()
Construct a Storage object.
|
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(SqlService service)
Dependency: SqlService.
|
addAnnouncementChannel, channelReference, clearMessagesCache, contextCreated, contextDeleted, contextUpdated, eventId, generateItemElement, getAnnouncementChannel, getAnnouncementReference, getDate, getHttpAccess, getLabel, getMessage_order, getMessages, getOwnerId, getReferenceRoot, getRssUrl, getSummarizableReference, getSummaryFromHeader, isDraft, isMessageViewable, myToolIds, newContainer, newContainer, newContainer, newContainerEdit, newContainerEdit, newContainerEdit, newMessageHeader, newMessageHeader, newMessageHeader, newResource, newResource, newResource, newResourceEdit, newResourceEdit, newResourceEdit, parseEntityReference, printAnnouncementHtml, printAnnouncementRss, serviceName, setAliasService, setContentHostingService, setFunctionManager, setNotificationService, setSiteEmailNotificationAnnc, setToolManager, storageFields, summarizableToolIds, transferCopyEntities, transferCopyEntities, transferCopyEntitiesRefMigrator, transferCopyEntitiesRefMigrator, updateEntityReferencesaddChannel, allowAddChannel, allowEditChannel, allowGetChannel, allowGetMessage, allowGetMessage, allowRemoveChannel, archive, archiveSynopticOptions, cancelChannel, cancelMessage, canSeeAllGroups, commitChannel, destroy, disableMessageChannel, editChannel, enableMessageChannel, filterGroupAccess, findChannel, getAccessPoint, getChannel, getChannelIds, getChannelPublic, getChannels, getEntity, getEntityAuthzGroups, getEntityDescription, getEntityResourceProperties, getEntityUrl, getGroupsAllowFunction, getMessage, getMessages, getSummary, isIntersectionGroupRefsToGroups, merge, messageReference, messageReference, parseMergeChannelExtra, removeChannel, service, setAuthzGroupService, setCaching, setEntityManager, setEventTrackingService, setIdManager, setMemoryService, setSecurityService, setServerConfigurationService, setSessionManager, setSiteService, setThreadLocalManager, setTimeService, setUserDirectoryService, transferSynopticOptions, unlock, unlock2, unlock3, unlockCheck, unlockCheck2, unlockCheck3, willArchiveMergeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddChannel, allowAddChannel, allowEditChannel, allowGetChannel, allowRemoveChannel, cancelChannel, cancelMessage, commitChannel, editChannel, getChannel, getChannelIds, getChannelPublic, getChannels, getMessage, getMessages, getSummary, messageReference, messageReference, removeChannelarchive, getEntity, getEntityAuthzGroups, getEntityDescription, getEntityResourceProperties, getEntityUrl, merge, willArchiveMergeprotected String m_cTableName
protected String m_rTableName
protected boolean m_locksInDb
protected static final String[] FIELDS
protected SqlService m_sqlService
protected boolean m_convertToDraft
protected boolean m_convertToPubView
protected boolean m_autoDdl
public void setSqlService(SqlService service)
service - The SqlService.public 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 BaseMessage.Storage newStorage()
newStorage in class BaseMessageprotected void convertToDraft()
protected void convertToPubView()
protected boolean getPubView(String ref)
ref - The resource referenceCopyright © 2003–2016 The Sakai Foundation. All rights reserved.