Examples of EntityContext


Examples of org.apache.openejb.core.entity.EntityContext

        synchronized (this) {
            Object deploymentId = beanContext.getDeploymentID();

            cmpEngine.deploy(beanContext);
            beanContext.setContainerData(cmpEngine);
            beanContext.set(EJBContext.class, new EntityContext(securityService));
            // try to set deploymentInfo static field on bean implementation class
            try {
                Field field = beanContext.getCmpImplClass().getField("deploymentInfo");
                field.set(null, beanContext);
            } catch (Exception e) {
View Full Code Here

Examples of org.apache.openejb.core.entity.EntityContext

        ThreadContext callContext = new ThreadContext(beanContext, null);
        callContext.setCurrentOperation(Operation.SET_CONTEXT);

        ThreadContext oldCallContext = ThreadContext.enter(callContext);
        try {
            entityBean.setEntityContext(new EntityContext(securityService));
        } catch (RemoteException e) {
            throw new EJBException(e);
        } finally {
            ThreadContext.exit(oldCallContext);
        }
View Full Code Here

Examples of org.apache.openejb.core.entity.EntityContext

        synchronized (this) {
            Object deploymentId = beanContext.getDeploymentID();

            cmpEngine.deploy(beanContext);
            beanContext.setContainerData(cmpEngine);
            beanContext.set(EJBContext.class, new EntityContext(securityService));
            // try to set deploymentInfo static field on bean implementation class
            try {
                Field field = beanContext.getCmpImplClass().getField("deploymentInfo");
                field.set(null, beanContext);
            } catch (Exception e) {
View Full Code Here

Examples of org.apache.openejb.core.entity.EntityContext

        ThreadContext callContext = new ThreadContext(beanContext, null);
        callContext.setCurrentOperation(Operation.SET_CONTEXT);

        ThreadContext oldCallContext = ThreadContext.enter(callContext);
        try {
            entityBean.setEntityContext(new EntityContext(securityService));
        } catch (RemoteException e) {
            throw new EJBException(e);
        } finally {
            ThreadContext.exit(oldCallContext);
        }
View Full Code Here

Examples of org.jboss.mbui.client.aui.mapping.EntityContext

    public InteractionUnit(final String id, final String name)
    {
        assert id != null : "Id must not be null";
        this.id = id;
        this.name = name;
        this.entityContext = new EntityContext(id + ENTITY_CONTEXT_SUFFIX);
        this.children = new LinkedList<InteractionUnit>();
        this.role = InteractionRole.Overview;
    }
View Full Code Here

Examples of org.rhq.core.domain.common.EntityContext

    public void setMetricToken(String metricToken) {
        this.metricToken = metricToken;
    }

    public EntityContext getContext() {
        return new EntityContext(resourceId, groupId, parentId, childTypeId);
    }
View Full Code Here

Examples of org.rhq.core.domain.common.EntityContext

        }
        initialCriteria.addCriteria(AlertDataSource.FILTER_PRIORITIES, priorityNames);
        initialCriteria.setAttribute("resourceIds", resourceIds);
        setInitialCriteria(initialCriteria);

        this.context = new EntityContext();
        this.context.type = EntityContext.Type.SubsystemView;
        this.hasWriteAccess = true;

        setDataSource(new AlertDataSource(context));
    }
View Full Code Here

Examples of org.rhq.core.domain.common.EntityContext

* @author Jay Shaughnessy
*/
public class ResourceDriftHistoryView extends DriftHistoryView {
    public static ResourceDriftHistoryView get(ResourceComposite composite) {
        String tableTitle = MSG.view_drift_table_resourceHistory();
        EntityContext context = EntityContext.forResource(composite.getResource().getId());
        boolean hasWriteAccess = composite.getResourcePermission().isDrift();
        return new ResourceDriftHistoryView(tableTitle, context, hasWriteAccess);
    }
View Full Code Here

Examples of org.rhq.core.domain.common.EntityContext

    private ArrayList<DriftSelectionListener> driftSelectionListeners = new ArrayList<DriftSelectionListener>();

    public static DriftCarouselMemberView get(ResourceComposite composite, DriftChangeSet driftChangeSet,
        Criteria initialCriteria) {

        EntityContext context = EntityContext.forResource(composite.getResource().getId());
        boolean hasWriteAccess = composite.getResourcePermission().isDrift();
        return new DriftCarouselMemberView(context, driftChangeSet, hasWriteAccess, initialCriteria);
    }
View Full Code Here

Examples of org.rhq.core.domain.common.EntityContext

* @author Joseph Marques
*/
public class GroupAlertHistoryView extends AlertHistoryView {
    public static GroupAlertHistoryView get(ResourceGroupComposite composite) {
        String tableTitle = MSG.view_alerts_table_title_group();
        EntityContext context = EntityContext.forGroup(composite.getResourceGroup().getId());
        boolean hasWriteAccess = composite.getResourcePermission().isAlert();
        return new GroupAlertHistoryView(tableTitle, context, hasWriteAccess);
    }
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.