Ron DiFrango
Sep 16 2009
Alfresco Integration with GSA
by Ron DiFrango
In order to provide searching within the portal a strategy had to be defined with how to integrate Alfresco with GSA. There were two approaches considered:
1. Utilize the traditional approach and have GSA crawl Alfresco through either a webscript mechanism or via CIFS.
2. Utilize the GSA Feed based approach.
After careful review we decided upon the feed base approach for the following reasons:
1. Meta Data: In order to support the Faceted searching, we need to find a way to attach metadata to each content item. Given that our HTML code is just snippets and does not contain a header with this information and that we are indexing documents, the only way to reliably accomplish this was via the feed.
Aug 18 2009
Alfresco Impersonation
by Ron DiFrango
On my current project, we are using Alfresco and working on an integration with JBoss Portal. In this case we were building a component that allowed for the browsing, uploading, moving, renaming, and deleting of files. We had built all the Alfresco Web Scripts to support these operations. In order to ensure the proper auditing of the changes, we needed to implement a WebScripts component that performed impersonation of the user that was executing the action. After some Google searching, we found the following common solution to the problem:
public String impersonate(String username) {
String currentUser = AuthenticationUtil.getCurrentUserName();
Feb 27 2009
Alfresco Web Forms Integration - Mock JSF Faces Context
by Ron DiFrango
On my current project, we are using Alfresco and working on an integration with JBoss Portal. In particular, we were creating our own version of Alfresco WebForms editor that is built into their web client.
Feb 23 2009
Posting JSON with Commons HTTPClient and XStream
by Ron DiFrango
I recently had an occasion where I had to perform an HTTP POST with JSON data from a Java service class as oppose to Javascript. No amount of Google searches turned up the answer I was after. Here are the steps I took to do so:
STEP 1 - Handle HTTP Post
The project I am working we were already using Commons HTTPClient which has a PostMethod class that peforms an HTTP Post. Here is the code to setup the post:
HttpClient clientService = new HttpClient();
PostMethod post = new PostMethod();
Tagged: commons, httpclient, Java, json, xstream
Nov 26 2007
Where The Rubber Meets The Road With Your SOA Domain Model
by Ron DiFrango
Categories
Popular Tags
Disclaimer
The words and opinions expressed here are those of each article's respective author, and do not necessarily represent the views of CapTech Ventures.