Package com.atlassian.labs.speakeasy.manager

Examples of com.atlassian.labs.speakeasy.manager.PluginOperationFailedException


                return ZipWriter.addDirectoryContentsToJar(repo.getWorkTree(), ".git");
            }
        });
        if (jar == null)
        {
            throw new PluginOperationFailedException("Invalid plugin key: " + pluginKey, pluginKey);
        }
        return jar;
    }
View Full Code Here


        {
            return new JarPluginArtifact(addFilesToExistingZip(artifact.toFile(), additions));
        }
        catch (IOException e)
        {
            throw new PluginOperationFailedException("Unable to transform zip", e, descriptor.getKey());
        }
    }
View Full Code Here

                items.add(element);
            }
        }
        catch (IOException e)
        {
            throw new PluginOperationFailedException("Unable to read ui/web-items.json", e, null);
        }
        catch (JSONException e)
        {
            throw new PluginOperationFailedException("Unable to parse ui/web-items.json: " + e.getMessage(), e, null);
        }
        finally
        {
            IOUtils.closeQuietly(in);
        }
View Full Code Here

            File file = speakeasyService.getPluginArtifact(pluginKeyAndExtension.substring(0, pos), user);
            return Response.ok().entity(file).build();
        }
        else
        {
            throw new PluginOperationFailedException("Missing extension on '" + pluginKeyAndExtension, null);
        }
    }
View Full Code Here

            obj.put("error", e.toString());
            obj.put("plugins", new JSONObject(jaxbJsonMarshaller.marshal(speakeasyService.getRemotePluginList(user))));
        }
        catch (JSONException e1)
        {
            throw new PluginOperationFailedException("Unable to serialize error", e1, null);
        }
        catch (UnauthorizedAccessException e1)
        {
            throw new PluginOperationFailedException("Unauthorized access", e1, null);
        }
        return obj.toString();
    }
View Full Code Here

            }
            return mf;
        }
        catch (IOException e)
        {
            throw new PluginOperationFailedException("Unable to parse " + JsonManifest.ATLASSIAN_EXTENSION_PATH, e, null);
        }
    }
View Full Code Here

            mf.setKey(key);
            return mf;
        }
        catch (IOException e)
        {
            throw new PluginOperationFailedException("Unable to parse " + JsonManifest.ATLASSIAN_EXTENSION_PATH, e, null);
        }
    }
View Full Code Here

            mf.setKey(plugin.getKey());
            return mf;
        }
        catch (IOException e)
        {
            throw new PluginOperationFailedException("Unable to parse " + JsonManifest.ATLASSIAN_EXTENSION_PATH, e, null);
        }
    }
View Full Code Here

TOP

Related Classes of com.atlassian.labs.speakeasy.manager.PluginOperationFailedException

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.