cancel
Showing results for 
Search instead for 
Did you mean: 

Web application over Alfresco instance

aique
Champ in-the-making
Champ in-the-making
Hi!.

I'm making a project and I'm really new in Alfresco. I need to make a web application in J2EE which send the login info to Alfresco and load and search content from an instance of Alfresco running background.

Basically, my J2EE application will be the frontend of Alfresco and the use cases must be login, upload and search.

I think that I have to create a J2EE application and use the API provided by alfresco to make this opperations, but I don't know exactly the first steps to do that, the Alfresco components I'll use.

Anyone can help me?, any idea will be great.

Thanks! (sorry about my english).
2 REPLIES 2

hsohaib
Champ on-the-rise
Champ on-the-rise
The Alfresco web service api will be helpful in your case, check these links :

wiki : http://wiki.alfresco.com/wiki/Alfresco_Content_Management_Web_Services .
IngresTutorial Alfresco Web Service API : http://wiki.alfresco.com/wiki/IngresTutorial_Alfresco_Web_Service_API_for_Java .

Using the webservice api you can add,remove and query content, and anything else with alfresco, and won't need any prior experience with web services.

Example of using Lucene to query the repository :


public static Node[] executeQuery(String luceneQuery) {
        try {
            RepositoryServiceSoapBindingStub repositoryService = WebServiceFactory.getRepositoryService();
            Query query = new Query(Constants.QUERY_LANG_LUCENE, luceneQuery);

            // Execute the query

            return repositoryService.get(new Predicate(null, STORE, query));

        } catch (RepositoryFault ex) {
            Logger.getLogger(Searcher.class.getName()).log(Level.SEVERE, null, ex);
        } catch (RemoteException ex) {
            Logger.getLogger(Searcher.class.getName()).log(Level.SEVERE, null, ex);
        }
        return null;
    }

lynnders
Champ in-the-making
Champ in-the-making
We used an application called Appfuse for our authentication. You can download it from here
https://appfuse.dev.java.net/servlets/NewsItemView?newsItemID=5991

We then called webscripts to retreive the data.