Discussion:
[Jxplorer-users] Patch to allow HTML View to create new entries and sample posixAccount templates
Douglas E. Engert
2007-08-15 16:05:13 UTC
Permalink
In order to make the JXplorer easier to use for our account services people,
to add new posixAcocunt entries, I created templates/posixAccount/Main.html and other.html

The attached patch is against the cvs to allow the HTML viewer to create new entries.

The line in MyHTMLEditorKit.java:
newEntry.setStatus(oldEntry.getStatus());

will copy the status which is new, if the entry does not exist in ldap or normal
if the entry already exists. Thus later when the submit is done it will use ldap add
or ldap modify.

What I have not figured out is how to use the value="xxx" in the
template to provide a default stating value when creating new entries
which would be another nice feature.


Please consider adding these changes to the next distribution.
--
Douglas E. Engert <***@anl.gov>
Argonne National Laboratory
9700 South Cass Avenue
Argonne, Illinois 60439
(630) 252-5444
s***@scbbs.com
2007-08-16 18:32:12 UTC
Permalink
I just downloaded jxplorer for windows. How do I apply this patch to it?
Post by Douglas E. Engert
In order to make the JXplorer easier to use for our account services people,
to add new posixAcocunt entries, I created
templates/posixAccount/Main.html and other.html
The attached patch is against the cvs to allow the HTML viewer to create new entries.
newEntry.setStatus(oldEntry.getStatus());
will copy the status which is new, if the entry does not exist in ldap or normal
if the entry already exists. Thus later when the submit is done it will use ldap add
or ldap modify.
What I have not figured out is how to use the value="xxx" in the
template to provide a default stating value when creating new entries
which would be another nice feature.
Please consider adding these changes to the next distribution.
--
Argonne National Laboratory
9700 South Cass Avenue
Argonne, Illinois 60439
(630) 252-5444
Ron Parker
2007-08-22 21:27:58 UTC
Permalink
I just downloaded jxplorer from cvs:

cvs -d:pserver:***@jxplorer.cvs.sourceforge.net:/cvsroot/jxplorer
login

cvs -z3
-d:pserver:***@jxplorer.cvs.sourceforge.net:/cvsroot/jxplorer co
-P modulename

It downloaded a jxplorer directory which contains this:

build.properties JXplorer_Administrator_Guide.pdf
build.xml manifest.txt
CVS resources
jars src
JXplorer_Administrator_Guide.doc tcpinterceptor_8000_8080.bat

Could someone please help me with these two questions:

1. Where/How do I apply patch?
2. How do I update jxplorer runtime with new patch files?

Thanks!

