Examples of EntityNotFoundException


Examples of org.gatein.api.EntityNotFoundException

    @Override
    public boolean removeChild(String childName) {
        checkChildrenLoaded();

        if (!hasChild(childName)) {
            throw new EntityNotFoundException("Cannot remove child '" + childName + "' because it does not exist for parent node " + getNodePath());
        }

        return context.removeNode(childName);
    }
View Full Code Here

Examples of org.jboss.seam.framework.EntityNotFoundException

                WikiNodeDAO.instance().findWikiDocumentInArea(
                        helpAreaRoot.getAreaNumber(),
                        WikiUtil.convertToWikiName(documentName)
                );
        if (selectedHelpDoc == null)
            throw new EntityNotFoundException("Help document: "+documentName, WikiDocument.class);

        log.debug("Found help document: " + selectedHelpDoc);
    }
View Full Code Here

Examples of org.jboss.seam.framework.EntityNotFoundException

        if (getDirectoryId() == null)
            throw new InvalidWikiRequestException("Missing directoryId parameter");

        instance = wikiNodeDAO.findWikiDirectory(getDirectoryId());
        if (instance == null)
            throw new EntityNotFoundException(getDirectoryId(), WikiDirectory.class);

        afterNodeFound();
    }
View Full Code Here

Examples of org.qi4j.spi.entitystore.EntityNotFoundException

        throws EntityStoreException
    {
        String state = store.get( entityReference );
        if( state == null )
        {
            throw new EntityNotFoundException( entityReference );
        }

        return new StringReader( state );
    }
View Full Code Here

Examples of org.qi4j.spi.entitystore.EntityNotFoundException

                    super.close();
                    String old = store.put( ref, toString() );
                    if( old == null )
                    {
                        store.remove( ref );
                        throw new EntityNotFoundException( ref );
                    }
                }
            };
        }
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.