Package com.narirelays.ems.applogic

Examples of com.narirelays.ems.applogic.OperResult


  public static void cacheOLAP_TIME_TREE() {
    if (CacheProvider.cacheValid) {
      OLAPManagementService oLAPManagementService = (OLAPManagementService) StorageService.ctx
          .getBean("oLAPManagementService");
      if (oLAPManagementService != null) {
        OperResult resultInfo = oLAPManagementService.queryAllTime();
        if (resultInfo.isSUCCEED()) {

          CacheProvider.setObject(OLAP_TIME_TREE, resultInfo);
        }
      }
    }
View Full Code Here


  public static void OLAP_MEASURE_LIST() {
    if (CacheProvider.cacheValid) {
      OLAPManagementService oLAPManagementService = (OLAPManagementService) StorageService.ctx
      .getBean("oLAPManagementService");
      if (oLAPManagementService != null) {
        OperResult resultInfo = oLAPManagementService
            .queryAllMeasures();
        if (resultInfo.isSUCCEED()) {
          CacheProvider.setObject(OLAP_MEASURE_LIST, resultInfo);
        }
      }
    }
  }
View Full Code Here

//            },
//          ]
  public String getPortalConfig()
  {
    Map map = request.getParameterMap();
    resultInfo = new OperResult();
    resultInfo.setSucceed();
   
    int rowCount = 3;
    List<List<LazyDynaBean>> pageConfig = new ArrayList<List<LazyDynaBean>>();
    for(int i=0;i<rowCount;i++){
View Full Code Here

import com.narirelays.ems.struts2.MyBaseAction;

public class LoginLogoutManagement extends MyBaseAction{

  public String login(){
    resultInfo = new OperResult();
   
    return SUCCESS;
  }
View Full Code Here

  private static final long serialVersionUID = 1L;

 
  public String initCache() throws Exception {
   
    resultInfo = new OperResult();
    if(CacheProvider.init(WebVariable.memcachedHosts)){
      resultInfo.setSucceed(MEMCACHED_INIT_SUCCESS);
    }else{
      resultInfo.setSucceed(MEMCACHED_INIT_ERROR);
    }
View Full Code Here

    return SUCCESS;
  }
 
  public String changeLang()
  {
    resultInfo = new OperResult();
    resultInfo.setSucceed();
    return SUCCESS;
  }
View Full Code Here

   * CustomJdbcDaoImpl在AOP中以通过SecurityPC这个断面进行了事务管理,无需通过这里的Service进行管理
   * 该接口应该提供给普通用户,放在这里是否合适?
   * */
  public String changePassByUser()//用户修改自身的密码,需要输入旧密码
  {
    resultInfo = new OperResult();
    Authentication authentication = SecurityContextHolder.getContext().getAuthentication();
    String name = authentication.getName();
    IChangePassword iChangePassword = (IChangePassword)StorageService.ctx.getBean("jdbcUserService");//只能强制转为此接口,不知为何
//    CustomJdbcDaoImpl customJdbcDaoImpl = (CustomJdbcDaoImpl)StorageService.ctx.getBean("jdbcUserService");//cast exception??
    if(iChangePassword!=null)
View Full Code Here

   * changePassword中会调loadUserByUsername去获得UserDetails
   * 但如果用户没有加任何权限,该接口会报异常
   * */
  public String changePassByAdmin()//管理员修改用户密码,无需用户旧密码,需用户id;
  {
    resultInfo = new OperResult();
    IChangePassword iChangePassword = (IChangePassword)StorageService.ctx.getBean("jdbcUserService");
    PrivilegeManagementService privilegeManagementService = (PrivilegeManagementService)StorageService.ctx.getBean("privilegeManagementService");
    if(iChangePassword!=null)
    {
      String userID = request.getParameter("id");
View Full Code Here

   */
  private static final long serialVersionUID = 1L;

 
  public String setInterceptUrl(){
    resultInfo = new OperResult();
    resultInfo.setSucceed();
    String interceptUrl = "/upload.jsp,hasRole('ROLE_USER')";
    CustomExpressionBasedFilterInvocationSecurityMetadataSource metaSource = (CustomExpressionBasedFilterInvocationSecurityMetadataSource)StorageService.ctx.getBean("securityMetadataSource");
    if(metaSource!=null){
      try{
View Full Code Here

    return SUCCESS;
  }
 
 
  public String printInterceptUrl(){
    resultInfo = new OperResult();
    resultInfo.setSucceed();
    FilterSecurityInterceptor filterSecurityInterceptor = (FilterSecurityInterceptor)StorageService.ctx.getBean("filterSecurityInterceptor");
    FilterInvocationSecurityMetadataSource fisms = filterSecurityInterceptor.getSecurityMetadataSource();
    if(fisms instanceof ExpressionBasedFilterInvocationSecurityMetadataSource){
      ExpressionBasedFilterInvocationSecurityMetadataSource ebfisms = (ExpressionBasedFilterInvocationSecurityMetadataSource)fisms;
View Full Code Here

TOP

Related Classes of com.narirelays.ems.applogic.OperResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.