-ron
Post by Douglas E. Engert
In order to make the JXplorer easier to use for our account services people,
to add new posixAcocunt entries, I created
templates/posixAccount/Main.html and other.html
The attached patch is against the cvs to allow the HTML viewer to create new entries.
newEntry.setStatus(oldEntry.getStatus());
will copy the status which is new, if the entry does not exist in ldap or normal
if the entry already exists. Thus later when the submit is done it will use ldap add
or ldap modify.
What I have not figured out is how to use the value="xxx" in the
template to provide a default stating value when creating new entries
which would be another nice feature.
Please consider adding these changes to the next distribution.
------------------------------------------------------------------------
Index: src/com/ca/directory/jxplorer/viewer/HTMLTemplateDisplay.java
===================================================================
RCS file: /cvsroot/jxplorer/javasrc/com/ca/directory/jxplorer/viewer/HTMLTemplateDisplay.java,v
retrieving revision 1.22
diff -u -r1.22 HTMLTemplateDisplay.java
--- src/com/ca/directory/jxplorer/viewer/HTMLTemplateDisplay.java 18 Aug 2005 04:14:25 -0000 1.22
+++ src/com/ca/directory/jxplorer/viewer/HTMLTemplateDisplay.java 15 Aug 2007 14:50:34 -0000
@@ -2517,7 +2517,7 @@
public boolean canCreateEntry()
{
- return false;
+ return true; //DEE was false;
}
public void registerComponents(JMenuBar menu, JToolBar buttons, JTree tree, JPopupMenu treeMenu, JFrame jx)
@@ -2559,4 +2559,4 @@
}
-}
\ No newline at end of file
+}
Index: src/com/ca/directory/jxplorer/viewer/MyHTMLEditorKit.java
===================================================================
RCS file: /cvsroot/jxplorer/javasrc/com/ca/directory/jxplorer/viewer/MyHTMLEditorKit.java,v
retrieving revision 1.8
diff -u -r1.8 MyHTMLEditorKit.java
--- src/com/ca/directory/jxplorer/viewer/MyHTMLEditorKit.java 6 Dec 2005 06:27:40 -0000 1.8
+++ src/com/ca/directory/jxplorer/viewer/MyHTMLEditorKit.java 15 Aug 2007 14:50:34 -0000
@@ -62,6 +62,8 @@
DXEntry newEntry = parseData(data, oldEntry); //TE: make an entry with any changes that the user may have done (this entry doesn't have a dn yet).
+ newEntry.setStatus(oldEntry.getStatus()); // new or normal DEE
+
// Must remove the Submit attr so that it doesn't get added...
newEntry.remove(SUBMIT);
@@ -322,4 +324,4 @@
}
}
-}
\ No newline at end of file
+}
------------------------------------------------------------------------
<Main.html>
posixAccount
__________ NOD32 2473 (20070821) Information __________
This message was checked by NOD32 antivirus system.
http://www.eset.com
------------------------------------------------------------------------
<other.html>
posixAccount
cn: and uid: are normally the same.
password: is normally {crypt}NP and will be displayed as e2NyeXB0fU5Q
to lock an account use {crypt}*LK* displayed as e2NyeXB0fSpMSyo=
__________ NOD32 2473 (20070821) Information __________
This message was checked by NOD32 antivirus system.
http://www.eset.com
------------------------------------------------------------------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
__________ NOD32 2473 (20070821) Information __________
This message was checked by NOD32 antivirus system.
http://www.eset.com
------------------------------------------------------------------------
_______________________________________________
Jxplorer-users mailing list
https://lists.sourceforge.net/lists/listinfo/jxplorer-users
__________ NOD32 2473 (20070821) Information __________
This message was checked by NOD32 antivirus system.
http://www.eset.com
--
Ron Parker
Software Creations http://www.scbbs.com
Self-Administration Web Site http://saw.scbbs.com
SDSS Subscription Mgmt Service http://sdss.scbbs.com
Central Ave Dance Ensemble http://www.centralavedance.com
R & B Salsa http://www.randbsalsa.com
Douglas E. Engert
2007-08-23 14:00:57 UTC
Permalink
Post by Ron Parker
login
cvs -z3
-P /modulename/
build.properties JXplorer_Administrator_Guide.pdf
build.xml manifest.txt
CVS resources
jars src
JXplorer_Administrator_Guide.doc tcpinterceptor_8000_8080.bat
1. Where/How do I apply patch?
See the Unix patch program. It takes a file produced by diff (cvs diff
in this case) and figures out from the diff what file needs to be changed.
The patch below only changes 2 lines, so you could do it manually.
Post by Ron Parker
2. How do I update jxplorer runtime with new patch files?
I found that while in the top level directory, run "ant dist".
The dist directory will then have the runtime files.
Depending on what system you are on it may or may not be present.
On Solarais 10 it is in /usr/sfw/bin. ant came from Apache.

