home *** CD-ROM | disk | FTP | other *** search
- package lotus.domino.local;
-
- import java.util.Vector;
- import lotus.domino.NotesException;
- import lotus.notes.JavaString;
-
- public class Log extends NotesBase implements lotus.domino.Log {
- private transient Session session;
-
- private native void NopenNotesLog(String var1, String var2);
-
- private native void NopenFileLog(String var1);
-
- private native void NopenMailLog(Vector var1, String var2);
-
- private native void NopenAgentLog();
-
- private native void NlogAction(String var1);
-
- private native void NlogError(int var1, String var2);
-
- private native void NlogEvent(String var1, String var2, int var3, int var4);
-
- private native void Nclose();
-
- protected Log() throws NotesException {
- }
-
- protected Log(Session var1, int var2) throws NotesException {
- super(var2, 12);
- if (var1 == null) {
- throw new NotesException(4404, JavaString.resource.getString("missing_session_object"));
- } else {
- this.session = var1;
- var1.AddObject(this);
- }
- }
-
- protected void InternalFinalize() throws NotesException {
- super.finalize();
- }
-
- public void finalize() throws NotesException {
- this.session.RemoveObject(this);
- this.InternalFinalize();
- }
-
- public void recycle() throws NotesException {
- try {
- this.session.RemoveObject(this);
- } catch (NotesException var5) {
- } finally {
- super.Recycle();
- }
-
- }
-
- public void openNotesLog(String var1, String var2) throws NotesException {
- ((NotesBase)this).CheckObject();
- synchronized(this){}
-
- try {
- this.NopenNotesLog(var1, var2);
- } catch (Throwable var5) {
- throw var5;
- }
-
- }
-
- public void openFileLog(String var1) throws NotesException {
- ((NotesBase)this).CheckObject();
- synchronized(this){}
-
- try {
- this.NopenFileLog(var1);
- } catch (Throwable var4) {
- throw var4;
- }
-
- }
-
- public void openMailLog(Vector var1, String var2) throws NotesException {
- ((NotesBase)this).CheckObject();
- synchronized(this){}
-
- try {
- this.NopenMailLog(var1, var2);
- } catch (Throwable var5) {
- throw var5;
- }
-
- }
-
- public void openAgentLog() throws NotesException {
- ((NotesBase)this).CheckObject();
- synchronized(this){}
-
- try {
- this.NopenAgentLog();
- } catch (Throwable var3) {
- throw var3;
- }
-
- }
-
- public void logAction(String var1) throws NotesException {
- ((NotesBase)this).CheckObject();
- synchronized(this){}
-
- try {
- this.NlogAction(var1);
- } catch (Throwable var4) {
- throw var4;
- }
-
- }
-
- public void logError(int var1, String var2) throws NotesException {
- ((NotesBase)this).CheckObject();
- synchronized(this){}
-
- try {
- this.NlogError(var1, var2);
- } catch (Throwable var5) {
- throw var5;
- }
-
- }
-
- public void logEvent(String var1, String var2, int var3, int var4) throws NotesException {
- ((NotesBase)this).CheckObject();
- synchronized(this){}
-
- try {
- this.NlogEvent(var1, var2, var3, var4);
- } catch (Throwable var7) {
- throw var7;
- }
-
- }
-
- public void close() throws NotesException {
- ((NotesBase)this).CheckObject();
- synchronized(this){}
-
- try {
- this.Nclose();
- } catch (Throwable var3) {
- throw var3;
- }
-
- }
-
- public boolean isLogErrors() throws NotesException {
- ((NotesBase)this).CheckObject();
- synchronized(this){}
-
- boolean var1;
- try {
- var1 = ((NotesBase)this).PropGetBool(1311);
- } catch (Throwable var5) {
- throw var5;
- }
-
- return var1;
- }
-
- public void setLogErrors(boolean var1) throws NotesException {
- ((NotesBase)this).CheckObject();
- synchronized(this){}
-
- try {
- ((NotesBase)this).PropSetBool(1311, var1);
- } catch (Throwable var4) {
- throw var4;
- }
-
- }
-
- public boolean isLogActions() throws NotesException {
- ((NotesBase)this).CheckObject();
- synchronized(this){}
-
- boolean var1;
- try {
- var1 = ((NotesBase)this).PropGetBool(1312);
- } catch (Throwable var5) {
- throw var5;
- }
-
- return var1;
- }
-
- public void setLogActions(boolean var1) throws NotesException {
- ((NotesBase)this).CheckObject();
- synchronized(this){}
-
- try {
- ((NotesBase)this).PropSetBool(1312, var1);
- } catch (Throwable var4) {
- throw var4;
- }
-
- }
-
- public int getNumActions() throws NotesException {
- ((NotesBase)this).CheckObject();
- synchronized(this){}
-
- int var1;
- try {
- var1 = ((NotesBase)this).PropGetInt(1313);
- } catch (Throwable var5) {
- throw var5;
- }
-
- return var1;
- }
-
- public int getNumErrors() throws NotesException {
- ((NotesBase)this).CheckObject();
- synchronized(this){}
-
- int var1;
- try {
- var1 = ((NotesBase)this).PropGetInt(1314);
- } catch (Throwable var5) {
- throw var5;
- }
-
- return var1;
- }
-
- public boolean isOverwriteFile() throws NotesException {
- ((NotesBase)this).CheckObject();
- synchronized(this){}
-
- boolean var1;
- try {
- var1 = ((NotesBase)this).PropGetBool(1315);
- } catch (Throwable var5) {
- throw var5;
- }
-
- return var1;
- }
-
- public void setOverwriteFile(boolean var1) throws NotesException {
- ((NotesBase)this).CheckObject();
- synchronized(this){}
-
- try {
- ((NotesBase)this).PropSetBool(1315, var1);
- } catch (Throwable var4) {
- throw var4;
- }
-
- }
-
- public String getProgramName() throws NotesException {
- ((NotesBase)this).CheckObject();
- synchronized(this){}
-
- String var1;
- try {
- var1 = ((NotesBase)this).PropGetString(1316);
- } catch (Throwable var5) {
- throw var5;
- }
-
- return var1;
- }
-
- public void setProgramName(String var1) throws NotesException {
- ((NotesBase)this).CheckObject();
- synchronized(this){}
-
- try {
- ((NotesBase)this).PropSetString(1316, var1);
- } catch (Throwable var4) {
- throw var4;
- }
-
- }
-
- public String toString() {
- String var1;
- try {
- var1 = this.getProgramName();
- } catch (Exception var2) {
- var1 = null;
- }
-
- return var1;
- }
-
- public lotus.domino.Session getParent() throws NotesException {
- return this.session;
- }
- }
-