Package com.google.code.lightssh.common.dao

Examples of com.google.code.lightssh.common.dao.SearchCondition


public class RoleChangeDaoJpa extends JpaDao<RoleChange> implements RoleChangeDao{

  private static final long serialVersionUID = -362943160764362565L;
 
  public ListPage<RoleChange> list(ListPage<RoleChange> page,RoleChange t ){
    SearchCondition sc = new SearchCondition();
    if( t!= null ){
     
    }
    return list(page,sc);
  }
View Full Code Here


 
  public ListPage<LoginFailure> list(ListPage<LoginFailure> page,LoginFailure t ) {
    if( page == null )
      page = new ListPage<LoginFailure>( );
   
    SearchCondition sc = new SearchCondition();
    if( t != null ){
      if( !StringUtils.isEmpty(t.getSessionId()) ){
        sc.equal("sessionId",t.getSessionId().trim());
      }
    }
   
    return dao.list(page,sc);
  }
View Full Code Here

    roleChangeManager.updateStatus(rc.getId()
        ,EntityChange.Status.NEW,EntityChange.Status.FINISHED);
  }
 
  public ListPage<RoleAudit> list(ListPage<RoleAudit> page,RoleAudit ra){
    SearchCondition sc = new SearchCondition();
    if( ra != null ){
      if( ra.getRoleChange() != null ){
        RoleChange rc = ra.getRoleChange();
        if( rc.getRole() != null ){
          if( !StringUtils.isEmpty(rc.getRole().getName()) ){
            sc.like("roleChange.role.name", rc.getRole().getName().trim());
          }
        }
      }
    }
   
View Full Code Here

    if( StringUtils.isEmpty(catalogId) ||
        type == null || StringUtils.isEmpty(subValue) )
      return null;
   
    ListPage<Subscription> page = new ListPage<Subscription>(1);
    SearchCondition sc = new SearchCondition();
    sc.equal("catalog.id", catalogId )
      .equal("recType", type )
      .equal("recValue", subValue );
   
    page = dao.list(page, sc);
   
View Full Code Here

   
    return rc;
  }
 
  public ListPage<RoleChange> listTodoAudit(ListPage<RoleChange> page,RoleChange t ){
    SearchCondition sc = new SearchCondition();
    if( t != null ){
      if( t.getRole() != null ){
        if( !StringUtils.isEmpty(t.getRole().getId()) ){
          sc.equal("role.id",t.getRole().getId().trim());
        }
        if( !StringUtils.isEmpty(t.getRole().getName()) ){
          sc.like("role.name",t.getRole().getName().trim());
        }
      }
    }
    sc.in("status",RoleChange.Status.NEW.name(),RoleChange.Status.PROCESSING.name());
    //sc.equal("status",RoleChange.Status.NEW);
   
    return getDao().list(page,sc);
  }
View Full Code Here

  public List<RoleChange> list(Role role ){
    if( role == null || StringUtils.isEmpty(role.getId() ))
      return null;
   
    ListPage<RoleChange> page = new ListPage<RoleChange>();
    SearchCondition sc = new SearchCondition();
    if( !StringUtils.isEmpty(role.getId()) ){
      sc.like("role.id",role.getId().trim());
    }
   
    return getDao().list(page,sc).getList();
  }
View Full Code Here

   
    return ec;
  }
 
  public ListPage<LoginAccountChange> listTodoAudit(ListPage<LoginAccountChange> page,LoginAccountChange t ){
    SearchCondition sc = new SearchCondition();
    if( t != null ){
      if( t.getLoginAccount() != null ){
        if( !StringUtils.isEmpty(t.getLoginAccount().getLoginName()) ){
          sc.like("loginAccount.loginName",t.getLoginAccount().getLoginName().trim());
        }
      }
    }
    sc.in("status",RoleChange.Status.NEW.name(),RoleChange.Status.PROCESSING.name());
    //sc.equal("status",RoleChange.Status.NEW);
   
    return getDao().list(page,sc);
  }
View Full Code Here

  public TaskLogDao getDao(){
    return (TaskLogDao)this.dao;
  }
 
  public ListPage<TaskLog> list(ListPage<TaskLog> page,TaskLog t){
    SearchCondition sc = new SearchCondition();
   
    if( t != null ){
      if( StringUtils.isNotEmpty(t.getActProcInstId()) ){
        sc.equal("actProcInstId", t.getActProcInstId().trim() );
      }
    }
   
    return dao.list(page, sc);
  }
View Full Code Here

TOP

Related Classes of com.google.code.lightssh.common.dao.SearchCondition

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.