Package org.apache.ivory.entity.store

Examples of org.apache.ivory.entity.store.EntityAlreadyExistsException


        Entity existingEntity = configStore.get(entityType, entity.getName());
        if (existingEntity != null) {
            if (EntityUtil.equals(existingEntity, entity))
                return existingEntity;

            throw new EntityAlreadyExistsException(entity.toShortString() + " already registered with configuration store. "
                    + "Can't be submitted again. Try removing before submitting.");
        }

        validate(entity);
        configStore.publish(entityType, entity);
View Full Code Here

TOP

Related Classes of org.apache.ivory.entity.store.EntityAlreadyExistsException

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.