/** * @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); }