cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco custom Aspect

subhajit
Champ in-the-making
Champ in-the-making
Hi all,

I have created one Aspect for bulk upload in alfresco version 'Community - v3.4.0'. Everything is working fine, user has also able to enter metadata into those aspect property fields. My aspect is something like,

<aspects>
      <aspect name="dm:AltisapAspect">
         <title>Proposal Aspect</title>
         <properties>
            <property name="dm:Binder">
               <type>d:text</type>
               <mandatory>false</mandatory>
          <index enabled="true">
            <atomic>false</atomic>
            <stored>true</stored>
            <tokenised>false</tokenised>
          </index>
            </property>
</properties>
</aspects>

Now I want to get those metadata from my jsp page. I have tried to run lucene query to achieve that, "+ASPECT:\"{dm:AltisapAspect.model}Binder\""+" TEXT:\"BinderValue\"" but not getting any result.

Please help me out.
4 REPLIES 4

mrogers
Star Contributor
Star Contributor
{dm:AltisapAspect.model} does not look right.   You should use the fully qualified namespace within curley braces, that looks like a mix of full and prefixed namespace.

subhajit
Champ in-the-making
Champ in-the-making
Thanks for ur reply. What I actually want is that, when a user click a particular node that time I want to get all custom properties against "AltisapAspect". Can you please tell me what will be my lucene query?

Thanks,
subhajit

mrogers
Star Contributor
Star Contributor
Sorry I don't understand what you are asking.

What do you mean by "get those metadata from my jsp page."   Which metadata?   And what is the interaction with the jsp page?

"click a particular node"  again what do you mean by this?  Are you using Alfresco Explorer or Alfresco Share or some other application.   And do you want "all custom properties" i.e. something to do with the aspect definiton or the values of some of those properties contained by the aspect?    Perhaps a worked example of what you want would help.

subhajit
Champ in-the-making
Champ in-the-making
Oh sorry, let me explain.
I made one interface in jsp. I am retrieving all nodes or folder name under sites(in alfresco) with a custom aspect property. Now in this interface if a user click on any node then I want to retrieve all the custom aspect property values against that node.

Is it ok now?

Thanks,
subhajit