kr.co.exsoft.common.service.CommonService.java Source code

Java tutorial

Introduction

Here is the source code for kr.co.exsoft.common.service.CommonService.java

Source

package kr.co.exsoft.common.service;

import java.util.List;
import java.util.HashMap;
import java.util.Map;

import org.apache.commons.collections.map.CaseInsensitiveMap;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.transaction.annotation.Propagation;

import java.sql.SQLException;

import kr.co.exsoft.common.vo.CodeVO;
import kr.co.exsoft.common.vo.MenuAuthVO;
import kr.co.exsoft.common.vo.HistoryVO;
import kr.co.exsoft.common.vo.RecentlyObjectVO;
import kr.co.exsoft.common.vo.SessionVO;
import kr.co.exsoft.document.vo.PageVO;

/**
 * /  ??
 * @author  
 * @since 2014.07.17
 * @version 3.0
 *
 */
@Transactional
public interface CommonService {

    /**
     * 
     * <pre>
     * 1.  : ? ?  :: nextValTable / nextVal 
     * 2.  : 
     * </pre>
     * @Method Name : commonNextVal
     * @param counter_id
     * @return
     * @throws Exception int
     */
    @Transactional(propagation = Propagation.REQUIRES_NEW, rollbackFor = { Exception.class, SQLException.class })
    public int commonNextVal(String counter_id) throws Exception;

    /**
     * 
     * <pre>
     * 1.  :  ?   
     * 2.  :
     * </pre>
     * @Method Name : currentVal
     * @param counter_id
     * @return int
     * @throws Exception
     */
    public int currentVal(String counter_id) throws Exception;

    /**
     * 
     * <pre>
     * 1.  : ? ? ? 
     * 2.  :
     * </pre>
     * @Method Name : nextValTable
     * @param String : counter_id
     * @return int
     * @throws Exception
     */
    @Transactional(propagation = Propagation.REQUIRES_NEW, rollbackFor = { Exception.class, SQLException.class })
    public int nextValTable(String counter_id) throws Exception;

    /**
     * 
     * <pre>
     * 1.  :   
     * 2.  :
     * </pre>
     * @Method Name : codeDetail
     * @param map
     * @return
     * @throws Exception
     */
    public CodeVO codeDetail(HashMap<String, Object> map) throws Exception;

    /**
     * 
     * <pre>
     * 1.  :  ? 
     * 2.  :
     * </pre>
     * @Method Name : codeList
     * @param map
     * @return
     * @throws Exception
     */
    public List<CodeVO> codeList(HashMap<String, Object> map) throws Exception;

    /**
     * 
     * <pre>
     * 1.  : ?? ?  
     * 2.  :
     * </pre>
     * @Method Name : editorWrite
     * @param map
     * @return
     * @throws Exception
     */
    public int editorWrite(HashMap<String, Object> map) throws Exception;

    /**
     * 
     * <pre>
     * 1.  : ?? ?  
     * 2.  :
     * </pre>
     * @Method Name : editorDetailInfo
     * @param map
     * @return CaseInsensitiveMap
     * @throws Exception
     */
    public CaseInsensitiveMap editorDetailInfo(HashMap<String, Object> map) throws Exception;

    /**
     * 
     * <pre>
     * 1.  : EDMS ? ??  ?
     * 2.  :
     * </pre>
     * @Method Name : checkUserLicense
     * @return boolean
     * @throws Exception
     */
    public boolean checkUserLicense() throws Exception;

    /**
     * 
     * <pre>
     * 1.  :  ? ? .
     * 2.  :
     * </pre>
     * @Method Name : codePageList
     * @param map
     * @return Map
     * @throws Exception
     */
    public Map<String, Object> codePageList(HashMap<String, Object> map) throws Exception;

    /**
     * 
     * <pre>
     * 1.  :  ? 
     * 2.  :
     * </pre>
     * @Method Name : menuAuthList
     * @param map
     * @return List
     * @throws Exception
     */
    public Map<String, Object> menuAuthList(HashMap<String, Object> map) throws Exception;

    /**
     * 
     * <pre>
     * 1.  :  ? 
     * 2.  : 
     * </pre>
     * @Method Name : adminMenuAuthList
     * @param map
     * @return
     * @throws Exception List<MenuAuthVO>
     */
    public List<MenuAuthVO> adminMenuAuthList(HashMap<String, Object> map) throws Exception;

