cancel
Showing results for 
Search instead for 
Did you mean: 

Aspects with Rest (Alfresco 3.2 Enterprise)

astone123
Champ in-the-making
Champ in-the-making
Hi Everyone.
I wanted to expose a doubt that we are having with a particular version of Alfresco.
I am told that the Enterprise version 3.2 can not be used with webscripts aspects (manage aspects with REST).
Is it right?.
I backward and I used this with webscritps aspects, either through
Js API, or through Java backends. I, for example, I created documents through webscripts and I have added the
aspects that he thought fit.
Are there any restrictions in version 3.2 with the issues and webscritps?

Thank you very much, teachers.
7 REPLIES 7

openpj
Elite Collaborator
Elite Collaborator
I think that you should share with us your implementation with more information about the issue, otherwise we can't support you  Smiley Indifferent

astone123
Champ in-the-making
Champ in-the-making
Thank for you answer.
But the question that I refer: is possible manage aspects whit REST in alfresco 3.2 Enterprise?

Regards.

mrogers
Star Contributor
Star Contributor
What do you mean by "manage aspects"?

loftux
Star Contributor
Star Contributor
If you create your own REST interfaces, theres should be no difference between the Enterprise and Community. http://wiki.alfresco.com/wiki/Web_Scripts

If you are using CMIS, http://wiki.alfresco.com/wiki/CMIS#Aspect_Support, then aspects may not be supported in the version you are using. See http://wiki.alfresco.com/wiki/CMIS#Alfresco_CMIS_Compliance

astone123
Champ in-the-making
Champ in-the-making
Hi.
I want to know if is possible, for example, add an aspect to a content, or delete an aspect by REST with alfresco 3.2 Enterprise.
Regards.

marcoq82
Champ in-the-making
Champ in-the-making
Relating adding an aspect to a content, try using:

boolean addAspect(string aspect)
  
Adds a new aspect to the node. Returns true if the aspect was added successfully, false otherwise. The type is a QName of the aspect to add in either fully qualified or short name form. For example: document.addAspect("cm:translatable");

I succed in developing a web script that upload a document and apply a specific aspect to the document, so it should work for you too.

Relating aspect removal, same considerations for:

boolean removeAspect(string aspect)
    Removes the specified aspect from the node.

Maybe you can find this link useful: http://wiki.alfresco.com/wiki/3.2_JavaScript_API
Hope it helps.

astone123
Champ in-the-making
Champ in-the-making
Thanks Marco.
Regards.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.