Package org.rhq.core.domain.auth

Examples of org.rhq.core.domain.auth.Subject


    }

    @Override
    public BundleGroupAssignmentComposite getAssignableBundleGroups(int bundleId) throws RuntimeException {
        try {
            Subject subject = getSessionSubject();
            BundleGroupAssignmentComposite results = bundleManager
                .getAssignableBundleGroups(subject, subject, bundleId);
            return SerialUtility.prepare(results, "getAssignableBundleGroups");
        } catch (Throwable t) {
            throw getExceptionToThrowToClient(t);
View Full Code Here


    @Test(enabled = ENABLE_TESTS)
    public void testInProgressConfiguration() throws Exception {
        int resourceId = newResource1.getId();

        Subject overlord = LookupUtil.getSubjectManager().getOverlord();

        // create 3 configs: config1 will be stored as current. config2 will be in progress, config3 should get
        // blocked from updating by the inprogress update
        Configuration configuration1 = new Configuration();
        configuration1.put(new PropertySimple("myboolean", "true"));
View Full Code Here

    }

    @Override
    public void assignBundlesToBundleGroups(int[] bundleGroupIds, int[] bundleIds) throws RuntimeException {
        try {
            Subject subject = getSessionSubject();
            bundleManager.assignBundlesToBundleGroups(subject, bundleGroupIds, bundleIds);
        } catch (Throwable t) {
            throw getExceptionToThrowToClient(t);
        }
    }
View Full Code Here

    @Test(enabled = ENABLE_TESTS)
    public void testInvalidPluginConfigurationUpdate() throws Exception {
        Resource resource = newResource1;

        Subject overlord = LookupUtil.getSubjectManager().getOverlord();

        Configuration configuration1 = new Configuration();
        configuration1.put(new PropertySimple("fakeReadOnly", "1"));

        Configuration configuration2 = new Configuration();
View Full Code Here

    }

    @Override
    public void unassignBundlesFromBundleGroups(int[] bundleGroupIds, int[] bundleIds) throws RuntimeException {
        try {
            Subject subject = getSessionSubject();
            bundleManager.unassignBundlesFromBundleGroups(subject, bundleGroupIds, bundleIds);
        } catch (Throwable t) {
            throw getExceptionToThrowToClient(t);
        }
    }
View Full Code Here

    }

    @Override
    public List<BundleResourceDeploymentHistory> getBundleResourceDeploymentHistories(int resourceDeploymentId) {
        try {
            Subject subject = getSessionSubject();
            List<BundleResourceDeploymentHistory> results = bundleManager.getBundleResourceDeploymentHistories(subject,
                    resourceDeploymentId);
            return SerialUtility.prepare(results, "getBundleResourceDeploymentHistories");
        } catch (Throwable t) {
            throw getExceptionToThrowToClient(t);
View Full Code Here

    @Test(enabled = ENABLE_TESTS)
    public void testInvalidResourceConfigurationUpdate() throws Exception {
        Resource resource = newResource1;

        Subject overlord = LookupUtil.getSubjectManager().getOverlord();

        Configuration configuration1 = new Configuration();
        configuration1.put(new PropertySimple("fakeReadOnly", "1"));
        configuration1.put(new PropertySimple("myboolean", "false"));
View Full Code Here

    @Test(enabled = ENABLE_TESTS)
    public void testPluginConfigurationUpdateCallbackSuccess() throws Exception {
        Resource resource = newResource1;

        Subject overlord = LookupUtil.getSubjectManager().getOverlord();

        Configuration configuration1 = new Configuration();
        configuration1.put(new PropertySimple("foo", "1"));

        Configuration configuration2 = new Configuration();
View Full Code Here

    @Test(enabled = ENABLE_TESTS)
    public void testPluginConfigurationUpdateCallbackFailure() throws Exception {
        Resource resource = newResource1;

        Subject overlord = LookupUtil.getSubjectManager().getOverlord();

        Configuration configuration1 = new Configuration();
        configuration1.put(new PropertySimple("foo", "1"));
        configuration1.put(new PropertySimple("fail", "true"));
View Full Code Here

        Resource resource1 = newResource1;
        Resource resource2 = newResource2;

        try {
            Subject overlord = LookupUtil.getSubjectManager().getOverlord();

            Configuration configuration1 = new Configuration();
            configuration1.put(new PropertySimple("foo", "1"));
            configuration1.put(new PropertySimple("fail", "false"));
View Full Code Here

TOP

Related Classes of org.rhq.core.domain.auth.Subject

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.