    /**
     * 
     * <pre>
     * 1.  :   ?// -  Base  @Transactional 
     * 2.  :
     * </pre>
     * @Method Name : codeManager
     * @param codeVO
     * @param map
     * @return
     * @throws Exception
     */
    @Transactional(propagation = Propagation.REQUIRES_NEW, rollbackFor = { Exception.class, SQLException.class })
    public Map<String, Object> codeManager(CodeVO codeVO, HashMap<String, Object> map) throws Exception;

    /**
     * 
     * <pre>
     * 1.  :  ?// 
     * 2.  :
     * </pre>
     * @Method Name : menuAuthManager
     * @param menuAuthVO
     * @param map
     * @return Map
     * @throws Exception
     */
    @Transactional(propagation = Propagation.REQUIRES_NEW, rollbackFor = { Exception.class, SQLException.class })
    public Map<String, Object> menuAuthManager(List<MenuAuthVO> menuAuthList, HashMap<String, Object> map)
            throws Exception;

    /**
     * 
     * <pre>
     * 1.  :  (/)  ?  
     * 2.  :
     * </pre>
     * @Method Name : setMenuAuthParam
     * @param inputStr
     * @return Str
     */
    public List<MenuAuthVO> setMenuAuthParam(String[] inputStr);

    /**
     * 
     * <pre>
     * 1.  :  (?)  ?  
     * 2.  :
     * </pre>
     * @Method Name : setMenuAuthParam
     * @param inputStr
     * @param map
     * @return List
     */
    public List<MenuAuthVO> setMenuAuthParam(String[] inputStr, HashMap<String, Object> map);

    /**
     * 
     * <pre>
     * 1.  :  ?   .
     * 2.  :
     * </pre>
     * @Method Name : menuList
     * @param map
     * @return
     * @throws Exception
     */
    public Map<String, Object> menuList(HashMap<String, Object> map) throws Exception;

    /**
     * 
     * <pre>
     * 1.  : ? ?     -- ?
     * 2.  : 
     * </pre>
     * @Method Name : getMenuAuth
     * @param map
     * @return
     * @throws Exception MenuAuthVO
     */
    public String getMenuAuth(HashMap<String, Object> map) throws Exception;

    /**
     * 
     * <pre>
     * 1.  : ??//? ?
     * 2.  : 
     * </pre>
     * @Method Name : historyWrite
     * @param historyVO
     * @throws Exception void
     */
    public int historyWrite(HistoryVO historyVO) throws Exception;

    /**
     * 
     * <pre>
     * 1.  :   
     * 2.  : 
     * </pre>
     * @Method Name : confDetail
     * @param map
     * @return
     * @throws Exception Map<String,Object>
     */
    public Map<String, Object> confDetail(HashMap<String, Object> map) throws Exception;

    /**
     * 
     * <pre>
     * 1.  :    ::  ?/
     * 2.  : 
     * </pre>
     * @Method Name : trashConfig
     * @param map
     * @return
     * @throws Exception List<HashMap<String,Object>>
     */
    public List<HashMap<String, Object>> trashConfig(HashMap<String, Object> map) throws Exception;

    /**
     * 
     * <pre>
     * 1.  : ?   : 
     * 2.  : 
     * </pre>
     * @Method Name : auditConfig
     * @param map
     * @return
     * @throws Exception Map<String,Object>
     */
    public Map<String, Object> auditConfig(HashMap<String, Object> map) throws Exception;

    /**
     * 
     * <pre>
     * 1.  :    
     * 2.  : 
     * </pre>
     * @Method Name : confProc
     * @param map
     * @return
     * @throws Exception Map<String,Object>
     */
    public Map<String, Object> confProc(HashMap<String, Object> map) throws Exception;

    /**
     * 
     * <pre>
     * 1.  :  ? ?   . -- ?
     * 2.  : 
     * </pre>
     * @Method Name : pageMenuInfo
     * @param map
     * @return
     * @throws Exception Map<String,Object>
     */
    public Map<String, Object> pageMenuInfo(HashMap<String, Object> map) throws Exception;

