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) |
List<WorkbasketAccessItemImpl> |
findByWorkbasketAccessByWorkbasketKeyDomainAndAuthorization(String workbasketKey,
String domain,
List<String> accessIds,
String authorization) |
WorkbasketAccessItemImpl |
findByWorkbasketAndAccessId(String workbasketId,
List<String> accessIds) |
List<WorkbasketAccessItemImpl> |
findByWorkbasketAndAccessIdAndAuthorizationsById(String workbasketId,
List<String> accessIds,
String authorization) |
List<WorkbasketAccessItemImpl> |
findByWorkbasketId(String id) |
void |
insert(WorkbasketAccessItemImpl workbasketAccessItem) |
void |
update(WorkbasketAccessItemImpl workbasketAccessItem) |
@Select(value="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 WORKBASKET_ACCESS_LIST WHERE ID = #{id}")
@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="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 WORKBASKET_ACCESS_LIST WHERE WORKBASKET_ID = #{id}")
@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 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 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 WORKBASKET_ACCESS_LIST WHERE ID = #{id}")
void delete(@Param(value="id")
String id)
@Delete(value="DELETE FROM WORKBASKET_ACCESS_LIST WHERE WORKBASKET_ID = #{workbasketId}")
void deleteAllAccessItemsForWorkbasketId(@Param(value="workbasketId")
String workbasketId)
@Delete(value="DELETE FROM WORKBASKET_ACCESS_LIST where ACCESS_ID = #{accessId}")
void deleteAccessItemsForAccessId(@Param(value="accessId")
String accessId)
@Select(value="<script>SELECT MAX(PERM_READ) AS P_READ, MAX(PERM_OPEN) AS P_OPEN, MAX(PERM_APPEND) AS P_APPEND, MAX(PERM_TRANSFER) AS P_TRANSFER, MAX(PERM_DISTRIBUTE) AS P_DISTRIBUTE, MAX(PERM_CUSTOM_1) AS P_CUSTOM_1, MAX(PERM_CUSTOM_2) AS P_CUSTOM_2, MAX(PERM_CUSTOM_3) AS P_CUSTOM_3, MAX(PERM_CUSTOM_4) AS P_CUSTOM_4, MAX(PERM_CUSTOM_5) AS P_CUSTOM_5, MAX(PERM_CUSTOM_6) AS P_CUSTOM_6, MAX(PERM_CUSTOM_7) AS P_CUSTOM_7, MAX(PERM_CUSTOM_8) AS P_CUSTOM_8, MAX(PERM_CUSTOM_9) AS P_CUSTOM_9, MAX(PERM_CUSTOM_10) AS P_CUSTOM_10, MAX(PERM_CUSTOM_11) AS P_CUSTOM_11, MAX(PERM_CUSTOM_12) AS P_CUSTOM_12 FROM WORKBASKET_ACCESS_LIST WHERE WORKBASKET_ID = #{workbasketId} AND ACCESS_ID IN(<foreach item=\'item\' collection=\'accessIds\' separator=\',\' >#{item}</foreach>)</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 a.ID, a.WORKBASKET_ID, a.ACCESS_ID, a.PERM_READ, a.PERM_OPEN, a.PERM_APPEND, a.PERM_TRANSFER, a.PERM_DISTRIBUTE, a.PERM_CUSTOM_1, a.PERM_CUSTOM_2, a.PERM_CUSTOM_3, a.PERM_CUSTOM_4, a.PERM_CUSTOM_5, a.PERM_CUSTOM_6, a.PERM_CUSTOM_7, a.PERM_CUSTOM_8, a.PERM_CUSTOM_9, a.PERM_CUSTOM_10, a.PERM_CUSTOM_11, a.PERM_CUSTOM_12 FROM WORKBASKET_ACCESS_LIST a LEFT OUTER JOIN WORKBASKET w on w.ID = a.WORKBASKET_ID WHERE w.KEY = #{workbasketKey} AND w.DOMAIN = #{domain} AND ACCESS_ID IN(<foreach item=\'item\' collection=\'accessIds\' separator=\',\' >#{item}</foreach>)AND <if test=\"authorization == \'OPEN\'\">a.PERM_OPEN</if><if test=\"authorization == \'READ\'\">a.PERM_READ</if><if test=\"authorization == \'APPEND\'\">a.PERM_APPEND</if><if test=\"authorization == \'TRANSFER\'\">a.PERM_TRANSFER</if><if test=\"authorization == \'DISTRIBUTE\'\">a.PERM_DISTRIBUTE</if><if test=\"authorization == \'CUSTOM_1\'\">a.PERM_CUSTOM_1</if><if test=\"authorization == \'CUSTOM_2\'\">a.PERM_CUSTOM_2</if><if test=\"authorization == \'CUSTOM_3\'\">a.PERM_CUSTOM_3</if><if test=\"authorization == \'CUSTOM_4\'\">a.PERM_CUSTOM_4</if><if test=\"authorization == \'CUSTOM_5\'\">a.PERM_CUSTOM_5</if><if test=\"authorization == \'CUSTOM_6\'\">a.PERM_CUSTOM_6</if><if test=\"authorization == \'CUSTOM_7\'\">a.PERM_CUSTOM_7</if><if test=\"authorization == \'CUSTOM_8\'\">a.PERM_CUSTOM_8</if><if test=\"authorization == \'CUSTOM_9\'\">a.PERM_CUSTOM_9</if><if test=\"authorization == \'CUSTOM_10\'\">a.PERM_CUSTOM_10</if><if test=\"authorization == \'CUSTOM_11\'\">a.PERM_CUSTOM_11</if><if test=\"authorization == \'CUSTOM_12\'\">a.PERM_CUSTOM_12</if> = 1</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> findByWorkbasketAccessByWorkbasketKeyDomainAndAuthorization(@Param(value="workbasketKey")
String workbasketKey,
@Param(value="domain")
String domain,
@Param(value="accessIds")
List<String> accessIds,
@Param(value="authorization")
String authorization)
@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 WORKBASKET_ACCESS_LIST WHERE WORKBASKET_ID = #{workbasketId} AND ACCESS_ID IN(<foreach item=\'item\' collection=\'accessIds\' separator=\',\' >#{item}</foreach>)AND <if test=\"authorization == \'OPEN\'\">PERM_OPEN</if><if test=\"authorization == \'READ\'\">PERM_READ</if><if test=\"authorization == \'APPEND\'\">PERM_APPEND</if><if test=\"authorization == \'TRANSFER\'\">PERM_TRANSFER</if><if test=\"authorization == \'DISTRIBUTE\'\">PERM_DISTRIBUTE</if><if test=\"authorization == \'CUSTOM_1\'\">PERM_CUSTOM_1</if><if test=\"authorization == \'CUSTOM_2\'\">PERM_CUSTOM_2</if><if test=\"authorization == \'CUSTOM_3\'\">PERM_CUSTOM_3</if><if test=\"authorization == \'CUSTOM_4\'\">PERM_CUSTOM_4</if><if test=\"authorization == \'CUSTOM_5\'\">PERM_CUSTOM_5</if><if test=\"authorization == \'CUSTOM_6\'\">PERM_CUSTOM_6</if><if test=\"authorization == \'CUSTOM_7\'\">PERM_CUSTOM_7</if><if test=\"authorization == \'CUSTOM_8\'\">PERM_CUSTOM_8</if><if test=\"authorization == \'CUSTOM_9\'\">PERM_CUSTOM_9</if><if test=\"authorization == \'CUSTOM_10\'\">PERM_CUSTOM_10</if><if test=\"authorization == \'CUSTOM_11\'\">PERM_CUSTOM_11</if><if test=\"authorization == \'CUSTOM_12\'\">PERM_CUSTOM_12</if> = 1</script>")
List<WorkbasketAccessItemImpl> findByWorkbasketAndAccessIdAndAuthorizationsById(@Param(value="workbasketId")
String workbasketId,
@Param(value="accessIds")
List<String> accessIds,
@Param(value="authorization")
String authorization)
Copyright © 2018. All rights reserved.