cancel
Showing results for 
Search instead for 
Did you mean: 

SlingshotUserFactory.java changed?

jriker1
Champ in-the-making
Champ in-the-making
I have downloaded the latest head version and was implementing my customizations that were done in prior versions.  All went well until I tried to compile.  It contained messages like:

  ….site\SlingshotUserFactory.java:114: cannot find symbol
    [javac] symbol  : variable CM_DIVISION
    [javac] location: class org.alfresco.web.site.SlingshotUserFactory
    [javac]             writer.writeValue(CM_DIVISION, user.getDivision());

This worked fine before however now errors compiling.  Changes I made to this file were just:

writer.writeValue(CM_DIVISION, user.getDivision());

If I search the working set for JobTitle which is also in the same file I get the same number of results returned.  The only think I notice is that the includes now are totally different on this class and it's surf based now.  Otherwise looks very similar but not acting the same.
Thanks.

jR
13 REPLIES 13

jriker1
Champ in-the-making
Champ in-the-making
Tried using my new theory but same deal. 

    [javac] symbol  : variable CM_DIVISION
    [javac] location: class org.alfresco.web.site.SlingshotUserFactory
    [javac]             writer.writeValue(CM_DIVISION, user.getDivision());
    [javac]                               ^
    [javac] C:\Users\yarbrsr\workspace\Alfresco3.2r2\projects\slingshot\source\java\org\alfresco\web\site\SlingshotUserFactory.java:117: cannot find symbol
    [javac] symbol  : method getDivision()
    [javac] location: class org.springframework.extensions.surf.site.AlfrescoUser
    [javac]             writer.writeValue(CM_DIVISION, user.getDivision());

There is a reference to

writer.writeValue(CM_INSTANTMSG, user.getInstantMsg());

and anywhere that InstantMsg or instantmsg is referenced in the source code I have injected similar code for Division or division but it still complains it can't be found.  What am I missing here?

Thanks.

JR

jriker1
Champ in-the-making
Champ in-the-making
Buller… Buller… Buller…?

mikeh
Star Contributor
Star Contributor
It's "Bueller"  :wink:

Sorry, I'm not currently up-to-speed with the Spring 3/SURF changes on HEAD and exactly what that implies for customizations yet. I suspect there might be some new override mechanisms you have to put in place for the code that's moved to the Spring 3 jars, but that's a complete guess at the moment.

Mike

jriker1
Champ in-the-making
Champ in-the-making
I did figure it out, the challenge is the java files were stored in JAR files which eclipse wasn't searching.  Wasn't there in the prior head versions I retrieved.  Now I need to figure out how to recompile java files in the jar and save all the class files in a new JAR file which looks like what is being done in the code today.  The ANT script doesn't seem to facilitate this.

Thanks.

JR
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.