Package com.google.code.lightssh.project.log.entity

Examples of com.google.code.lightssh.project.log.entity.Access


  /**
   * 初始化日志
   * 如果无法获取到Rquest及Session不作日志记录
   */
  protected Access initLog(){
    Access access = null;
    HttpServletRequest request = ServletActionContext.getRequest();
    if( request != null ){
      LoginAccount user = (LoginAccount)request.getSession()
      .getAttribute( SessionKey.LOGIN_ACCOUNT );
      access = new Access( );
      access.init(request);
      access.setOperator( user.getLoginName() );
    }
   
    return access;
  }
View Full Code Here


      this.addFieldError("party_role_type", "非法角色类型!");
      return INPUT;
    }
   
    boolean isInsert = party.isInsert();
        Access access = new Access(  );
        access.init(request);
        access.setDescription("编辑企业信息");
        //access.setOperator( SecurityUtil.getPrincipal() );
       
        try{
          partyManager.save(party,access, new RoleType[]{
              party_role_type,RoleType.PARENT_ORG});
View Full Code Here

 
  public String save( ){
    if( party == null )
      return INPUT;
   
        Access access = new Access(  );
        access.init(request);
        access.setDescription("操作组织机构");
        //access.setOperator( SecurityUtil.getPrincipal() );
       
        try{
          partyManager.save(party,access,party_role_type);
        }catch( Exception e ){ //other exception
View Full Code Here

     public String delete( ){
       if( party == null || StringUtils.isEmpty(party.getIdentity())){
             return INPUT;
         }
       
         Access access = new Access(  );
         access.init(request);
        
         try{
           this.getPartyManager().remove( party,access );
           saveSuccessMessage( "成功删除数据(id=" + party.getIdentity() + ")!" );
         }catch( Exception e ){ //other exception
View Full Code Here

             return INPUT;
         }
        
         boolean isInsert = StringUtil.clean( model.getIdentity())==null;
        
         Access access = new Access(  );
         access.init(request);
         //access.setOperator( SecurityUtil.getPrincipal() );
        
         try{
           getManager().save(party,access);
         }catch( Exception e ){ //other exception
View Full Code Here

      public String delete( ){
          if( party == null || StringUtil.clean(party.getIdentity()) == null ){
              return INPUT;
          }
        
          Access access = new Access(  );
          access.init(request);
         
          try{
            getManager().remove( party,access );
            saveSuccessMessage( "成功删除数据(id=" + party.getIdentity() + ")!" );
          }catch( Exception e ){ //other exception
View Full Code Here

  /**
   * 初始化日志
   * 如果无法获取到Rquest及Session不作日志记录
   */
  protected Access initLog(Loggable loggable){
    Access access = initLog();
    if( access != null )
      access.setDescription(loggable.logMessage());
   
    return access;
  }
View Full Code Here

    if( jp.getArgs() == null || jp.getArgs().length == 0
        || !(jp.getArgs()[0] instanceof Loggable) )
      return;
   
    try{
      Access access = initLog((Loggable)jp.getArgs()[0]);
      if( access == null )
        return;
     
      accessManager.writeSystemLog(access);//系统日志
     
View Full Code Here

TOP

Related Classes of com.google.code.lightssh.project.log.entity.Access

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.