/** * @see org.carewebframework.api.context.IManagedContext#getContextItems(boolean) */ @Override public ContextItems getContextItems(boolean pending) { contextItems.clear(); DomainClass domainObject = getContextObject(pending); return domainObject == null ? contextItems : toCCOWContext(domainObject); }
/** * @see org.carewebframework.api.context.IManagedContext#getContextItems(boolean) */ @Override public ContextItems getContextItems(boolean pending) { contextItems.clear(); DomainClass domainObject = getContextObject(pending); return domainObject == null ? contextItems : toCCOWContext(domainObject); }
eventManager.fireLocalEvent("CONTEXT.CHANGED." + getContextName(), getContextObject(false));
eventManager.fireLocalEvent(getEventName(), getContextObject(false));
/** * @see org.carewebframework.api.context.ISharedContext#requestContextChange(Object) */ @Override public void requestContextChange(DomainClass newContextObject) throws ContextException { if (isSameContext(newContextObject, getContextObject(false))) { return; } if (isPending) { throw new ContextException("A context change is already pending."); } contextManager.localChangeBegin(this); domainObject[CONTEXT_PENDING] = newContextObject; isPending = true; contextManager.localChangeEnd(this, null); }
/** * @see org.carewebframework.api.context.ISharedContext#requestContextChange(Object) */ @Override public void requestContextChange(DomainClass newContextObject) throws ContextException { if (isSameContext(newContextObject, getContextObject(false))) { return; } if (isPending) { throw new ContextException("A context change is already pending."); } contextManager.localChangeBegin(this); domainObject[CONTEXT_PENDING] = newContextObject; isPending = true; contextManager.localChangeEnd(this); }