public void cleardeskmenu(String userID, String currentSystemID) throws Exception { String sql = "cleardeskmenu"; executor.delete(sql, userID, currentSystemID); }
@Override public void deleteWorkTime(String id) throws Exception { executor.delete("deleteWorkTime",id); } @Override
@Override public void deleteOrg(String orgId, String areaId) throws Exception { executor.delete("deleteOrg", orgId, areaId); }
@Override public void delFormDatasByBusinessKey(String businessKey) throws Exception { executor.delete("delFormDatasByBusinessKey_wf", businessKey); }
@Override public void delVariable(String variableId) throws Exception { executor.delete("delVariable_wf", variableId); }
/** * 删除委托待办信息 * @param entrustId * @throws Exception */ public void deleteWfEntrustById(String entrustId) throws Exception{ if(!StringUtils.isEmpty(entrustId)){ executor.delete("deleteEntrustProcRelationByEntrustId", entrustId); executor.delete("deleteWfEntrustById", entrustId); }else{ throw new Exception("entrustId is empty"); } }
public void deleteRole(String roleId) throws RoleException { try { executor.delete("deleteByKey", roleId); } catch (Throwable e) { throw new RoleException("delete Role failed::roleId=" + roleId, e); } } public void deleteBatchRole(String... roleIds) throws RoleException {
public void deleteSmUser(String userId) throws SmUserException { try { executor.delete("deleteByKey", userId); } catch (Throwable e) { throw new SmUserException("delete SmUser failed::userId=" + userId, e); } } public void deleteBatchSmUser(String[] userIds,String user_deltype) throws SmUserException {
public void deleteApplication(String appId) throws ApplicationException { try { executor.delete("deleteByKey", appId); } catch (Throwable e) { throw new ApplicationException("delete Application failed::appId=" + appId, e); } } public void deleteBatchApplication(String... appIds) throws ApplicationException {
public void deleteCmsWxtoken(long id) throws CmsWxtokenException { try { executor.delete("deleteByKey", id); } catch (Throwable e) { throw new CmsWxtokenException("delete CmsWxtoken failed::id=" + id, e); } }
public void deleteResource(String resId) throws ResourceException { try { executor.delete("deleteByKey", resId); } catch (Throwable e) { throw new ResourceException("delete Resource failed::resId=" + resId, e); } } public void deleteBatchResource(String... resIds) throws ResourceException {
public void deleteRoleType(String typeId) throws RoleTypeException { try { executor.delete("deleteByKey", typeId); } catch (Throwable e) { throw new RoleTypeException("delete RoleType failed::typeId=" + typeId, e); } } public void deleteBatchRoleType(String... typeIds) throws RoleTypeException {
public void deleteSmOrganization(String orgId) throws SmOrganizationException { try { executor.update("moveUsertoDaigang", orgId); executor.delete("removeOrgManager", orgId); executor.delete("deleteByKey", orgId); } catch (Throwable e) { throw new SmOrganizationException("delete SmOrganization failed::orgId=" + orgId, e); } } public void deleteBatchSmOrganization(String... orgIds) throws SmOrganizationException {
public void deleteSmUserWx(long wxid) throws SmUserWxException { try { executor.delete("deleteByKey", wxid); } catch (Throwable e) { throw new SmUserWxException("delete SmUserWx failed::wxid=" + wxid, e); } }
public void deleteApiXml(int id) throws ApiXmlException { try { executor.delete("deleteByKey", id); } catch (Throwable e) { throw new ApiXmlException("delete ApiXml failed::id=" + id, e); } } public void deleteBatchApiXml(int... ids) throws ApiXmlException {
@Override public void backupDatasToWorktime(String processId) { TransactionManager tm = new TransactionManager(); try { tm.begin(); // SimpleDateFormat format = new // SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); // String backuptime = format.format(new Date()); Map datas = new HashMap(); datas.put("backuptime", new Timestamp(new Date().getTime())); datas.put("processId", processId); executor.insertBean("backupWorktimeToHi_wf", datas); executor.delete("deleteNodeWorktimeByProcesId_wf", processId); tm.commit(); } catch (Exception e) { throw new ProcessException(e); } finally { tm.release(); } }
@Override public String delTemplates(String templateIds) throws Exception { String[] ids = templateIds.split(","); TransactionManager tm = new TransactionManager(); String result = "success"; try { tm.begin(); for (String templeId : ids) { if (StringUtil.isNotEmpty(templeId)) { // 判断模板是否有没被引用 List<ActivitiNodeCandidate> nodeList = executor.queryList( ActivitiNodeCandidate.class, "selectNodeById", templeId, templeId); if (nodeList != null && nodeList.size() != 0) { result = "fail"; break; } else { // 执行删除 executor.delete("deleteMessTemplate", templeId); } } } if (result.equals("success")) { tm.commit(); } return result; } finally { tm.release(); } }
public void backuplog() throws LogException{ TransactionManager tm = new TransactionManager(); try { tm.begin(); this.executor.insert("backuplog",new Date()); this.executor.delete("deletealllog"); tm.commit(); } catch (Exception e) { throw new LogException("backuplog failed:",e); } finally { tm.release(); } } /**
public void saveClasses(List<DocClass> docClasses,String site_id) throws Exception { // TODO Auto-generated method stub TransactionManager tm = new TransactionManager(); try { tm.begin(); executor.delete("deleteClasses", site_id); executor.insertBeans("saveClasses", docClasses); tm.commit(); } catch(Exception e) { throw e; } finally { tm.release(); } } }
"getProcessStarter", processID); List<WfRunTask> tasks = getTodoList(processID,startUser,lastOp, this.activitiService.getUserInfoMap().getUserName(lastOper)); executor.delete("deleteWfRunTaskByKey", processID);