cancel
Showing results for 
Search instead for 
Did you mean: 

Web application suggestion

inspiron82
Champ in-the-making
Champ in-the-making
Hi,
I hope that this is the right section of the forum, in case feel free to move my post in the right one.

I have to make a web application that just have two jsp. They must be like original login.jsp and browse.jsp. I don't need need any other Alfresco's features.
I just need to login, see documents that my user can see and download them, logout, and audit login and and download(if possible).

Which is the best way?

I hope you can help me.

Thanks.
16 REPLIES 16

inspiron82
Champ in-the-making
Champ in-the-making
can u help me please?
It's important. Can u just tell em which API i have to use?
thanks

openpj
Elite Collaborator
Elite Collaborator
I think that you can use the same way used in Share UI, but now there isn't any documentation about it, but it is based on Alfresco Webscripts.
So you must unpacking share.war application and you can see how Alfresco has used Webscripts to implements all the features you need in Share.

Hope this helps.

inspiron82
Champ in-the-making
Champ in-the-making
I think that you can use the same way used in Share UI, but now there isn't any documentation about it, but it is based on Alfresco Webscripts.
So you must unpacking share.war application and you can see how Alfresco has used Webscripts to implements all the features you need in Share.

Hope this helps.

thank you.
Can u be more specific and tell what I have to look for?

The problem is that i need to have an alfresco's instance with default layout, plus an addtional login.jsp and browse.jsp with a custom layout. The problem is that to have this custom layout i have to modify alfresco-web-client.jar. So i have to use default alfresco-web-client.jar for the default layout, and the modified     
alfresco-web-client.jar for the two jsp with custom layout. Is there a way to tell the default jsp to use the default alfresco-web-client.jar and the two jsp with custom layout to use the modified alfresco-web-client.jar? I have to use ONE instance of alfresco. So i must have all the two alfresco-web-client.jar in the lib folder.

Any suggestion would be appreciated as i have to complete a project ASAP.
thanks a lot.

openpj
Elite Collaborator
Elite Collaborator
You can't customize Alfresco Web Client (JSF Client) in that way, you need to use JSF to extend this application correctly.
If you want to extend JSF Client you must extend Alfresco, you could not modify Alfresco directly!

Here some informations:
http://wiki.alfresco.com/wiki/Web_Client_Customisation_Guide

Hope this helps.

inspiron82
Champ in-the-making
Champ in-the-making
thank you.
Another question.
Is there some API that let me browse folder and files, and let me download them?

openpj
Elite Collaborator
Elite Collaborator
Yes.
You can use Webscripts API with your own HTTP API or you can use some Webscript provided in Alfresco:
http://wiki.alfresco.com/wiki/Web_Scripts

You can use Web Services API (Java stub provided by Alfresco as a JAR library):
http://wiki.alfresco.com/wiki/Alfresco_Content_Management_Web_Services

You can use CMIS API:
http://wiki.alfresco.com/wiki/CMIS

You can use also JCR.

Hope this helps.

inspiron82
Champ in-the-making
Champ in-the-making
thanks a lot.
Can u please tell me which is the easiest way?
And can u eventually post some example code to browse folders and files?
thanks a lot.

hyperation
Champ on-the-rise
Champ on-the-rise
Hi

I'm actually trying to do the same thing.

Would much appreciate if someone can give us more detail.

Thanks
Smiley Happy

openpj
Elite Collaborator
Elite Collaborator
Web Services API
If you need to implement a SOA service with Alfresco and you need to orchestrate many operations with repository with a unique call you can use Web Services API.
Web Services API allow to create a list of repository calls by operation type, all the operations are based on Content Manipulation Language (CML) provided by Alfresco.
Web Service Client can be used as a library in your Java project and you can invoke methods to call the repository.

WebScript API
Alfresco provide many WebScript deployed in with many features that you can call with an HTTP call.
WebScript allows you to invoke or create your own HTTP API.
To call an Alfresco WebScript you need only to make an HTTP call to Alfresco WebScript url, WebScript allow you to manage repository with HTTP methods (POST,GET,PUT,DELETE) as a REST API.
This is very easy to use but you must be sure that one of the WebScript actually provided by Alfresco it is what you need, otherwise you need to create your own webscript.
If you need to create your own WebScript you can implement it using JavaScript API (server side) provided by Alfresco or using Java directly.
To browse all the webscript actually provided by Alfresco:
http://localhost:8080/alfresco/service/

JCR API
This API is dedicated only for JEE projects and it is compliant to JCR Specs.
For me is not easy to use JCR  Smiley Indifferent

CMIS API
CMIS is the latest specs dedicated to interoperability of repositories, using it you can create client implementations that works with all the vendors that implement CMIS.
There are two bindings of this interface: Web Services and REST.
Actually Alfresco provides the most updated implementation of this specs but CMIS is now at 0.6 so I think that only for the end of the year we could create stable interfaces for production environment.

Hope this helps.