OrganizationManager.java 2.27 KB
/*
 * @(#)OrganizationManager.java
 *
 * Copyright (c) 2014-2017  xiniunet 版权所有
 * xiniunet. All rights reserved.
 *
 * This software is the confidential and proprietary
 * information of  xiniunet.
 * ("Confidential Information"). You shall not disclose
 * such Confidential Information and shall use it only
 * in accordance with the terms of the contract agreement
 * you entered into with xiniunet.
 */
package com.xiniunet.service.railway.biz;

import com.xiniunet.framework.security.Passport;
import com.xiniunet.railway.request.*;
import com.xiniunet.railway.response.*;

/**
 * 组织部门的管理方法.
 *
 * @author xiniunet
 */
public interface OrganizationManager {
    /**
     * 根据Id获取组织部门
     *
     * @param request  获取组织部门请求
     * @param passport 用户护照
     * @return 获取组织部门应答
     */
    OrganizationGetResponse get(OrganizationGetRequest request, Passport passport);

    /**
     * 模糊查询组织部门
     *
     * @param request  模糊查询组织部门请求
     * @param passport 用户护照
     * @return 模糊查询组织部门应答
     */
    OrganizationSearchResponse search(OrganizationSearchRequest request, Passport passport);

    /**
     * 高级查询组织部门
     *
     * @param request  高级查询组织部门请求
     * @param passport 用户护照
     * @return 高级查询组织部门应答
     */
    OrganizationFindResponse find(OrganizationFindRequest request, Passport passport);

    /**
     * 创建组织部门
     *
     * @param request  创建组织部门请求
     * @param passport 用户护照
     * @return 创建组织部门应答
     */
    OrganizationCreateResponse create(OrganizationCreateRequest request, Passport passport);

    /**
     * 更新组织部门
     *
     * @param request  更新组织部门请求
     * @param passport 用户护照
     * @return 更新组织部门应答
     */
    OrganizationUpdateResponse update(OrganizationUpdateRequest request, Passport passport);

    /**
     * 删除组织部门
     *
     * @param request  删除组织部门请求
     * @param passport 用户护照
     * @return 删除组织部门应答
     */
    OrganizationDeleteResponse delete(OrganizationDeleteRequest request, Passport passport);


}