Hi All,
This is my effort to further elucidate my question in the previous posts.I hope this question will get me the required response.
I had followed a Hello World example a week back to try out simple customizations inside of Webtop.
One of my previous posts https://community.emc.com/thread/100538?tstart=0 and its solution enables me to understand the mechanics of actions,components and classes.
Since then i have graduated to a place where i need to provide the evidance of successful connection to Docbase and also an attempt at content transfer.
That was when i gathered information regarding DFC from its guide for 6.5 and its chapters "Creating a Test Application" and "Working with Objects" seem to be the elusive solution i am seeking(Hopefully:P).
IDfSysObject.getContent()
as explained on Page 77 of the Guide is the API for accessing content.
The chapter on "Creating a Test Application" has a swing based application (which i presume is meant to be run standalone from the IDE).
But the piece of code from that example which can help me out is :
private Boolean createSessionManager() {
try {
// The only class we instantiate directly is DfClientX.
DfClientX clientx = new DfClientX();
// Most objects are created using factory methods in interfaces.
// Create a client based on the DfClientX object.
IDfClient client = clientx.getLocalClient();
// Create a session manager based on the local client.
m_sessionManager = client.newSessionManager();
// Set the user information in the login information variable.
IDfLoginInfo loginInfo = clientx.getLoginInfo();
loginInfo.setUser(jTextField_userName.getText());
loginInfo.setPassword(jTextField_password.getText());
// Set the identity of the session manager object based on the repository
// name and login information.
m_sessionManager.setIdentity(
jTextField_repositoryName.getText(), loginInfo
);
return true;
}
catch (Exception ex)
{
ex.printStackTrace();
jLabel_messages.setText("Failed to instantiate Session Manager.");
return false;
}
}
Finally to my question(s):
Is there a way where i can get the above method into a java class file, get it called when the user clicks a link from menubar on the Webtop?Can sysouts in the above method be seen on the Tomcat console?
Should i change the <execution class=""> definition inside my action.xml so that the method in the class gets run?
Do feel free to ask for clarifications if my question is not coherent. I am in desperate need of your guidance.Please help.
Thank You