Package org.pentaho.metadata.repository

Examples of org.pentaho.metadata.repository.DomainAlreadyExistsException


  @Override
  public void storeDomain( Domain domain, boolean overwrite ) throws DomainIdNullException,
    DomainAlreadyExistsException, DomainStorageException {
    incrementInvocationCount( "storeDomain" ); //$NON-NLS-1$
    if ( !overwrite && domains.get( domain.getId() ) != null ) {
      throw new DomainAlreadyExistsException( "cannot overwrite existing domain without overwrite=true" ); //$NON-NLS-1$
    }
    domains.put( domain.getId(), domain );
  }
View Full Code Here


    final RepositoryFile domainFile = getMetadataRepositoryFile( domainId );
    if ( !overwrite && domainFile != null ) {
      final String errorString =
          messages.getErrorString( "PentahoMetadataDomainRepository.ERROR_0002_DOMAIN_ALREADY_EXISTS", domainId );
      logger.error( errorString );
      throw new DomainAlreadyExistsException( errorString );
    }

    // Check if this is valid xml
    InputStream inputStream2 = null;
    String xmi = null;
View Full Code Here

TOP

Related Classes of org.pentaho.metadata.repository.DomainAlreadyExistsException

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.