Post by Douglas E. EngertIn 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