    /**
     * 
     * <pre>
     * 1.  :    ? .
     * 2.  : 
     * </pre>
     * @Method Name : authGroupList
     * @param map
     * @return
     * @throws Exception List<String>
     */
    public List<String> authGroupList(String part, SessionVO sessionVO) throws Exception;

    /**
     * 
     * <pre>
     * 1.  : ?? FullPath  
     * 2.  : 
     * </pre>
     * @Method Name : folderFullPath
     * @param map
     * @return
     * @throws Exception String
     */
    public String folderFullPath(HashMap<String, Object> map) throws Exception;

    /**
     * 
     * <pre>
     * 1.  :  ? ? 
     * 2.  : 
     * </pre>
     * @Method Name : setPageList
     * @param map
     * @return
     * @throws Exception List<PageVO>
     */
    public List<PageVO> setPageList(HashMap<String, Object> map) throws Exception;

    /**
     * 
     * <pre>
     * 1.  :  ? ?  Appliance
     * 2.  : 
     * </pre>
     * @Method Name : setPageLocalList
     * @param map
     * @return
     * @throws Exception
     */
    public List<PageVO> setPageLocalList(HashMap<String, Object> map) throws Exception;

    /**
     * 
     * <pre>
     * 1.  : ? ? 
     * 2.  : 
     * </pre>
     * @Method Name : pageHtWrite
     * @param pageList
     * @param sessionVO
     * @throws Exception void
     */
    public void pageHtWrite(List<PageVO> pageList, SessionVO sessionVO) throws Exception;

    /**
     * 
     * <pre>
     * 1.  : ?   ?   
     * 2.  : 
     * </pre>
     * @Method Name : setPageToModel
     * @param map
     * @param menuInfo
     * @param partInfo
     * @param sessionVO
     * @throws Exception void
     */
    public void setPageToModel(HashMap<String, Object> map, Map<String, Object> menuInfo,
            Map<String, Object> partInfo, SessionVO sessionVO) throws Exception;

    /**
     * 
     * <pre>
     * 1.  : URL  ?  
     * 2.  : 
     * </pre>
     * @Method Name : urlPageInfo
     * @param map
     * @return
     * @throws Exception PageVO
     */
    public PageVO urlPageInfo(HashMap<String, Object> map) throws Exception;

    /**
     * 
     * <pre>
     * 1.  :  ?(,,??)?  ? 
     * 2.  : 
     * </pre>
     * @Method Name : deleteRecently
     * @param map
     * @return
     * @throws Exception Map<String,Object>
     */
    public Map<String, Object> deleteRecently(HashMap<String, Object> map) throws Exception;

    /**
     * 
     * <pre>
     * 1.  : ?  
     * 2.  : ,  ?   exRep ECM? ?? ?? XR_DELETEFILE_QUEUE?  
     *              ??  .
     * </pre>
     * @Method Name : insertDeleteFileQueue
     * @param map
     * @return int
     * @throws Exception
     */
    public int insertDeleteFileQueue(HashMap<String, Object> map) throws Exception;

    /**
     * 
     * <pre>
     * 1.  : ?  ? ? ? 
     * 2.  : ??, ?, ? ? , ? ? ? 
     * </pre>
     * @Method Name : configFileInfo
     * @param map
     * @return
     * @throws Exception Map<String,Object>
     */
    public Map<String, Object> configFileInfo(HashMap<String, Object> map) throws Exception;

    /**
     * 
     * <pre>
     * 1.  :  ? ? ? ?
     * 2.  : , ??, ?  ?  ? 
     * </pre>
     * @Method Name : insertRecentlyObject
     * @param recentlyVo
     * @return
     * @throws Exception int
     */
    public int insertRecentlyObject(RecentlyObjectVO recentlyVo) throws Exception;

    /**
     * 
     * <pre>
     * 1.  : 
     * 2.  : 
     * </pre>
     * @Method Name : configVersionInfo
     * @param map
     * @return
     * @throws Exception Map<String,Object>
     */
    public Map<String, Object> configVersionInfo() throws Exception;

    //-----------------------------------------------------------------------------------
    // [1003] 20160115    url ? 
    //-----------------------------------------------------------------------------------
    public PageVO pagePageInfo(HashMap<String, Object> map) throws Exception;

}