If you are interested in resources/templates/posixAccount/Main.html
and other.html You can create this directory in the cvs before you
run ant.
Post by Ron Parker
Thanks!
-ron
Post by Douglas E. Engert
In order to make the JXplorer easier to use for our account services people,
to add new posixAcocunt entries, I created
templates/posixAccount/Main.html and other.html
The attached patch is against the cvs to allow the HTML viewer to create new entries.
newEntry.setStatus(oldEntry.getStatus());
will copy the status which is new, if the entry does not exist in ldap or normal
if the entry already exists. Thus later when the submit is done it will use ldap add
or ldap modify.
What I have not figured out is how to use the value="xxx" in the
template to provide a default stating value when creating new entries
which would be another nice feature.
Please consider adding these changes to the next distribution.
------------------------------------------------------------------------
Index: src/com/ca/directory/jxplorer/viewer/HTMLTemplateDisplay.java
===================================================================
RCS file: /cvsroot/jxplorer/javasrc/com/ca/directory/jxplorer/viewer/HTMLTemplateDisplay.java,v
retrieving revision 1.22
diff -u -r1.22 HTMLTemplateDisplay.java
--- src/com/ca/directory/jxplorer/viewer/HTMLTemplateDisplay.java 18 Aug 2005 04:14:25 -0000 1.22
+++ src/com/ca/directory/jxplorer/viewer/HTMLTemplateDisplay.java 15 Aug 2007 14:50:34 -0000
@@ -2517,7 +2517,7 @@
public boolean canCreateEntry()
{
- return false;
+ return true; //DEE was false;
}
public void registerComponents(JMenuBar menu, JToolBar buttons, JTree tree, JPopupMenu treeMenu, JFrame jx)
@@ -2559,4 +2559,4 @@
}
-}
\ No newline at end of file
+}
Index: src/com/ca/directory/jxplorer/viewer/MyHTMLEditorKit.java
===================================================================
RCS file: /cvsroot/jxplorer/javasrc/com/ca/directory/jxplorer/viewer/MyHTMLEditorKit.java,v
retrieving revision 1.8
diff -u -r1.8 MyHTMLEditorKit.java
--- src/com/ca/directory/jxplorer/viewer/MyHTMLEditorKit.java 6 Dec 2005 06:27:40 -0000 1.8
+++ src/com/ca/directory/jxplorer/viewer/MyHTMLEditorKit.java 15 Aug 2007 14:50:34 -0000
@@ -62,6 +62,8 @@
DXEntry newEntry = parseData(data, oldEntry); //TE: make an entry with any changes that the user may have done (this entry doesn't have a dn yet).
+ newEntry.setStatus(oldEntry.getStatus()); // new or normal DEE
+
// Must remove the Submit attr so that it doesn't get added...
newEntry.remove(SUBMIT);
@@ -322,4 +324,4 @@
}
}
-}
\ No newline at end of file
+}
------------------------------------------------------------------------
<Main.html>
posixAccount
__________ NOD32 2473 (20070821) Information __________
This message was checked by NOD32 antivirus system.
http://www.eset.com
------------------------------------------------------------------------
<other.html>
posixAccount
cn: and uid: are normally the same.
password: is normally {crypt}NP and will be displayed as e2NyeXB0fU5Q
to lock an account use {crypt}*LK* displayed as e2NyeXB0fSpMSyo=
__________ NOD32 2473 (20070821) Information __________
This message was checked by NOD32 antivirus system.
http://www.eset.com
------------------------------------------------------------------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
__________ NOD32 2473 (20070821) Information __________
This message was checked by NOD32 antivirus system.
http://www.eset.com
------------------------------------------------------------------------
_______________________________________________
Jxplorer-users mailing list
https://lists.sourceforge.net/lists/listinfo/jxplorer-users
__________ NOD32 2473 (20070821) Information __________
This message was checked by NOD32 antivirus system.
http://www.eset.com
--
Ron Parker
Software Creations http://www.scbbs.com
Self-Administration Web Site http://saw.scbbs.com
SDSS Subscription Mgmt Service http://sdss.scbbs.com
Central Ave Dance Ensemble http://www.centralavedance.com
R & B Salsa http://www.randbsalsa.com
--
Douglas E. Engert <***@anl.gov>
Argonne National Laboratory
9700 South Cass Avenue
Argonne, Illinois 60439
(630) 252-5444
Ron Parker
2007-08-31 06:25:40 UTC
Permalink
Post by Douglas E. Engert
Post by Ron Parker
2. How do I update jxplorer runtime with new patch files?
I found that while in the top level directory, run "ant dist".
The dist directory will then have the runtime files.
Depending on what system you are on it may or may not be present.
On Solarais 10 it is in /usr/sfw/bin. ant came from Apache.
I assume by distribution you mean jxplorer.jar that I could drop into
the jxplorer/jars directory? If so, could you just send me yours with
this patch applied?

