Example usage for org.hibernate.cfg NotYetImplementedException NotYetImplementedException

List of usage examples for org.hibernate.cfg NotYetImplementedException NotYetImplementedException

Introduction

In this page you can find the example usage for org.hibernate.cfg NotYetImplementedException NotYetImplementedException.

Prototype

public NotYetImplementedException() 

Source Link

Usage

From source file:org.balisunrise.daa.hibernate.HDaoManager.java

License:Open Source License

@Override
public DAO_ getDAO() {

    throw new NotYetImplementedException();
}

From source file:org.esupportail.publisher.web.PublishController.java

License:Apache License

@RequestMapping(value = "/contextOf/{organization_id}/{reader_id}/{redactor_id}", method = RequestMethod.GET, produces = {
        MediaType.APPLICATION_XML_VALUE })
@Timed/*from  w  w  w  . j  av  a2  s.  c om*/
public CategoryProfilesUrl getPublisherContextOf(@PathVariable("organization_id") String id,
        @PathVariable("reader_id") Long readerId, @PathVariable("redactor_id") Long redactorId,
        final HttpServletRequest request) {
    log.debug("Entering getPublisherContextOf with params : organization_id={}, reader_id={}, redactor_id={}",
            id, readerId, redactorId);
    BooleanBuilder builder = new BooleanBuilder(PublisherPredicates.AllOfUsedState(true))
            .and(PublisherPredicates.AllOfReader(readerId)).and(PublisherPredicates.AllOfRedactor(redactorId))
            .and(PublisherPredicates.AllOfOrganizationByIdentifier(id));
    final List<Publisher> publishers = Lists.newArrayList(publisherRepository.findAll(builder));
    CategoryProfilesUrl cpu = new CategoryProfilesUrl();
    if (!publishers.isEmpty()) {
        final Redactor redactor = publishers.get(0).getContext().getRedactor();
        final String base = urlHelper.getRootAppUrl(request);
        for (Publisher pub : publishers) {
            String urlCategory = null;
            String urlActualite = null;
            if (redactor.getNbLevelsOfClassification() == 1) {
                if (WritingMode.TARGETS_ON_ITEM.equals(redactor.getWritingMode())) {
                    urlActualite = base + "published/items/" + pub.getId();
                } else {
                    urlCategory = base + "published/categories/" + pub.getId();
                }
                cpu.getCategoryProfilesUrl()
                        .add(categoryProfileFactory.from(pub,
                                subscriberService.getDefaultsSubscribersOfContext(pub.getContextKey()),
                                urlActualite, urlCategory));
            } else {
                // we don't manager more than redactor.getNbLevelsOfClassification() > 2
                // systeme classic esup-lecture/esup-news
                if (WritingMode.TARGETS_ON_ITEM.equals(redactor.getWritingMode()))
                    throw new NotYetImplementedException();
                List<? extends AbstractClassification> cts = Lists.newArrayList(categoryRepository.findAll(
                        ClassificationPredicates.CategoryOfPublisher(pub.getId()), ClassificationPredicates
                                .categoryOrderByDisplayOrderType(pub.getDefaultDisplayOrder())));
                log.debug("list of categories associated to publisher : {}", cts);
                for (AbstractClassification classif : cts) {
                    final String urlFeeds = base + "published/feeds/" + classif.getId();
                    cpu.getCategoryProfilesUrl()
                            .add(categoryProfileFactory.from(pub, classif,
                                    subscriberService.getDefinedSubscribersOfContext(classif.getContextKey()),
                                    urlFeeds, true));
                }
            }
        }
    }
    return cpu;
}