<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Alfresco 2.2 API changes in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-2-2-api-changes/m-p/182923#M136053</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, I have upgraded to Alfresco 2.2 from 2.1.5.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It appears that the following API calls have been deprecated:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;AVMUtil.getRemoteDeploymentUsername();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AVMUtil.getRemoteDeploymentPassword();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AVMUtil.getRemoteReceiverRMIPort();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know what these calls have been replaced by in 2.2?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, is there a list of API changes available anywhere?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Sep 2008 13:10:41 GMT</pubDate>
    <dc:creator>jameskinley</dc:creator>
    <dc:date>2008-09-04T13:10:41Z</dc:date>
    <item>
      <title>Alfresco 2.2 API changes</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-2-2-api-changes/m-p/182923#M136053</link>
      <description>Hi, I have upgraded to Alfresco 2.2 from 2.1.5.It appears that the following API calls have been deprecated:AVMUtil.getRemoteDeploymentUsername();AVMUtil.getRemoteDeploymentPassword();AVMUtil.getRemoteReceiverRMIPort();Does anyone know what these calls have been replaced by in 2.2?Also, is there a l</description>
      <pubDate>Thu, 04 Sep 2008 13:10:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-2-2-api-changes/m-p/182923#M136053</guid>
      <dc:creator>jameskinley</dc:creator>
      <dc:date>2008-09-04T13:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco 2.2 API changes</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-2-2-api-changes/m-p/182924#M136054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Alfresco 2.2 added a new Deployment Configuration Wizard in the Create Web Project Wizard. You can find more information on this at &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Deployment" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Deployment&lt;/A&gt;&lt;SPAN&gt;. Remote server details are configured via the wizard and no set in web-client-config-wcm.xml. Hence why the methods are deprecated. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The AVMDeployWebsiteAction does not require the remote user details or port details any more as it looks it up for each remote server (prior to 2.2 all remote servers used the same username and password). As long as you've updated your website project using the new wizard with all the server details and your deployment code is using AVMDeployWebsiteAction (and not AVMDeploySnapshotAction) you should be fine. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And no, we are not aware of a list of all the API changes. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2008 14:41:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-2-2-api-changes/m-p/182924#M136054</guid>
      <dc:creator>zaizi</dc:creator>
      <dc:date>2008-09-04T14:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco 2.2 API changes</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-2-2-api-changes/m-p/182925#M136055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The trouble is our publishing code has been implemented by creating our own publishing server wrapper objects. We have been selecting the "deployto" QNAME from the web project properties but this no longer exists (because of the new wizard).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Instead of re-writing all of our publishing code (which would be nice but we do not have the time) we need to get the configured server properties from Alfresco and create our wrapper objects to pass through to the deployer code. Is there an API that can do this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2008 14:54:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-2-2-api-changes/m-p/182925#M136055</guid>
      <dc:creator>jameskinley</dc:creator>
      <dc:date>2008-09-04T14:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco 2.2 API changes</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-2-2-api-changes/m-p/182926#M136056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Take a look at org.alfresco.repo.avm.actions.AVMDeployWebsiteAction. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // get the NodeRef representing the server to deploy to&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NodeRef serverRef = (NodeRef)action.getParameterValue(PARAM_SERVER);&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;and then get the properties;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // get the other data from the deploymentserver object&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Map&amp;lt;QName, Serializable&amp;gt; serverProps = nodeService.getProperties(serverRef);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; String serverUri = calculateServerUri(serverProps);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; String host = (String)serverProps.get(WCMAppModel.PROP_DEPLOYSERVERHOST);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Integer port = (Integer)serverProps.get(WCMAppModel.PROP_DEPLOYSERVERPORT);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; String remoteUsername = (String)serverProps.get(WCMAppModel.PROP_DEPLOYSERVERUSERNAME);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; String remotePassword = (String)serverProps.get(WCMAppModel.PROP_DEPLOYSERVERPASSWORD);&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2008 15:22:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-2-2-api-changes/m-p/182926#M136056</guid>
      <dc:creator>zaizi</dc:creator>
      <dc:date>2008-09-04T15:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco 2.2 API changes</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-2-2-api-changes/m-p/182927#M136057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thats great thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One question - is there a way to get the server noderefs from the repository?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2008 15:35:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-2-2-api-changes/m-p/182927#M136057</guid>
      <dc:creator>jameskinley</dc:creator>
      <dc:date>2008-09-04T15:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco 2.2 API changes</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-2-2-api-changes/m-p/182928#M136058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The configured servers for a Web Project are child associations to the web project node. The following code will return the servers where nodeRef is the nodeRef of your web project. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;List&amp;lt;ChildAssociationRef&amp;gt; serverRefs = getNodeService().getChildAssocs(&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nodeRef, WCMAppModel.ASSOC_DEPLOYMENTSERVER, RegexQNamePattern.MATCH_ALL);&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2008 15:49:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-2-2-api-changes/m-p/182928#M136058</guid>
      <dc:creator>zaizi</dc:creator>
      <dc:date>2008-09-04T15:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco 2.2 API changes</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-2-2-api-changes/m-p/182929#M136059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks very much for your help. The publishing is now working in 2.2.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2008 16:31:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-2-2-api-changes/m-p/182929#M136059</guid>
      <dc:creator>jameskinley</dc:creator>
      <dc:date>2008-09-04T16:31:58Z</dc:date>
    </item>
  </channel>
</rss>

