Package com.google.code.lightssh.common

Examples of com.google.code.lightssh.common.ApplicationException


  @Override
  public Collection<PartyContact> list(Party party,ContactMechanism contact) {
    //String hql = " FROM " + entityClass.getName()
    //  + " AS m WHERE m.contact.id = ? ";

    throw new ApplicationException("删除未实现");
  }
View Full Code Here


  public void remove( Party party ){
    //String hql = " DELETE m FROM " + entityClass.getName()
    //  + " AS m WHERE m.party = ? ";
   
    //getJpaTemplate().update(hql,party);
    throw new ApplicationException("DAO未实现");
  }
View Full Code Here

    Organization party = this.getOrganizationWithChildren( t );
    if( party == null )
      return;
   
    if( party.getChildren() != null && !party.getChildren().isEmpty() )
      throw new ApplicationException("组织机构("
          +party.getId()+")存在下级组织,不允许删除!");
   
    //dao.delete(party);
   
    if( access != null && isDoLog(party))
View Full Code Here

  }

  @Override
  public void save(Party party, Access access) {
    if( party == null )
      throw new ApplicationException("数据为空,不能进行保存!");
   
    Party original = null;
    boolean inserted = StringUtil.clean( party.getIdentity() ) == null;
   
    if( party instanceof Organization && !isUniqueName( party ) )
      throw new ApplicationException("名称["+party.getName()+"]已经存在!");
   
    if( party instanceof Person ){
      Person p =  ((Person) party);
      if( p.getCountry() != null
          && StringUtils.isEmpty(p.getCountry().getIdentity()))
View Full Code Here

          newToRole = newToRoles.get(0);
          for( PartyRole role:newToRoles )
            if( RoleType.PARENT_ORG.equals(role.getType()) )
              newToRole = role;
        }else{
          throw new ApplicationException("("+ party.getParent().getName()+")缺失["
              +RoleType.internalOrg()+"]中的一种角色!");
        }
        PartyRelationship pr = partyRelationshipManager.getRollupByFromParty( party );
        if( pr != null ){
          pr.setTo( newToRole );
View Full Code Here

      return createDBCP();
    }else if( JDBCPoolType.BONECP.equals(type) ){
      return createBoneCP();
    }
   
    throw new ApplicationException("数据库连接池["+type+"]未配置完成!");
  }
View Full Code Here

  protected BoneCPDataSource createBoneCP( ){
    BoneCPConfig config = new BoneCPConfig();
    try {
      Class.forName( this.getDriverClassName() );
    } catch (ClassNotFoundException e) {
      throw new ApplicationException(
          "初始化连接池[BoneCP]无法找到驱动["
          +getDriverClassName()+"]:",e);
    }
    config.setJdbcUrl( this.getUrl() );
    config.setUsername( this.getUsername() );
View Full Code Here

 
  @Override
  public void removeByFromRole( PartyRole partyRole ){
    //String hql = " DELETE FROM " + entityClass.getName()
    //  + " AS m WHERE m.from = ? ";
    throw new ApplicationException("DAO未实现!");
    //getJpaTemplate().delete(hql,partyRole);
  }
View Full Code Here

TOP

Related Classes of com.google.code.lightssh.common.ApplicationException

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.