Would appreciate it so much.
Post by Douglas E. Engert
If you are interested in resources/templates/posixAccount/Main.html
and other.html You can create this directory in the cvs before you
run ant.
Post by Ron Parker
Thanks!
-ron
Post by Douglas E. Engert
In order to make the JXplorer easier to use for our account services people,
to add new posixAcocunt entries, I created
templates/posixAccount/Main.html and other.html
The attached patch is against the cvs to allow the HTML viewer to create new entries.
newEntry.setStatus(oldEntry.getStatus());
will copy the status which is new, if the entry does not exist in ldap or normal
if the entry already exists. Thus later when the submit is done it will use ldap add
or ldap modify.
What I have not figured out is how to use the value="xxx" in the
template to provide a default stating value when creating new entries
which would be another nice feature.
Please consider adding these changes to the next distribution.
------------------------------------------------------------------------
Index: src/com/ca/directory/jxplorer/viewer/HTMLTemplateDisplay.java
===================================================================
/cvsroot/jxplorer/javasrc/com/ca/directory/jxplorer/viewer/HTMLTemplateDisplay.java,v
retrieving revision 1.22
diff -u -r1.22 HTMLTemplateDisplay.java
--- src/com/ca/directory/jxplorer/viewer/HTMLTemplateDisplay.java
18 Aug 2005 04:14:25 -0000 1.22
+++ src/com/ca/directory/jxplorer/viewer/HTMLTemplateDisplay.java
15 Aug 2007 14:50:34 -0000
@@ -2517,7 +2517,7 @@
public boolean canCreateEntry()
{
- return false;
+ return true; //DEE was false;
}
public void registerComponents(JMenuBar menu, JToolBar buttons,
JTree tree, JPopupMenu treeMenu, JFrame jx)
@@ -2559,4 +2559,4 @@
}
-}
\ No newline at end of file
+}
Index: src/com/ca/directory/jxplorer/viewer/MyHTMLEditorKit.java
===================================================================
/cvsroot/jxplorer/javasrc/com/ca/directory/jxplorer/viewer/MyHTMLEditorKit.java,v
retrieving revision 1.8
diff -u -r1.8 MyHTMLEditorKit.java
--- src/com/ca/directory/jxplorer/viewer/MyHTMLEditorKit.java 6
Dec 2005 06:27:40 -0000 1.8
+++ src/com/ca/directory/jxplorer/viewer/MyHTMLEditorKit.java 15
Aug 2007 14:50:34 -0000
@@ -62,6 +62,8 @@
DXEntry newEntry = parseData(data,
oldEntry); //TE: make an entry with any changes that the
user may have done (this entry doesn't have a dn yet).
+ newEntry.setStatus(oldEntry.getStatus()); // new or normal
DEE
+
// Must remove the Submit attr so that it doesn't get added...
newEntry.remove(SUBMIT);
@@ -322,4 +324,4 @@
}
}
-}
\ No newline at end of file
+}
------------------------------------------------------------------------
<Main.html>
posixAccount
__________ NOD32 2473 (20070821) Information __________
This message was checked by NOD32 antivirus system.
http://www.eset.com
------------------------------------------------------------------------
<other.html>
posixAccount
cn: and uid: are normally the same.
password: is normally {crypt}NP and will be displayed as e2NyeXB0fU5Q
to lock an account use {crypt}*LK* displayed as e2NyeXB0fSpMSyo=
__________ NOD32 2473 (20070821) Information __________
This message was checked by NOD32 antivirus system.
http://www.eset.com
------------------------------------------------------------------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
__________ NOD32 2473 (20070821) Information __________
This message was checked by NOD32 antivirus system.
http://www.eset.com
------------------------------------------------------------------------
_______________________________________________
Jxplorer-users mailing list
https://lists.sourceforge.net/lists/listinfo/jxplorer-users
__________ NOD32 2473 (20070821) Information __________
This message was checked by NOD32 antivirus system.
http://www.eset.com
--
Ron Parker
Software Creations http://www.scbbs.com
Self-Administration Web Site http://saw.scbbs.com
SDSS Subscription Mgmt Service http://sdss.scbbs.com
Central Ave Dance Ensemble http://www.centralavedance.com
R & B Salsa http://www.randbsalsa.com
--
Ron Parker
Software Creations http://www.scbbs.com
Self-Administration Web Site http://saw.scbbs.com
SDSS Subscription Mgmt Service http://sdss.scbbs.com
Central Ave Dance Ensemble http://www.centralavedance.com
R & B Salsa http://www.randbsalsa.com
Douglas E. Engert
2007-08-31 13:14:40 UTC
Permalink
Post by Ron Parker
Post by Douglas E. Engert
Post by Ron Parker
2. How do I update jxplorer runtime with new patch files?
I found that while in the top level directory, run "ant dist".
The dist directory will then have the runtime files.
Depending on what system you are on it may or may not be present.
On Solarais 10 it is in /usr/sfw/bin. ant came from Apache.
I assume by distribution you mean jxplorer.jar that I could drop into
the jxplorer/jars directory?
No. I meant after you run "/usr/sfw/bin/ant dist" (You said you where
on Solaris 10) there will be directory named dist. Copy the whole directory.

Here is a script to copy the $DIST/dist directory to
a new location, and it will change the absolute path names in
thejxplorer.sh and jxmac.sh to point to the new location, $DISTR
(Note the [ ] is a space and a tab.)

#!/bin/sh
DIST=/afs/.anl.gov/appl/JXplorer-dev
DISTR=/afs/anl.gov/appl/jxplorer-3.2

