/** * 根据流程key,删除统一待办任务 * @param processKey * @throws Exception */ public void deleteTodoListByProinstids(String... processInstIDs) throws Exception { executor.deleteByKeys("deleteTaskInfoByProcessId", processInstIDs); }
/** * 根据流程key,删除统一待办任务 * @param processKey * @throws Exception */ public void deleteTodoListByKeys(String... processKeys) throws Exception { this.executor.deleteByKeys("deleteTodoListByKey", processKeys); }
executor.deleteByKeys("deleteByKey", userId);//物理删除
public void deleteBatchSmOrganization(String... orgIds) throws SmOrganizationException { TransactionManager tm = new TransactionManager(); try { tm.begin(); executor.updateByKeys("moveUsertoDaigang", orgIds); executor.deleteByKeys("removeOrgManager", orgIds); executor.deleteByKeys("deleteByKey", orgIds); tm.commit(); } catch (Throwable e) { throw new SmOrganizationException("batch delete SmOrganization failed::orgIds=" + orgIds, e); } finally { tm.release(); } } public boolean hasSon(String org) throws SmOrganizationException{
public void deleteBatchRoleType(String... typeIds) throws RoleTypeException { TransactionManager tm = new TransactionManager(); try { tm.begin(); executor.deleteByKeys("deleteByKey", typeIds); tm.commit(); } catch (Throwable e) { throw new RoleTypeException("batch delete RoleType failed::typeIds=" + typeIds, e); } finally { tm.release(); } } public void updateRoleType(RoleType roleType) throws RoleTypeException {
public void deleteBatchApplication(String... appIds) throws ApplicationException { TransactionManager tm = new TransactionManager(); try { tm.begin(); executor.deleteByKeys("deleteByKey", appIds); tm.commit(); } catch (Throwable e) { throw new ApplicationException("batch delete Application failed::appIds=" + appIds, e); } finally { tm.release(); } } public void updateApplication(Application application) throws ApplicationException {
public void deleteBatchResource(String... resIds) throws ResourceException { TransactionManager tm = new TransactionManager(); try { tm.begin(); executor.deleteByKeys("deleteByKey", resIds); tm.commit(); } catch (Throwable e) { throw new ResourceException("batch delete Resource failed::resIds=" + resIds, e); } finally { tm.release(); } } public void updateResource(Resource resource) throws ResourceException {
public void deleteBatchRole(String... roleIds) throws RoleException { TransactionManager tm = new TransactionManager(); try { tm.begin(); executor.deleteByKeys("deleteByKey", roleIds); tm.commit(); } catch (Throwable e) { throw new RoleException("batch delete Role failed::roleIds=" + roleIds, e); } finally { tm.release(); } } public void updateRole(Role role) throws RoleException {
public void deleteBatchApiXml(int... ids) throws ApiXmlException { TransactionManager tm = new TransactionManager(); try { tm.begin(); executor.deleteByKeys("deleteByKey", ids); tm.commit(); } catch (Throwable e) { throw new ApiXmlException("batch delete ApiXml failed::ids=" + ids, e); } finally { tm.release(); } } public void updateApiXml(ApiXml apiXml) throws ApiXmlException {
public void removeorgmanager(String[] userIds_) throws SmOrganizationException{ TransactionManager tm = new TransactionManager(); try { tm.begin(); this.executor.deleteByKeys("removeorgmanagerofusers", userIds_); tm.commit(); } catch (Exception e) { throw new SmOrganizationException("removeorgmanagerofusers failed:", e); } finally{ tm.release(); } } public void removeorgmanager(String[] userIds_, String orgId) throws SmOrganizationException{
public void deleteBatchSmUser(String[] userIds,String user_deltype) throws SmUserException { TransactionManager tm = new TransactionManager(); try { tm.begin(); if(user_deltype == null || user_deltype.equals("0"))//逻辑删除 { executor.updateByKeys("logicDeleteUsers", userIds); } else { executor.deleteByKeys("deleteByKey", userIds);//物理删除 } tm.commit(); } catch (Throwable e) { throw new SmUserException("batch delete SmUser failed::userIds=" + userIds, e); } finally { tm.release(); } } /**
public void deleteRoleUsersOfRoles(String[] roleIds)throws SmUserException{ if(roleIds == null || roleIds.length == 0) return; TransactionManager tm = new TransactionManager(); try { tm.begin(); // String roleIds_[] = StringUtil.isEmpty(roleIds)?null: roleIds.split(","); // this.executor.deleteByKeys("deleteRoleUsersOfRoles", roleIds); tm.commit(); } catch (Exception e) { throw new SmUserException(e); } finally { tm.release(); } } /** (non-Javadoc)
/** * 删除角色用户关系 * @param userIds */ public void deleteRoleUsersOfUsers(String[] userIds)throws SmUserException{ if(userIds == null || userIds.length == 0) return; TransactionManager tm = new TransactionManager(); try { tm.begin(); // String roleIds_[] = StringUtil.isEmpty(roleIds)?null: roleIds.split(","); // this.executor.deleteByKeys("deleteRoleUsersOfUsers", userIds); tm.commit(); } catch (Exception e) { throw new SmUserException(e); } finally { tm.release(); } } public void deleteRoleUsersOfRoles(String[] roleIds)throws SmUserException{