|
|
@@ -25,57 +25,57 @@ import java.util.TimeZone;
|
|
|
import java.util.concurrent.CopyOnWriteArrayList;
|
|
|
|
|
|
public abstract class ClientDocument implements IReportAppService {
|
|
|
- private static final ILogger byteV = TraceManager.getLogger("com.crystaldecisions.sdk.occa.report.application.ReportClientDocument");
|
|
|
+ private static final ILogger iLogger = TraceManager.getLogger("com.crystaldecisions.sdk.occa.report.application.ReportClientDocument");
|
|
|
public static final String URIPROTOCAL_RAS = "ras://";
|
|
|
public static final String URIPROTOCAL_RASSDK = "rassdk://";
|
|
|
public static final String URIPROTOCAL_CEIS = "ceis://";
|
|
|
public static final String URIPROTOCAL_CECUID = "cecuid:///";
|
|
|
- private Locale f = Locale.getDefault();
|
|
|
- private TimeZone voidV = null;
|
|
|
- private ReportAppSession c = null;
|
|
|
- private RemoteAgent tryV = null;
|
|
|
+ private Locale locale = Locale.getDefault();
|
|
|
+ private TimeZone timeZone = null;
|
|
|
+ private ReportAppSession reportAppSession = null;
|
|
|
+ private RemoteAgent remoteAgent = null;
|
|
|
private boolean g = false;
|
|
|
- private IUndoUnit charV = null;
|
|
|
- private IUndoManager d = null;
|
|
|
- private List<IClientDocumentEventListener> longV = new CopyOnWriteArrayList();
|
|
|
- private List<IAdvancedClientDocumentEventListener> e = new CopyOnWriteArrayList();
|
|
|
- private ObjectState elseV = null;
|
|
|
- protected IEnterprisePlugin gotoV = null;
|
|
|
+ private IUndoUnit iUndoUnit = null;
|
|
|
+ private IUndoManager iUndoManager = null;
|
|
|
+ private List<IClientDocumentEventListener> iClientDocumentEventListeners = new CopyOnWriteArrayList();
|
|
|
+ private List<IAdvancedClientDocumentEventListener> iAdvancedClientDocumentEventListeners = new CopyOnWriteArrayList();
|
|
|
+ private ObjectState objectState = null;
|
|
|
+ protected IEnterprisePlugin iEnterprisePlugin = null;
|
|
|
protected boolean caseV = false;
|
|
|
|
|
|
public ClientDocument() {
|
|
|
- this.tryM();
|
|
|
+ this.bindListenersOnPropertyChangedEvent();
|
|
|
}
|
|
|
|
|
|
public ClientDocument(IEnterprisePlugin var1) {
|
|
|
- this.tryM();
|
|
|
- this.gotoV = var1;
|
|
|
+ this.bindListenersOnPropertyChangedEvent();
|
|
|
+ this.iEnterprisePlugin = var1;
|
|
|
}
|
|
|
|
|
|
- private void tryM() {
|
|
|
- this.elseV = new ObjectState(this.f, -2147215349, "Error_DocIsNotOpen", -2147215349, "Error_DocIsOpening", -2147215349, "Error_DocIsClosing", -2147215349, "Error_DocIsClosed", -2147215348, "Error_DocIsOpenedAlready");
|
|
|
+ private void bindListenersOnPropertyChangedEvent() {
|
|
|
+ this.objectState = new ObjectState(this.locale, -2147215349, "Error_DocIsNotOpen", -2147215349, "Error_DocIsOpening", -2147215349, "Error_DocIsClosing", -2147215349, "Error_DocIsClosed", -2147215348, "Error_DocIsOpenedAlready");
|
|
|
}
|
|
|
|
|
|
public void addClientDocumentEventListener(IClientDocumentEventListener var1) {
|
|
|
- this.longV.add(var1);
|
|
|
+ this.iClientDocumentEventListeners.add(var1);
|
|
|
}
|
|
|
|
|
|
public void addAdvancedClientDocumentEventListener(IAdvancedClientDocumentEventListener var1) {
|
|
|
- this.e.add(var1);
|
|
|
+ this.iAdvancedClientDocumentEventListeners.add(var1);
|
|
|
}
|
|
|
|
|
|
public void close() throws ReportSDKException {
|
|
|
- boolean var1 = this.forM(new ClientDocumentEvent(this, (String)null));
|
|
|
+ boolean var1 = this.initializeReportAppSession(new ClientDocumentEvent(this, (String)null));
|
|
|
if (!var1) {
|
|
|
- int var2 = this.elseV.getObjectState();
|
|
|
+ int var2 = this.objectState.getObjectState();
|
|
|
if (var2 != -1 && var2 != -4) {
|
|
|
- this.elseV.stopping();
|
|
|
- this.intM(new ClientDocumentEvent(this, (String)null));
|
|
|
+ this.objectState.stopping();
|
|
|
+ this.getRemoteAgent(new ClientDocumentEvent(this, (String)null));
|
|
|
this.caseM();
|
|
|
- this.c = null;
|
|
|
+ this.reportAppSession = null;
|
|
|
this.charM();
|
|
|
this.newM(new ClientDocumentEvent(this, (String)null));
|
|
|
- this.elseV.stopped();
|
|
|
+ this.objectState.stopped();
|
|
|
}
|
|
|
|
|
|
}
|
|
|
@@ -87,10 +87,10 @@ public abstract class ClientDocument implements IReportAppService {
|
|
|
|
|
|
abstract void newM() throws ReportSDKException;
|
|
|
|
|
|
- abstract void a(PropertyBag var1, int var2) throws ReportSDKException;
|
|
|
+ abstract void abcd(PropertyBag var1, int var2) throws ReportSDKException;
|
|
|
|
|
|
private void newM(ClientDocumentEvent var1) {
|
|
|
- Iterator var2 = this.longV.iterator();
|
|
|
+ Iterator var2 = this.iClientDocumentEventListeners.iterator();
|
|
|
|
|
|
while(var2.hasNext()) {
|
|
|
IClientDocumentEventListener var3 = (IClientDocumentEventListener)var2.next();
|
|
|
@@ -99,8 +99,8 @@ public abstract class ClientDocument implements IReportAppService {
|
|
|
|
|
|
}
|
|
|
|
|
|
- private void intM(ClientDocumentEvent var1) {
|
|
|
- Iterator var2 = this.longV.iterator();
|
|
|
+ private void getRemoteAgent(ClientDocumentEvent var1) {
|
|
|
+ Iterator var2 = this.iClientDocumentEventListeners.iterator();
|
|
|
|
|
|
while(var2.hasNext()) {
|
|
|
IClientDocumentEventListener var3 = (IClientDocumentEventListener)var2.next();
|
|
|
@@ -109,8 +109,8 @@ public abstract class ClientDocument implements IReportAppService {
|
|
|
|
|
|
}
|
|
|
|
|
|
- private boolean forM(ClientDocumentEvent var1) {
|
|
|
- Iterator var2 = this.longV.iterator();
|
|
|
+ private boolean initializeReportAppSession(ClientDocumentEvent var1) {
|
|
|
+ Iterator var2 = this.iClientDocumentEventListeners.iterator();
|
|
|
|
|
|
boolean var4;
|
|
|
do {
|
|
|
@@ -125,89 +125,89 @@ public abstract class ClientDocument implements IReportAppService {
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
- boolean a(ClientDocumentEvent var1) {
|
|
|
- Iterator var2 = this.longV.iterator();
|
|
|
+ boolean bindListenersOnPreSavingEvent(ClientDocumentEvent clientDocumentEvent) {
|
|
|
+ Iterator iterator = this.iClientDocumentEventListeners.iterator();
|
|
|
|
|
|
boolean var4;
|
|
|
do {
|
|
|
- if (!var2.hasNext()) {
|
|
|
+ if (!iterator.hasNext()) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
- IClientDocumentEventListener var3 = (IClientDocumentEventListener)var2.next();
|
|
|
- var4 = var3.preSaving(var1);
|
|
|
+ IClientDocumentEventListener iClientDocumentEventListener = (IClientDocumentEventListener)iterator.next();
|
|
|
+ var4 = iClientDocumentEventListener.preSaving(clientDocumentEvent);
|
|
|
} while(!var4);
|
|
|
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
- void tryM(ClientDocumentEvent var1) {
|
|
|
- Iterator var2 = this.longV.iterator();
|
|
|
+ void bindListenersOnPropertyChangedEvent(ClientDocumentEvent clientDocumentEvent) {
|
|
|
+ Iterator iterator = this.iClientDocumentEventListeners.iterator();
|
|
|
|
|
|
- while(var2.hasNext()) {
|
|
|
- IClientDocumentEventListener var3 = (IClientDocumentEventListener)var2.next();
|
|
|
- var3.onPropertyChanged(var1);
|
|
|
+ while(iterator.hasNext()) {
|
|
|
+ IClientDocumentEventListener iClientDocumentEventListener = (IClientDocumentEventListener)iterator.next();
|
|
|
+ iClientDocumentEventListener.onPropertyChanged(clientDocumentEvent);
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
- void byteM(ClientDocumentEvent var1) {
|
|
|
- Iterator var2 = this.longV.iterator();
|
|
|
+ void bindListenersOnPropertyChangingEvent(ClientDocumentEvent clientDocumentEvent) {
|
|
|
+ Iterator iterator = this.iClientDocumentEventListeners.iterator();
|
|
|
|
|
|
- while(var2.hasNext()) {
|
|
|
- IClientDocumentEventListener var3 = (IClientDocumentEventListener)var2.next();
|
|
|
- var3.onPropertyChanging(var1);
|
|
|
+ while(iterator.hasNext()) {
|
|
|
+ IClientDocumentEventListener iClientDocumentEventListener = (IClientDocumentEventListener)iterator.next();
|
|
|
+ iClientDocumentEventListener.onPropertyChanging(clientDocumentEvent);
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
- void doM(ClientDocumentEvent var1) {
|
|
|
- Iterator var2 = this.longV.iterator();
|
|
|
+ void bindListensOnSavedEvent(ClientDocumentEvent clientDocumentEvent) {
|
|
|
+ Iterator iterator = this.iClientDocumentEventListeners.iterator();
|
|
|
|
|
|
- while(var2.hasNext()) {
|
|
|
- IClientDocumentEventListener var3 = (IClientDocumentEventListener)var2.next();
|
|
|
- var3.onSaved(var1);
|
|
|
+ while(iterator.hasNext()) {
|
|
|
+ IClientDocumentEventListener iClientDocumentEventListener = (IClientDocumentEventListener)iterator.next();
|
|
|
+ iClientDocumentEventListener.onSaved(clientDocumentEvent);
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
- void ifM(ClientDocumentEvent var1) {
|
|
|
- Iterator var2 = this.longV.iterator();
|
|
|
+ void bindListenersOnSavingEvent(ClientDocumentEvent clientDocumentEvent) {
|
|
|
+ Iterator iterator = this.iClientDocumentEventListeners.iterator();
|
|
|
|
|
|
- while(var2.hasNext()) {
|
|
|
- IClientDocumentEventListener var3 = (IClientDocumentEventListener)var2.next();
|
|
|
- var3.onSaving(var1);
|
|
|
+ while(iterator.hasNext()) {
|
|
|
+ IClientDocumentEventListener iClientDocumentEventListener = (IClientDocumentEventListener)iterator.next();
|
|
|
+ iClientDocumentEventListener.onSaving(clientDocumentEvent);
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
- void doM(AdvancedClientDocumentEvent var1) {
|
|
|
- if (var1 != null) {
|
|
|
- Iterator var2 = this.e.iterator();
|
|
|
+ void bindListensOnSavedEvent(AdvancedClientDocumentEvent advancedClientDocumentEvent) {
|
|
|
+ if (advancedClientDocumentEvent != null) {
|
|
|
+ Iterator iterator = this.iAdvancedClientDocumentEventListeners.iterator();
|
|
|
|
|
|
- while(var2.hasNext()) {
|
|
|
- IAdvancedClientDocumentEventListener var3 = (IAdvancedClientDocumentEventListener)var2.next();
|
|
|
- var3.onRemoved(var1);
|
|
|
+ while(iterator.hasNext()) {
|
|
|
+ IAdvancedClientDocumentEventListener iAdvancedClientDocumentEventListener = (IAdvancedClientDocumentEventListener)iterator.next();
|
|
|
+ iAdvancedClientDocumentEventListener.onRemoved(advancedClientDocumentEvent);
|
|
|
}
|
|
|
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- void ifM(AdvancedClientDocumentEvent var1) {
|
|
|
- if (var1 != null) {
|
|
|
- Iterator var2 = this.e.iterator();
|
|
|
+ void bindListenersOnSavingEvent(AdvancedClientDocumentEvent advancedClientDocumentEvent) {
|
|
|
+ if (advancedClientDocumentEvent != null) {
|
|
|
+ Iterator iterator = this.iAdvancedClientDocumentEventListeners.iterator();
|
|
|
|
|
|
- while(var2.hasNext()) {
|
|
|
- IAdvancedClientDocumentEventListener var3 = (IAdvancedClientDocumentEventListener)var2.next();
|
|
|
- var3.onAdded(var1);
|
|
|
+ while(iterator.hasNext()) {
|
|
|
+ IAdvancedClientDocumentEventListener iAdvancedClientDocumentEventListener = (IAdvancedClientDocumentEventListener)iterator.next();
|
|
|
+ iAdvancedClientDocumentEventListener.onAdded(advancedClientDocumentEvent);
|
|
|
}
|
|
|
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- void a(AdvancedClientDocumentEvent var1) {
|
|
|
+ void bindListenersOnChangedEvent(AdvancedClientDocumentEvent var1) {
|
|
|
if (var1 != null) {
|
|
|
- Iterator var2 = this.e.iterator();
|
|
|
+ Iterator var2 = this.iAdvancedClientDocumentEventListeners.iterator();
|
|
|
|
|
|
while(var2.hasNext()) {
|
|
|
IAdvancedClientDocumentEventListener var3 = (IAdvancedClientDocumentEventListener)var2.next();
|
|
|
@@ -217,62 +217,62 @@ public abstract class ClientDocument implements IReportAppService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- PropertyBag a(Object var1) throws ReportSDKException {
|
|
|
- if (var1 == null) {
|
|
|
+ PropertyBag bindListenersOnPreSavingEvent(Object parentFolderPath) throws ReportSDKException {
|
|
|
+ if (parentFolderPath == null) {
|
|
|
return null;
|
|
|
} else {
|
|
|
- boolean var2 = false;
|
|
|
- if (var1 instanceof Number) {
|
|
|
- var2 = true;
|
|
|
+ boolean isNumberOrIFolderOrIReport = false;
|
|
|
+ if (parentFolderPath instanceof Number) {
|
|
|
+ isNumberOrIFolderOrIReport = true;
|
|
|
} else {
|
|
|
- Class[] var3 = var1.getClass().getInterfaces();
|
|
|
+ Class[] interfaces = parentFolderPath.getClass().getInterfaces();
|
|
|
|
|
|
- for(int var4 = 0; var4 < var3.length; ++var4) {
|
|
|
- Class var5 = var3[var4];
|
|
|
- if (var5.getName().indexOf("com.crystaldecisions.sdk.plugin.desktop.folder.IFolder") != -1 || var5.getName().indexOf("com.crystaldecisions.sdk.plugin.desktop.report.IReport") != -1) {
|
|
|
- var2 = true;
|
|
|
+ for(int i = 0; i < interfaces.length; ++i) {
|
|
|
+ Class anInterface = interfaces[i];
|
|
|
+ if (anInterface.getName().indexOf("com.crystaldecisions.sdk.plugin.desktop.folder.IFolder") != -1 || anInterface.getName().indexOf("com.crystaldecisions.sdk.plugin.desktop.report.IReport") != -1) {
|
|
|
+ isNumberOrIFolderOrIReport = true;
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- PropertyBag var6 = null;
|
|
|
- String var7 = null;
|
|
|
- if (var2 && this.gotoV != null) {
|
|
|
- var7 = this.gotoV.getObjectURI(var1, this.f);
|
|
|
- } else if (var1 instanceof Agent) {
|
|
|
- var7 = "";
|
|
|
- } else if (var1 instanceof String) {
|
|
|
- var7 = (String)var1;
|
|
|
+ PropertyBag propertyBag = null;
|
|
|
+ String objectURI;
|
|
|
+ if (isNumberOrIFolderOrIReport && this.iEnterprisePlugin != null) {
|
|
|
+ objectURI = this.iEnterprisePlugin.getObjectURI(parentFolderPath, this.locale);
|
|
|
+ } else if (parentFolderPath instanceof Agent) {
|
|
|
+ objectURI = "";
|
|
|
+ } else if (parentFolderPath instanceof String) {
|
|
|
+ objectURI = (String)parentFolderPath;
|
|
|
} else {
|
|
|
- if (!(var1 instanceof PropertyBag)) {
|
|
|
+ if (!(parentFolderPath instanceof PropertyBag)) {
|
|
|
throw new IllegalArgumentException();
|
|
|
}
|
|
|
|
|
|
- var6 = (PropertyBag)var1;
|
|
|
- var7 = var6.getStringValue("path");
|
|
|
+ propertyBag = (PropertyBag)parentFolderPath;
|
|
|
+ objectURI = propertyBag.getStringValue("path");
|
|
|
}
|
|
|
|
|
|
- if (var6 == null) {
|
|
|
- var6 = new PropertyBag();
|
|
|
+ if (propertyBag == null) {
|
|
|
+ propertyBag = new PropertyBag();
|
|
|
}
|
|
|
|
|
|
- boolean var8 = true;
|
|
|
- if (var7 != null) {
|
|
|
- var6.put("path", var7);
|
|
|
- if (var7.toLowerCase().startsWith("rassdk://")) {
|
|
|
- var8 = false;
|
|
|
+ boolean isRemoteDoc = true;
|
|
|
+ if (objectURI != null) {
|
|
|
+ propertyBag.put("path", objectURI);
|
|
|
+ if (objectURI.toLowerCase().startsWith("rassdk://")) {
|
|
|
+ isRemoteDoc = false;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- var6.putBooleanValue("isremotedoc", var8);
|
|
|
- return var6;
|
|
|
+ propertyBag.putBooleanValue("isremotedoc", isRemoteDoc);
|
|
|
+ return propertyBag;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
public boolean getIsModified() throws ReportSDKException {
|
|
|
try {
|
|
|
- this.elseV.enter();
|
|
|
+ this.objectState.enter();
|
|
|
} catch (ReportSDKException var4) {
|
|
|
ReportSDKClientDocException.throwReportSDKClientDocException(var4.errorCode(), var4.getMessage());
|
|
|
}
|
|
|
@@ -283,89 +283,89 @@ public abstract class ClientDocument implements IReportAppService {
|
|
|
} else if (var1) {
|
|
|
IUndoManager var2 = this.getUndoManager();
|
|
|
IUndoUnit var3 = var2.getLastUndoUnit();
|
|
|
- if (var3 == this.charV && !var2.isOpen()) {
|
|
|
+ if (var3 == this.iUndoUnit && !var2.isOpen()) {
|
|
|
var1 = false;
|
|
|
this.g = false;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- this.elseV.leave();
|
|
|
+ this.objectState.leave();
|
|
|
return var1;
|
|
|
}
|
|
|
|
|
|
public Locale getLocale() {
|
|
|
- return this.f;
|
|
|
+ return this.locale;
|
|
|
}
|
|
|
|
|
|
- ObjectState byteM() {
|
|
|
- return this.elseV;
|
|
|
+ ObjectState bindListenersOnPropertyChangingEvent() {
|
|
|
+ return this.objectState;
|
|
|
}
|
|
|
|
|
|
- RemoteAgent intM() {
|
|
|
- return this.tryV;
|
|
|
+ RemoteAgent getRemoteAgent() {
|
|
|
+ return this.remoteAgent;
|
|
|
}
|
|
|
|
|
|
public String getReportAppServer() {
|
|
|
- return this.c != null ? this.c.getReportAppServer() : "";
|
|
|
+ return this.reportAppSession != null ? this.reportAppSession.getReportAppServer() : "";
|
|
|
}
|
|
|
|
|
|
public ReportAppSession getReportAppSession() {
|
|
|
- if (this.c == null) {
|
|
|
- this.c = new ReportAppSession();
|
|
|
- this.c.setLocale(this.f);
|
|
|
- this.c.a(this.voidV);
|
|
|
+ if (this.reportAppSession == null) {
|
|
|
+ this.reportAppSession = new ReportAppSession();
|
|
|
+ this.reportAppSession.setLocale(this.locale);
|
|
|
+ this.reportAppSession.a(this.timeZone);
|
|
|
}
|
|
|
|
|
|
- return this.c;
|
|
|
+ return this.reportAppSession;
|
|
|
}
|
|
|
|
|
|
public IUndoManager getUndoManager() {
|
|
|
- if (this.d == null) {
|
|
|
- this.d = new UndoManager();
|
|
|
+ if (this.iUndoManager == null) {
|
|
|
+ this.iUndoManager = new UndoManager();
|
|
|
}
|
|
|
|
|
|
- return this.d;
|
|
|
+ return this.iUndoManager;
|
|
|
}
|
|
|
|
|
|
- public void initialize(ReportAppSession var1) throws ReportSDKException {
|
|
|
- this.setReportAppSession(var1);
|
|
|
+ public void initialize(ReportAppSession reportAppSession) throws ReportSDKException {
|
|
|
+ this.setReportAppSession(reportAppSession);
|
|
|
}
|
|
|
|
|
|
- void forM() throws ReportSDKException {
|
|
|
- if (this.c == null) {
|
|
|
- this.c = new ReportAppSession();
|
|
|
- this.c.setLocale(this.f);
|
|
|
- this.c.a(this.voidV);
|
|
|
+ void initializeReportAppSession() throws ReportSDKException {
|
|
|
+ if (this.reportAppSession == null) {
|
|
|
+ this.reportAppSession = new ReportAppSession();
|
|
|
+ this.reportAppSession.setLocale(this.locale);
|
|
|
+ this.reportAppSession.a(this.timeZone);
|
|
|
}
|
|
|
|
|
|
- this.c.initialize();
|
|
|
+ this.reportAppSession.initialize();
|
|
|
}
|
|
|
|
|
|
- void a(Agent var1) throws ReportSDKException {
|
|
|
+ void setRemoteAgent(Agent var1) throws ReportSDKException {
|
|
|
if (var1 == null) {
|
|
|
- String var2 = SDKResourceManager.getString("Error_InvalidFilePath", this.f);
|
|
|
+ String var2 = SDKResourceManager.getString("Error_InvalidFilePath", this.locale);
|
|
|
ReportSDKClientDocException.throwReportSDKClientDocException(-2147215358, var2);
|
|
|
}
|
|
|
|
|
|
- this.tryV = new RemoteAgent(var1);
|
|
|
+ this.remoteAgent = new RemoteAgent(var1);
|
|
|
}
|
|
|
|
|
|
- void ifM(String var1) throws ReportSDKException {
|
|
|
- this.tryV = RemoteAgent.a(this.getLocale(), var1, this.getReportAppServer());
|
|
|
+ void bindListenersOnSavingEvent(String var1) throws ReportSDKException {
|
|
|
+ this.remoteAgent = RemoteAgent.a(this.getLocale(), var1, this.getReportAppServer());
|
|
|
}
|
|
|
|
|
|
- void doM() throws ReportSDKException {
|
|
|
- if (byteV.isDebugEnabled()) {
|
|
|
- byteV.debug("initializeServerConnection() is being called");
|
|
|
+ void bindListensOnSavedEvent() throws ReportSDKException {
|
|
|
+ if (iLogger.isDebugEnabled()) {
|
|
|
+ iLogger.debug("initializeServerConnection() is being called");
|
|
|
}
|
|
|
|
|
|
- this.f = this.tryV.forM();
|
|
|
+ this.locale = this.remoteAgent.forM();
|
|
|
|
|
|
- assert this.c != null;
|
|
|
+ assert this.reportAppSession != null;
|
|
|
|
|
|
}
|
|
|
|
|
|
- static boolean a(String var0) {
|
|
|
+ static boolean startsWithCeisOrCecuid(String var0) {
|
|
|
if (var0 == null) {
|
|
|
return false;
|
|
|
} else {
|
|
|
@@ -378,23 +378,23 @@ public abstract class ClientDocument implements IReportAppService {
|
|
|
public void newDocument() throws ReportSDKException {
|
|
|
try {
|
|
|
try {
|
|
|
- this.elseV.starting();
|
|
|
+ this.objectState.starting();
|
|
|
} catch (ReportSDKException var2) {
|
|
|
ReportSDKClientDocException.throwReportSDKClientDocException(var2.errorCode(), var2.getMessage());
|
|
|
}
|
|
|
|
|
|
- this.forM();
|
|
|
- this.ifM((String)null);
|
|
|
- this.doM();
|
|
|
+ this.initializeReportAppSession();
|
|
|
+ this.bindListenersOnSavingEvent((String)null);
|
|
|
+ this.bindListensOnSavedEvent();
|
|
|
this.newM();
|
|
|
- this.elseV.started();
|
|
|
+ this.objectState.started();
|
|
|
} catch (ReportSDKException var3) {
|
|
|
- this.elseV.started();
|
|
|
- this.elseV.stopping();
|
|
|
+ this.objectState.started();
|
|
|
+ this.objectState.stopping();
|
|
|
this.caseM();
|
|
|
this.charM();
|
|
|
- this.elseV.stopped();
|
|
|
- this.elseV.reset();
|
|
|
+ this.objectState.stopped();
|
|
|
+ this.objectState.reset();
|
|
|
throw var3;
|
|
|
}
|
|
|
}
|
|
|
@@ -402,35 +402,35 @@ public abstract class ClientDocument implements IReportAppService {
|
|
|
public void open(Object var1, int var2) throws ReportSDKException {
|
|
|
try {
|
|
|
try {
|
|
|
- this.elseV.starting();
|
|
|
+ this.objectState.starting();
|
|
|
} catch (ReportSDKException var6) {
|
|
|
ReportSDKClientDocException.throwReportSDKClientDocException(var6.errorCode(), var6.getMessage());
|
|
|
}
|
|
|
|
|
|
- PropertyBag var3 = this.a(var1);
|
|
|
- this.forM();
|
|
|
+ PropertyBag var3 = this.bindListenersOnPreSavingEvent(var1);
|
|
|
+ this.initializeReportAppSession();
|
|
|
if (var1 instanceof Agent) {
|
|
|
- this.a((Agent)var1);
|
|
|
+ this.setRemoteAgent((Agent)var1);
|
|
|
} else {
|
|
|
String var4 = (String)var3.get("path");
|
|
|
if (var4.length() == 0) {
|
|
|
- String var5 = SDKResourceManager.getString("Error_InvalidFilePath", this.f);
|
|
|
+ String var5 = SDKResourceManager.getString("Error_InvalidFilePath", this.locale);
|
|
|
ReportSDKClientDocException.throwReportSDKClientDocException(-2147215358, var5);
|
|
|
}
|
|
|
|
|
|
- this.ifM(var4);
|
|
|
+ this.bindListenersOnSavingEvent(var4);
|
|
|
}
|
|
|
|
|
|
- this.doM();
|
|
|
- this.a(var3, var2);
|
|
|
- this.elseV.started();
|
|
|
+ this.bindListensOnSavedEvent();
|
|
|
+ this.abcd(var3, var2);
|
|
|
+ this.objectState.started();
|
|
|
} catch (ReportSDKException var7) {
|
|
|
- this.elseV.started();
|
|
|
- this.elseV.stopping();
|
|
|
+ this.objectState.started();
|
|
|
+ this.objectState.stopping();
|
|
|
this.caseM();
|
|
|
this.charM();
|
|
|
- this.elseV.stopped();
|
|
|
- this.elseV.reset();
|
|
|
+ this.objectState.stopped();
|
|
|
+ this.objectState.reset();
|
|
|
throw var7;
|
|
|
}
|
|
|
}
|
|
|
@@ -438,32 +438,32 @@ public abstract class ClientDocument implements IReportAppService {
|
|
|
public abstract String path() throws ReportSDKException;
|
|
|
|
|
|
public void removeClientDocumentEventListener(IClientDocumentEventListener var1) {
|
|
|
- this.longV.remove(var1);
|
|
|
+ this.iClientDocumentEventListeners.remove(var1);
|
|
|
}
|
|
|
|
|
|
public void removeAdvancedClientDocumentEventListener(IAdvancedClientDocumentEventListener var1) {
|
|
|
- this.e.remove(var1);
|
|
|
+ this.iAdvancedClientDocumentEventListeners.remove(var1);
|
|
|
}
|
|
|
|
|
|
public abstract void save() throws IOException, ReportSDKException;
|
|
|
|
|
|
public abstract void saveAs(String var1, Object var2, int var3) throws ReportSDKException, IOException;
|
|
|
|
|
|
- void a(boolean var1) {
|
|
|
- this.byteM(new ClientDocumentEvent(this, "IsModified"));
|
|
|
+ void abc(boolean var1) {
|
|
|
+ this.bindListenersOnPropertyChangingEvent(new ClientDocumentEvent(this, "IsModified"));
|
|
|
this.g = var1;
|
|
|
if (!var1) {
|
|
|
- this.charV = ((UndoManager)this.getUndoManager()).getLastUndoUnit();
|
|
|
+ this.iUndoUnit = ((UndoManager)this.getUndoManager()).getLastUndoUnit();
|
|
|
}
|
|
|
|
|
|
- this.tryM(new ClientDocumentEvent(this, "IsModified"));
|
|
|
+ this.bindListenersOnPropertyChangedEvent(new ClientDocumentEvent(this, "IsModified"));
|
|
|
}
|
|
|
|
|
|
public void setIsModifiedUntilSaved() {
|
|
|
- this.byteM(new ClientDocumentEvent(this, "IsModified"));
|
|
|
+ this.bindListenersOnPropertyChangingEvent(new ClientDocumentEvent(this, "IsModified"));
|
|
|
this.g = true;
|
|
|
this.caseV = true;
|
|
|
- this.tryM(new ClientDocumentEvent(this, "IsModified"));
|
|
|
+ this.bindListenersOnPropertyChangedEvent(new ClientDocumentEvent(this, "IsModified"));
|
|
|
}
|
|
|
|
|
|
public void setLocale(Locale var1) throws ReportSDKException {
|
|
|
@@ -471,68 +471,68 @@ public abstract class ClientDocument implements IReportAppService {
|
|
|
var1 = Locale.getDefault();
|
|
|
}
|
|
|
|
|
|
- this.f = var1;
|
|
|
- this.elseV.setLocale(var1);
|
|
|
- if (this.tryV != null) {
|
|
|
- this.tryV.a(var1);
|
|
|
+ this.locale = var1;
|
|
|
+ this.objectState.setLocale(var1);
|
|
|
+ if (this.remoteAgent != null) {
|
|
|
+ this.remoteAgent.a(var1);
|
|
|
}
|
|
|
|
|
|
- if (this.c != null) {
|
|
|
- this.c.setLocale(var1);
|
|
|
+ if (this.reportAppSession != null) {
|
|
|
+ this.reportAppSession.setLocale(var1);
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setTimeZone(TimeZone var1) throws ReportSDKException {
|
|
|
if (var1 != null) {
|
|
|
- this.voidV = var1;
|
|
|
- if (this.c != null) {
|
|
|
- this.c.a(var1);
|
|
|
+ this.timeZone = var1;
|
|
|
+ if (this.reportAppSession != null) {
|
|
|
+ this.reportAppSession.a(var1);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setReportAppServer(String var1) throws ReportSDKException {
|
|
|
- this.byteM(new ClientDocumentEvent(this, "ReportAppServer"));
|
|
|
- if (this.c != null) {
|
|
|
- String var2 = SDKResourceManager.getString("Error_ChangeServer", this.f);
|
|
|
+ this.bindListenersOnPropertyChangingEvent(new ClientDocumentEvent(this, "ReportAppServer"));
|
|
|
+ if (this.reportAppSession != null) {
|
|
|
+ String var2 = SDKResourceManager.getString("Error_ChangeServer", this.locale);
|
|
|
ReportSDKClientDocException.throwReportSDKClientDocException(-2147215346, var2);
|
|
|
}
|
|
|
|
|
|
- this.c = new ReportAppSession();
|
|
|
- this.c.setLocale(this.f);
|
|
|
- this.c.a(this.voidV);
|
|
|
+ this.reportAppSession = new ReportAppSession();
|
|
|
+ this.reportAppSession.setLocale(this.locale);
|
|
|
+ this.reportAppSession.a(this.timeZone);
|
|
|
if (var1 != null && var1.length() > 0) {
|
|
|
- this.c.setReportAppServer(var1);
|
|
|
+ this.reportAppSession.setReportAppServer(var1);
|
|
|
}
|
|
|
|
|
|
- this.tryM(new ClientDocumentEvent(this, "ReportAppServer"));
|
|
|
+ this.bindListenersOnPropertyChangedEvent(new ClientDocumentEvent(this, "ReportAppServer"));
|
|
|
}
|
|
|
|
|
|
public void setReportAppSession(ReportAppSession var1) throws ReportSDKException {
|
|
|
- this.byteM(new ClientDocumentEvent(this, "ReportAppSession"));
|
|
|
+ this.bindListenersOnPropertyChangingEvent(new ClientDocumentEvent(this, "ReportAppSession"));
|
|
|
Locale var2 = var1.getLocale();
|
|
|
- if (this.tryV != null) {
|
|
|
+ if (this.remoteAgent != null) {
|
|
|
String var3 = SDKResourceManager.getString("Error_DocServerConnectionAlreadySetup", var2);
|
|
|
ReportSDKClientDocException.throwReportSDKClientDocException(-2147215355, var3);
|
|
|
}
|
|
|
|
|
|
- this.c = var1;
|
|
|
+ this.reportAppSession = var1;
|
|
|
this.setLocale(var2);
|
|
|
- this.tryM(new ClientDocumentEvent(this, "ReportAppSession"));
|
|
|
+ this.bindListenersOnPropertyChangedEvent(new ClientDocumentEvent(this, "ReportAppSession"));
|
|
|
}
|
|
|
|
|
|
public abstract PropertyBag UID() throws ReportSDKException;
|
|
|
|
|
|
void charM() {
|
|
|
- if (byteV.isDebugEnabled()) {
|
|
|
- byteV.debug("uninitializeServerConnection() is being called");
|
|
|
+ if (iLogger.isDebugEnabled()) {
|
|
|
+ iLogger.debug("uninitializeServerConnection() is being called");
|
|
|
}
|
|
|
|
|
|
- if (this.tryV != null) {
|
|
|
- this.tryV.a(true);
|
|
|
- this.tryV = null;
|
|
|
+ if (this.remoteAgent != null) {
|
|
|
+ this.remoteAgent.a(true);
|
|
|
+ this.remoteAgent = null;
|
|
|
}
|
|
|
|
|
|
}
|