Examples of MaxEntitiesExceededException


Examples of org.apache.juddi.v3.error.MaxEntitiesExceededException

        //if we have the maxBindings set for a service then we need to make sure we did not exceed it.
        if (maxBindings > 0) {
            //get the bindings owned by this service
            org.apache.juddi.model.BusinessService modelBusinessService = em.find(org.apache.juddi.model.BusinessService.class, serviceKey);
            if (modelBusinessService.getBindingTemplates() != null && modelBusinessService.getBindingTemplates().size() > maxBindings) {
                throw new MaxEntitiesExceededException(new ErrorMessage("errors.save.maxBindingsExceeded"));
            }
        }
    }
View Full Code Here

Examples of org.apache.juddi.v3.error.MaxEntitiesExceededException

        //if we have the TModels set for a publisher then we need to make sure we did not exceed it.
        if (maxTModels > 0) {
            //get the tmodels owned by this publisher
            List<?> tmodelKeysFound = FindTModelByPublisherQuery.select(em, null, publisher, null);
            if (tmodelKeysFound != null && tmodelKeysFound.size() > maxTModels) {
                throw new MaxEntitiesExceededException(new ErrorMessage("errors.save.maxTModelsExceeded"));
            }
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.