Package org.rhq.core.domain.bundle

Examples of org.rhq.core.domain.bundle.BundleNotFoundException


            return createBundleVersionViaFileImpl(subject, distributionFile, false, null);

        } catch (PermissionException e) {
            if (null != e.getCause() && e.getCause() instanceof BundleNotFoundException) {
                // This application exception indicates the special token handling workflow
                throw new BundleNotFoundException("[" + distributionFile.getName() + "]");
            } else {
                throw e;
            }
        }
    }
View Full Code Here


        } catch (PermissionException e) {
            if (null != e.getCause() && e.getCause() instanceof BundleNotFoundException) {
                deleteFile = false;
                // This application exception indicates the special token handling workflow
                throw new BundleNotFoundException("[" + distributionFileUrl + "]");
            } else {
                throw e;
            }
        } finally {
            if (deleteFile && file != null) {
View Full Code Here

        }

        if (null == bundleGroupIds || bundleGroupIds.length == 0) {
            String msg = "Subject [" + subject.getName()
                + "] requires Global CREATE_BUNDLES and VIEW_BUNDLES to create unassigned initial bundle version.";
            throw new PermissionException(msg, new BundleNotFoundException()); // set the cause to BNFE, this is helpful to some callers
        }

        for (int bundleGroupId : bundleGroupIds) {
            boolean authzPassed;
            if (hasGlobalCreateBundles) {
View Full Code Here

        Bundle bundle = null;

        if (0 != bundleId) {
            bundle = entityManager.find(Bundle.class, bundleId);
            if (null == bundle) {
                throw new BundleNotFoundException("Bundle ID [" + bundleId + "]");
            }
        }

        BundleGroupAssignmentComposite result = new BundleGroupAssignmentComposite(assigningSubject, bundle);
        Set<Permission> globalPermissions = authorizationManager.getExplicitGlobalPermissions(assigningSubject);
View Full Code Here

    }

    private void processUpload() {
        if (Boolean.TRUE.equals(uploadDistroForm.getUploadResult())) {
            if (null != uploadDistroForm.getCreateInitialBundleVersionToken()) {
                handleBundleNotFoundException(new BundleNotFoundException(
                    uploadDistroForm.getCreateInitialBundleVersionToken()));

            } else {
                int bvId = uploadDistroForm.getBundleVersionId();
                BundleVersionCriteria criteria = new BundleVersionCriteria();
View Full Code Here

TOP

Related Classes of org.rhq.core.domain.bundle.BundleNotFoundException

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.