mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Activity Service
- add PostgreSQL support - add generic schema generation, plus extras (indexes, sequences, workaround for Derby) - fix feed cleaner keepDate, also increase default from 14 to 31 days - fix Oracle-specifc issue (when retrieving site feed) - reformatting sqlMap config files - improve exception handling Add Derby warning message git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9649 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -7,14 +7,14 @@
|
||||
<sqlMap namespace="ActivityFeedControl">
|
||||
|
||||
<typeAlias alias="FeedControl" type="org.alfresco.repo.activities.feed.control.FeedControlDAO"/>
|
||||
|
||||
<resultMap id="FeedControlResult" class="FeedControl">
|
||||
<result property="id" column="ID"/>
|
||||
<result property="feedUserId" column="FEED_USER_ID"/>
|
||||
<result property="siteNetwork" column="SITE_NETWORK"/>
|
||||
|
||||
<resultMap id="FeedControlResult" class="FeedControl">
|
||||
<result property="id" column="ID"/>
|
||||
<result property="feedUserId" column="FEED_USER_ID"/>
|
||||
<result property="siteNetwork" column="SITE_NETWORK"/>
|
||||
<result property="appTool" column="APP_TOOL"/>
|
||||
<result property="lastModified" column="LAST_MODIFIED"/>
|
||||
</resultMap>
|
||||
<result property="lastModified" column="LAST_MODIFIED"/>
|
||||
</resultMap>
|
||||
|
||||
<select id="select.activity.feedcontrols.for.user" parameterClass="FeedControl" resultClass="FeedControl">
|
||||
<![CDATA[
|
||||
@@ -32,25 +32,25 @@
|
||||
and site_network = #siteNetwork#
|
||||
and app_tool = #appTool#
|
||||
]]>
|
||||
</select>
|
||||
|
||||
<insert id="insert.activity.feedcontrol" parameterClass="FeedControl">
|
||||
</select>
|
||||
|
||||
<insert id="insert.activity.feedcontrol" parameterClass="FeedControl">
|
||||
insert into alf_activity_feed_control (feed_user_id, site_network, app_tool, last_modified)
|
||||
values (#feedUserId#, #siteNetwork#, #appTool#, #lastModified#)
|
||||
|
||||
<!-- optionally return auto-generated primary key - only required for debug (can be commented out) -->
|
||||
<selectKey resultClass="long" keyProperty="id" type="post">
|
||||
SELECT LAST_INSERT_ID() AS value
|
||||
</selectKey>
|
||||
</insert>
|
||||
|
||||
<delete id="delete.activity.feedcontrol" parameterClass="FeedControl">
|
||||
<![CDATA[
|
||||
</selectKey>
|
||||
</insert>
|
||||
|
||||
<delete id="delete.activity.feedcontrol" parameterClass="FeedControl">
|
||||
<![CDATA[
|
||||
delete from alf_activity_feed_control
|
||||
where feed_user_id = #feedUserId#
|
||||
and site_network = #siteNetwork#
|
||||
and app_tool = #appTool#
|
||||
]]>
|
||||
</delete>
|
||||
and app_tool = #appTool#
|
||||
]]>
|
||||
</delete>
|
||||
|
||||
</sqlMap>
|
Reference in New Issue
Block a user