cn.ennwifi.webframe.ui.client.rpc.IWebFrameService Maven / Gradle / Ivy
package cn.ennwifi.webframe.ui.client.rpc;
import cn.ennwifi.webframe.ui.server.servlet.WebFrameServlet;
import cn.ennwifi.webframe.ui.shared.module.*;
import cn.ennwifi.webframe.ui.shared.repository.*;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import java.util.List;
/**
* The Interface IWebFrameService.
*/
@RemoteServiceRelativePath(WebFrameServlet.DEFAULt_WEB_FRAME_SERVER_PATH)
public interface IWebFrameService extends RemoteService {
AdminLoginResponse adminLogin(Integer resourceRootId, String username, String pwd, String type) throws ServerException;
List getAllMenu() throws ServerException;
S_RESOURCEObj saveMenu(S_RESOURCEObj resource) throws ServerException;
void deleteResource(Long resourceId) throws ServerException;
List getAllRole() throws ServerException;
S_ROLEObj saveAdminRole(S_ROLEObj role) throws ServerException;
boolean deleteAdminRole(Long roleid) throws ServerException;
Boolean updateAdminRoleMenu(Long roleid, Long resourceId, boolean addOrRemove)
throws ServerException;
S_USERObj saveAdminUser(S_USERObj user) throws ServerException;
boolean updateAdminUserRole(Long userid, Long roleid, Boolean addOrRemove) throws ServerException;
List getAdminUserRole(Long userid) throws ServerException;
PagerData adminUserMainMenu() throws ServerException;
List adminSubMenu(int menuId) throws ServerException;
AdminLoginResponse getUserByToken(Integer resourceRootId, String token) throws ServerException;
PagerData findUserByQuery(String query, PagerData pager)
throws ServerException;
PagerData searchUserList(SearchReq req) throws ServerException;
List adminAllMenu(int rootMenuId) throws ServerException;
List getRoleResource(Long roleId);
boolean updateRoleResource(Long id, List ids);
Boolean isUserOwnResource(Long resid) throws ServerException;
List isUserOwnResource(List request, Integer rootid) throws ServerException;
List userResources(Integer rootid) throws ServerException;
List fetchMetaData() throws ServerException;
S_METAObj saveOrUpdateMetaData(S_METAObj meta) throws ServerException;
List getMetaData(String catalog, Boolean includeSub) throws ServerException;
Boolean deleteMetaData(Integer metaId) throws ServerException;
S_RESOURCEObj getMenuInfo(Integer id) throws ServerException;
List dashboardIndex() throws ServerException;
}