Examples of AssetNotFoundException


Examples of com.baasbox.exception.AssetNotFoundException

    dao.delete(rid);
 
  public static void deleteByName(String name) throws Throwable {
    AssetDao dao = AssetDao.getInstance();
    ODocument asset=getByName(name);
    if (asset==null) throw new AssetNotFoundException();
    dao.delete(asset.getIdentity());
 
View Full Code Here

Examples of com.jme3.asset.AssetNotFoundException

        if(iconPath == null){
            iconPath = "";
        }
        final URL iconUrl = JmeSystem.class.getResource(iconPath.startsWith("/") ? iconPath : "/" + iconPath);
        if (iconUrl == null) {
            throw new AssetNotFoundException(sourceSettings.getSettingsDialogImage());
        }

        final AtomicBoolean done = new AtomicBoolean();
        final AtomicInteger result = new AtomicInteger();
        final Object lock = new Object();
View Full Code Here

Examples of org.broadleafcommerce.cms.common.AssetNotFoundException

    @Transactional("blTransactionManagerAssetStorageInfo")
    @Override
    public Map<String, String> getCacheFileModel(String fullUrl, Map<String, String> parameterMap) throws Exception {
        StaticAsset staticAsset = findStaticAsset(fullUrl);
        if (staticAsset == null) {
            throw new AssetNotFoundException("Unable to find an asset for the url (" + fullUrl + ")");
        }
        String mimeType = staticAsset.getMimeType();

        //extract the values for any named parameters
        Map<String, String> convertedParameters = namedOperationManager.manageNamedParameters(parameterMap);
View Full Code Here

Examples of org.jbpm.designer.repository.AssetNotFoundException

        Path path = descriptor.getFileSystem().provider().getPath(URI.create(descriptor.getStringRepositoryRoot() + location));

        if (ioService.exists(path)) {
            return loadAsset(path.toUri().toString());
        } else {
            throw new AssetNotFoundException();
        }

    }
View Full Code Here

Examples of org.jbpm.designer.repository.AssetNotFoundException

        Path filePath = getFileSystem(uniqueId).provider().getPath(URI.create(uniqueId));
        if(commitMessage == null) {
            commitMessage = "Updated asset ";
        }
        if (!ioService.exists(filePath)) {
            throw new AssetNotFoundException();
        }
        CommentedOption commentedOption = new CommentedOption(getIdentity(), commitMessage);
        if(((AbstractAsset)asset).acceptBytes()) {
            ioService.write(filePath, ((Asset<byte[]>)asset).getAssetContent(), StandardOpenOption.TRUNCATE_EXISTING, commentedOption);
        } else {
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.