mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
11410: Activity Service - iBatis mapping files for MS SQL Server (using AlfrescoSQLServerDialect) Can be Enterprised when dual build is set up 11414: Fix for missing servlet reference in repo web.xml 11415: Activity Service - iBatis mapping files for new Oracle dialects (using AlfrescoOracle10gDialect or AlfrescoOracle9iDialect) Can be Entperprised when dual build is up 11424: Remove conflicting java mail libraries. NOTE: Might affect 'CMIS web service implementation' 11426: Activity Service - use lower-case columns 11428: ETHREEOH-300: Site contributor can not delete his own blog posts 11431: Removed tutorial from Guest home 11432: ETHREEOH-198: SiteService is not MT enabled 11440: Close all ScrollableResults in try{} finally{} 11442: Fix for ETHREEOH-268, ETHREEOH-269, ETHREEOH-431, ETHREEOH-438, ETHREEOH-456, ETHREEOH-468, ETHREEOH-532 11443: Update to JSF client Help URL 11444: Build fix 11447: MT - fix ETHREEOH-530 11448: Fix for ETHREEOH-424: Edit Web Content: dojo.data.fromrfc3339 is not a function 11449: Fix for ETHREEOH-218: DM forms should be disabled git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@12427 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
114 lines
4.1 KiB
XML
Executable File
114 lines
4.1 KiB
XML
Executable File
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
<!DOCTYPE sqlMap
|
|
PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN"
|
|
"http://ibatis.apache.org/dtd/sql-map-2.dtd">
|
|
|
|
<sqlMap namespace="ActivityPost">
|
|
|
|
<typeAlias alias="ActivityPost" type="org.alfresco.repo.activities.post.ActivityPostDAO"/>
|
|
|
|
<resultMap id="ActivityPostResult" class="ActivityPost">
|
|
<result property="id" column="sequence_id"/>
|
|
<result property="activityData" column="activity_data"/>
|
|
<result property="activityType" column="activity_type"/>
|
|
<result property="userId" column="post_user_id"/>
|
|
<result property="postDate" column="post_date"/>
|
|
<result property="jobTaskNode" column="job_task_node"/>
|
|
<result property="siteNetwork" column="site_network"/>
|
|
<result property="appTool" column="app_tool"/>
|
|
<result property="status" column="status"/>
|
|
<result property="lastModified" column="last_modified"/>
|
|
</resultMap>
|
|
|
|
<select id="select.activity.posts" parameterClass="ActivityPost" resultClass="ActivityPost">
|
|
<![CDATA[
|
|
select
|
|
sequence_id as id,
|
|
activity_data as activityData,
|
|
activity_type as activityType,
|
|
post_user_id as userId,
|
|
post_date as postDate,
|
|
job_task_node as jobTaskNode,
|
|
site_network as siteNetwork,
|
|
app_tool as appTool,
|
|
status as status
|
|
from
|
|
alf_activity_post
|
|
where
|
|
job_task_node = #jobTaskNode# and
|
|
sequence_id >= #minId# and
|
|
sequence_id <= #maxId# and
|
|
status = #status#
|
|
]]>
|
|
</select>
|
|
|
|
<select id="select.activity.posts.by.status.only" parameterClass="ActivityPost" resultClass="ActivityPost">
|
|
<![CDATA[
|
|
select
|
|
sequence_id as id,
|
|
activity_data as activityData,
|
|
activity_type as activityType,
|
|
post_user_id as userId,
|
|
post_date as postDate,
|
|
job_task_node as jobTaskNode,
|
|
site_network as siteNetwork,
|
|
app_tool as appTool,
|
|
status as status
|
|
from
|
|
alf_activity_post
|
|
where
|
|
status = #status#
|
|
]]>
|
|
</select>
|
|
|
|
<select id="select.activity.post.max.seq" resultClass="long">
|
|
select max(sequence_id) as maxId
|
|
from alf_activity_post
|
|
where status = 'POSTED'
|
|
</select>
|
|
|
|
<select id="select.activity.post.min.seq" resultClass="long">
|
|
select min(sequence_id) as minId
|
|
from alf_activity_post
|
|
where status = 'POSTED'
|
|
</select>
|
|
|
|
<select id="select.activity.post.max.jobtasknode" resultClass="int">
|
|
select max(job_task_node) as maxJobTaskNode
|
|
from alf_activity_post
|
|
where status = 'POSTED'
|
|
</select>
|
|
|
|
<insert id="insert.activity.post" parameterClass="ActivityPost">
|
|
insert into alf_activity_post (status, activity_data, post_user_id, post_date, activity_type, site_network, app_tool, job_task_node, last_modified)
|
|
values (#status#, #activityData#, #userId#, #postDate#, #activityType#, #siteNetwork#, #appTool#, #jobTaskNode#, #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.posts.older.than.date" parameterClass="ActivityPost">
|
|
<![CDATA[
|
|
delete from alf_activity_post
|
|
where post_date < #postDate#
|
|
and status = #status#
|
|
]]>
|
|
</delete>
|
|
|
|
<update id="update.activity.post.data" parameterClass="ActivityPost">
|
|
update alf_activity_post set status = #status#, activity_data=#activityData#, site_network=#siteNetwork#, last_modified=#lastModified#
|
|
where sequence_id = #id#
|
|
and status != #status#
|
|
</update>
|
|
|
|
<update id="update.activity.post.status" parameterClass="ActivityPost">
|
|
update alf_activity_post set status = #status#, last_modified=#lastModified#
|
|
where sequence_id = #id#
|
|
and status != #status#
|
|
</update>
|
|
|
|
</sqlMap> |