public interface WorkbasketAccessMapper
| Modifier and Type | Method and Description |
|---|---|
void |
delete(String id) |
void |
deleteAccessItemsForAccessId(String accessId) |
void |
deleteAllAccessItemsForWorkbasketId(String workbasketId) |
WorkbasketAccessItemImpl |
findById(String id) |
WorkbasketAccessItemImpl |
findByWorkbasketAndAccessId(String workbasketId,
List<String> accessIds) |
List<WorkbasketAccessItemImpl> |
findByWorkbasketId(String id) |
WorkbasketAccessItemImpl |
findByWorkbasketKeyDomainAndAccessId(String workbasketKey,
String domain,
List<String> accessIds) |
void |
insert(WorkbasketAccessItemImpl workbasketAccessItem) |
void |
update(WorkbasketAccessItemImpl workbasketAccessItem) |
@Select(value="<script>SELECT ID, WORKBASKET_ID, ACCESS_ID, PERM_READ, PERM_OPEN, PERM_APPEND, PERM_TRANSFER, PERM_DISTRIBUTE, PERM_CUSTOM_1, PERM_CUSTOM_2, PERM_CUSTOM_3, PERM_CUSTOM_4, PERM_CUSTOM_5, PERM_CUSTOM_6, PERM_CUSTOM_7, PERM_CUSTOM_8, PERM_CUSTOM_9, PERM_CUSTOM_10, PERM_CUSTOM_11, PERM_CUSTOM_12 FROM TASKANA.WORKBASKET_ACCESS_LIST WHERE ID = #{id} <if test=\"_databaseId == \'db2\'\">with UR </if> </script>")
@Result(property="id",column="ID") @Result(property="workbasketId",column="WORKBASKET_ID") @Result(property="accessId",column="ACCESS_ID") @Result(property="permRead",column="PERM_READ") @Result(property="permOpen",column="PERM_OPEN") @Result(property="permAppend",column="PERM_APPEND") @Result(property="permTransfer",column="PERM_TRANSFER") @Result(property="permDistribute",column="PERM_DISTRIBUTE") @Result(property="permCustom1",column="PERM_CUSTOM_1") @Result(property="permCustom2",column="PERM_CUSTOM_2") @Result(property="permCustom3",column="PERM_CUSTOM_3") @Result(property="permCustom4",column="PERM_CUSTOM_4") @Result(property="permCustom5",column="PERM_CUSTOM_5") @Result(property="permCustom6",column="PERM_CUSTOM_6") @Result(property="permCustom7",column="PERM_CUSTOM_7") @Result(property="permCustom8",column="PERM_CUSTOM_8") @Result(property="permCustom9",column="PERM_CUSTOM_9") @Result(property="permCustom10",column="PERM_CUSTOM_10") @Result(property="permCustom11",column="PERM_CUSTOM_11") @Result(property="permCustom12",column="PERM_CUSTOM_12")
WorkbasketAccessItemImpl findById(@Param(value="id")
String id)
@Select(value="<script>SELECT ID, WORKBASKET_ID, ACCESS_ID, PERM_READ, PERM_OPEN, PERM_APPEND, PERM_TRANSFER, PERM_DISTRIBUTE, PERM_CUSTOM_1, PERM_CUSTOM_2, PERM_CUSTOM_3, PERM_CUSTOM_4, PERM_CUSTOM_5, PERM_CUSTOM_6, PERM_CUSTOM_7, PERM_CUSTOM_8, PERM_CUSTOM_9, PERM_CUSTOM_10, PERM_CUSTOM_11, PERM_CUSTOM_12 FROM TASKANA.WORKBASKET_ACCESS_LIST WHERE WORKBASKET_ID = #{id} <if test=\"_databaseId == \'db2\'\">with UR </if> </script>")
@Result(property="id",column="ID") @Result(property="workbasketId",column="WORKBASKET_ID") @Result(property="accessId",column="ACCESS_ID") @Result(property="permRead",column="PERM_READ") @Result(property="permOpen",column="PERM_OPEN") @Result(property="permAppend",column="PERM_APPEND") @Result(property="permTransfer",column="PERM_TRANSFER") @Result(property="permDistribute",column="PERM_DISTRIBUTE") @Result(property="permCustom1",column="PERM_CUSTOM_1") @Result(property="permCustom2",column="PERM_CUSTOM_2") @Result(property="permCustom3",column="PERM_CUSTOM_3") @Result(property="permCustom4",column="PERM_CUSTOM_4") @Result(property="permCustom5",column="PERM_CUSTOM_5") @Result(property="permCustom6",column="PERM_CUSTOM_6") @Result(property="permCustom7",column="PERM_CUSTOM_7") @Result(property="permCustom8",column="PERM_CUSTOM_8") @Result(property="permCustom9",column="PERM_CUSTOM_9") @Result(property="permCustom10",column="PERM_CUSTOM_10") @Result(property="permCustom11",column="PERM_CUSTOM_11") @Result(property="permCustom12",column="PERM_CUSTOM_12")
List<WorkbasketAccessItemImpl> findByWorkbasketId(@Param(value="id")
String id)
@Insert(value="INSERT INTO TASKANA.WORKBASKET_ACCESS_LIST (ID, WORKBASKET_ID, ACCESS_ID, PERM_READ, PERM_OPEN, PERM_APPEND, PERM_TRANSFER, PERM_DISTRIBUTE, PERM_CUSTOM_1, PERM_CUSTOM_2, PERM_CUSTOM_3, PERM_CUSTOM_4, PERM_CUSTOM_5, PERM_CUSTOM_6, PERM_CUSTOM_7, PERM_CUSTOM_8, PERM_CUSTOM_9, PERM_CUSTOM_10, PERM_CUSTOM_11, PERM_CUSTOM_12) VALUES (#{workbasketAccessItem.id}, #{workbasketAccessItem.workbasketId}, #{workbasketAccessItem.accessId}, #{workbasketAccessItem.permRead}, #{workbasketAccessItem.permOpen}, #{workbasketAccessItem.permAppend}, #{workbasketAccessItem.permTransfer}, #{workbasketAccessItem.permDistribute}, #{workbasketAccessItem.permCustom1}, #{workbasketAccessItem.permCustom2}, #{workbasketAccessItem.permCustom3}, #{workbasketAccessItem.permCustom4}, #{workbasketAccessItem.permCustom5}, #{workbasketAccessItem.permCustom6}, #{workbasketAccessItem.permCustom7}, #{workbasketAccessItem.permCustom8}, #{workbasketAccessItem.permCustom9}, #{workbasketAccessItem.permCustom10}, #{workbasketAccessItem.permCustom11}, #{workbasketAccessItem.permCustom12})")
@Options(keyProperty="id",
keyColumn="ID")
void insert(@Param(value="workbasketAccessItem")
WorkbasketAccessItemImpl workbasketAccessItem)
@Update(value="UPDATE TASKANA.WORKBASKET_ACCESS_LIST SET WORKBASKET_ID = #{workbasketAccessItem.workbasketId}, ACCESS_ID = #{workbasketAccessItem.accessId}, PERM_READ = #{workbasketAccessItem.permRead}, PERM_OPEN = #{workbasketAccessItem.permOpen}, PERM_APPEND = #{workbasketAccessItem.permAppend}, PERM_TRANSFER = #{workbasketAccessItem.permTransfer}, PERM_DISTRIBUTE = #{workbasketAccessItem.permDistribute}, PERM_CUSTOM_1 = #{workbasketAccessItem.permCustom1}, PERM_CUSTOM_2 = #{workbasketAccessItem.permCustom2}, PERM_CUSTOM_3 = #{workbasketAccessItem.permCustom3}, PERM_CUSTOM_4 = #{workbasketAccessItem.permCustom4}, PERM_CUSTOM_5 = #{workbasketAccessItem.permCustom5}, PERM_CUSTOM_6 = #{workbasketAccessItem.permCustom6}, PERM_CUSTOM_7 = #{workbasketAccessItem.permCustom7}, PERM_CUSTOM_8 = #{workbasketAccessItem.permCustom8}, PERM_CUSTOM_9 = #{workbasketAccessItem.permCustom9}, PERM_CUSTOM_10 = #{workbasketAccessItem.permCustom10}, PERM_CUSTOM_11 = #{workbasketAccessItem.permCustom11}, PERM_CUSTOM_12 = #{workbasketAccessItem.permCustom12} WHERE id = #{workbasketAccessItem.id}")
void update(@Param(value="workbasketAccessItem")
WorkbasketAccessItemImpl workbasketAccessItem)
@Delete(value="DELETE FROM TASKANA.WORKBASKET_ACCESS_LIST WHERE ID = #{id}")
void delete(@Param(value="id")
String id)
@Delete(value="DELETE FROM TASKANA.WORKBASKET_ACCESS_LIST WHERE WORKBASKET_ID = #{workbasketId}")
void deleteAllAccessItemsForWorkbasketId(@Param(value="workbasketId")
String workbasketId)
@Delete(value="DELETE FROM TASKANA.WORKBASKET_ACCESS_LIST where ACCESS_ID = #{accessId}")
void deleteAccessItemsForAccessId(@Param(value="accessId")
String accessId)
@Select(value="<script>SELECT MAX(PERM_READ::int) AS P_READ, MAX(PERM_OPEN::int) AS P_OPEN, MAX(PERM_APPEND::int) AS P_APPEND, MAX(PERM_TRANSFER::int) AS P_TRANSFER, MAX(PERM_DISTRIBUTE::int) AS P_DISTRIBUTE, MAX(PERM_CUSTOM_1::int) AS P_CUSTOM_1, MAX(PERM_CUSTOM_2::int) AS P_CUSTOM_2, MAX(PERM_CUSTOM_3::int) AS P_CUSTOM_3, MAX(PERM_CUSTOM_4::int) AS P_CUSTOM_4, MAX(PERM_CUSTOM_5::int) AS P_CUSTOM_5, MAX(PERM_CUSTOM_6::int) AS P_CUSTOM_6, MAX(PERM_CUSTOM_7::int) AS P_CUSTOM_7, MAX(PERM_CUSTOM_8::int) AS P_CUSTOM_8, MAX(PERM_CUSTOM_9::int) AS P_CUSTOM_9, MAX(PERM_CUSTOM_10::int) AS P_CUSTOM_10, MAX(PERM_CUSTOM_11::int) AS P_CUSTOM_11, MAX(PERM_CUSTOM_12::int) AS P_CUSTOM_12 FROM TASKANA.WORKBASKET_ACCESS_LIST WHERE WORKBASKET_ID = #{workbasketId} AND ACCESS_ID IN(<foreach item=\'item\' collection=\'accessIds\' separator=\',\' >#{item}</foreach>) <if test=\"_databaseId == \'db2\'\">with UR </if> </script>")
@Result(property="id",column="ID") @Result(property="workbasketId",column="WORKBASKET_ID") @Result(property="accessId",column="ACCESS_ID") @Result(property="permRead",column="P_READ") @Result(property="permOpen",column="P_OPEN") @Result(property="permAppend",column="P_APPEND") @Result(property="permTransfer",column="P_TRANSFER") @Result(property="permDistribute",column="P_DISTRIBUTE") @Result(property="permCustom1",column="P_CUSTOM_1") @Result(property="permCustom2",column="P_CUSTOM_2") @Result(property="permCustom3",column="P_CUSTOM_3") @Result(property="permCustom4",column="P_CUSTOM_4") @Result(property="permCustom5",column="P_CUSTOM_5") @Result(property="permCustom6",column="P_CUSTOM_6") @Result(property="permCustom7",column="P_CUSTOM_7") @Result(property="permCustom8",column="P_CUSTOM_8") @Result(property="permCustom9",column="P_CUSTOM_9") @Result(property="permCustom10",column="P_CUSTOM_10") @Result(property="permCustom11",column="P_CUSTOM_11") @Result(property="permCustom12",column="P_CUSTOM_12")
WorkbasketAccessItemImpl findByWorkbasketAndAccessId(@Param(value="workbasketId")
String workbasketId,
@Param(value="accessIds")
List<String> accessIds)
@Select(value="<script>SELECT MAX(PERM_READ::int) AS P_READ, MAX(PERM_OPEN::int) AS P_OPEN, MAX(PERM_APPEND::int) AS P_APPEND, MAX(PERM_TRANSFER::int) AS P_TRANSFER, MAX(PERM_DISTRIBUTE::int) AS P_DISTRIBUTE, MAX(PERM_CUSTOM_1::int) AS P_CUSTOM_1, MAX(PERM_CUSTOM_2::int) AS P_CUSTOM_2, MAX(PERM_CUSTOM_3::int) AS P_CUSTOM_3, MAX(PERM_CUSTOM_4::int) AS P_CUSTOM_4, MAX(PERM_CUSTOM_5::int) AS P_CUSTOM_5, MAX(PERM_CUSTOM_6::int) AS P_CUSTOM_6, MAX(PERM_CUSTOM_7::int) AS P_CUSTOM_7, MAX(PERM_CUSTOM_8::int) AS P_CUSTOM_8, MAX(PERM_CUSTOM_9::int) AS P_CUSTOM_9, MAX(PERM_CUSTOM_10::int) AS P_CUSTOM_10, MAX(PERM_CUSTOM_11::int) AS P_CUSTOM_11, MAX(PERM_CUSTOM_12::int) AS P_CUSTOM_12 FROM TASKANA.WORKBASKET_ACCESS_LIST WHERE WORKBASKET_ID in (SELECT ID FROM TASKANA.WORKBASKET WHERE KEY = #{workbasketKey} AND DOMAIN = #{domain} ) AND ACCESS_ID IN(<foreach item=\'item\' collection=\'accessIds\' separator=\',\' >#{item}</foreach>) <if test=\"_databaseId == \'db2\'\">with UR </if> </script>")
@Result(property="workbasketId",column="WORKBASKET_ID") @Result(property="accessId",column="ACCESS_ID") @Result(property="permRead",column="P_READ") @Result(property="permOpen",column="P_OPEN") @Result(property="permAppend",column="P_APPEND") @Result(property="permTransfer",column="P_TRANSFER") @Result(property="permDistribute",column="P_DISTRIBUTE") @Result(property="permCustom1",column="P_CUSTOM_1") @Result(property="permCustom2",column="P_CUSTOM_2") @Result(property="permCustom3",column="P_CUSTOM_3") @Result(property="permCustom4",column="P_CUSTOM_4") @Result(property="permCustom5",column="P_CUSTOM_5") @Result(property="permCustom6",column="P_CUSTOM_6") @Result(property="permCustom7",column="P_CUSTOM_7") @Result(property="permCustom8",column="P_CUSTOM_8") @Result(property="permCustom9",column="P_CUSTOM_9") @Result(property="permCustom10",column="P_CUSTOM_10") @Result(property="permCustom11",column="P_CUSTOM_11") @Result(property="permCustom12",column="P_CUSTOM_12")
WorkbasketAccessItemImpl findByWorkbasketKeyDomainAndAccessId(@Param(value="workbasketKey")
String workbasketKey,
@Param(value="domain")
String domain,
@Param(value="accessIds")
List<String> accessIds)
Copyright © 2018. All rights reserved.