(cd dist; tar cfv - .) | (cd $DIST; tar xfv - )
sed -e "s?^[ ]OPTJX=/.*? OPTJX=$DISTR/jxplorer?" \
< ./resources/jxplorer.sh \
Post by Ron Parker
$DIST/jxplorer/jxplorer.sh
sed -e "s?^[ ]OPTJX=/.*? OPTJX=$DISTR/jxplorer?" \
< ./resources/jxmac.sh \
Post by Ron Parker
$DIST/jxplorer/jxmac.sh
chmod 755 $DIST/jxplorer/jxplorer.sh \
$DIST/jxplorer/jxmac.sh \
$DIST/jxplorer/jxplorer.bat
Post by Ron Parker
If so, could you just send me yours with
this patch applied?
Would appreciate it so much.
Post by Douglas E. Engert
If you are interested in resources/templates/posixAccount/Main.html
and other.html You can create this directory in the cvs before you
run ant.
Post by Ron Parker
Thanks!
-ron
Post by Douglas E. Engert
In order to make the JXplorer easier to use for our account services people,
to add new posixAcocunt entries, I created
templates/posixAccount/Main.html and other.html
The attached patch is against the cvs to allow the HTML viewer to create new entries.
newEntry.setStatus(oldEntry.getStatus());
will copy the status which is new, if the entry does not exist in ldap or normal
if the entry already exists. Thus later when the submit is done it will use ldap add
or ldap modify.
What I have not figured out is how to use the value="xxx" in the
template to provide a default stating value when creating new entries
which would be another nice feature.
Please consider adding these changes to the next distribution.
------------------------------------------------------------------------
Index: src/com/ca/directory/jxplorer/viewer/HTMLTemplateDisplay.java
===================================================================
/cvsroot/jxplorer/javasrc/com/ca/directory/jxplorer/viewer/HTMLTemplateDisplay.java,v
retrieving revision 1.22
diff -u -r1.22 HTMLTemplateDisplay.java
--- src/com/ca/directory/jxplorer/viewer/HTMLTemplateDisplay.java
18 Aug 2005 04:14:25 -0000 1.22
+++ src/com/ca/directory/jxplorer/viewer/HTMLTemplateDisplay.java
15 Aug 2007 14:50:34 -0000
@@ -2517,7 +2517,7 @@
public boolean canCreateEntry()
{
- return false;
+ return true; //DEE was false;
}
public void registerComponents(JMenuBar menu, JToolBar buttons,
JTree tree, JPopupMenu treeMenu, JFrame jx)
@@ -2559,4 +2559,4 @@
}
-}
\ No newline at end of file
+}
Index: src/com/ca/directory/jxplorer/viewer/MyHTMLEditorKit.java
===================================================================
/cvsroot/jxplorer/javasrc/com/ca/directory/jxplorer/viewer/MyHTMLEditorKit.java,v
retrieving revision 1.8
diff -u -r1.8 MyHTMLEditorKit.java
--- src/com/ca/directory/jxplorer/viewer/MyHTMLEditorKit.java 6
Dec 2005 06:27:40 -0000 1.8
+++ src/com/ca/directory/jxplorer/viewer/MyHTMLEditorKit.java 15
Aug 2007 14:50:34 -0000
@@ -62,6 +62,8 @@
DXEntry newEntry = parseData(data,
oldEntry); //TE: make an entry with any changes that the
user may have done (this entry doesn't have a dn yet).
+ newEntry.setStatus(oldEntry.getStatus()); // new or normal
DEE
+
// Must remove the Submit attr so that it doesn't get added...
newEntry.remove(SUBMIT);
@@ -322,4 +324,4 @@
}
}
-}
\ No newline at end of file
+}
------------------------------------------------------------------------
<Main.html>
posixAccount
__________ NOD32 2473 (20070821) Information __________
This message was checked by NOD32 antivirus system.
http://www.eset.com
------------------------------------------------------------------------
<other.html>
posixAccount
cn: and uid: are normally the same.
password: is normally {crypt}NP and will be displayed as e2NyeXB0fU5Q
to lock an account use {crypt}*LK* displayed as e2NyeXB0fSpMSyo=
__________ NOD32 2473 (20070821) Information __________
This message was checked by NOD32 antivirus system.
http://www.eset.com
------------------------------------------------------------------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
__________ NOD32 2473 (20070821) Information __________
This message was checked by NOD32 antivirus system.
http://www.eset.com
------------------------------------------------------------------------
_______________________________________________
Jxplorer-users mailing list
https://lists.sourceforge.net/lists/listinfo/jxplorer-users
__________ NOD32 2473 (20070821) Information __________
This message was checked by NOD32 antivirus system.
http://www.eset.com
--
Ron Parker
Software Creations http://www.scbbs.com
Self-Administration Web Site http://saw.scbbs.com
SDSS Subscription Mgmt Service http://sdss.scbbs.com
Central Ave Dance Ensemble http://www.centralavedance.com
R & B Salsa http://www.randbsalsa.com
--
Douglas E. Engert <***@anl.gov>
Argonne National Laboratory
9700 South Cass Avenue
Argonne, Illinois 60439
(630) 252-5444
Loading...