mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
- Incorporated build number into version number messages i.e. at server startup, in about dialog and in database.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@3428 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
43
source/java/org/alfresco/web/bean/AboutBean.java
Normal file
43
source/java/org/alfresco/web/bean/AboutBean.java
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
package org.alfresco.web.bean;
|
||||||
|
|
||||||
|
import org.alfresco.service.descriptor.DescriptorService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Simple backing bean used by the about page to display the version.
|
||||||
|
*
|
||||||
|
* @author gavinc
|
||||||
|
*/
|
||||||
|
public class AboutBean
|
||||||
|
{
|
||||||
|
DescriptorService descriptorService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Retrieves the version of the repository.
|
||||||
|
*
|
||||||
|
* @return The version string
|
||||||
|
*/
|
||||||
|
public String getVersion()
|
||||||
|
{
|
||||||
|
return this.descriptorService.getServerDescriptor().getVersion();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Retrieves the edition of the repository.
|
||||||
|
*
|
||||||
|
* @return The edition
|
||||||
|
*/
|
||||||
|
public String getEdition()
|
||||||
|
{
|
||||||
|
return this.descriptorService.getServerDescriptor().getEdition();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the DescriptorService.
|
||||||
|
*
|
||||||
|
* @param descriptorService The DescriptorService
|
||||||
|
*/
|
||||||
|
public void setDescriptorService(DescriptorService descriptorService)
|
||||||
|
{
|
||||||
|
this.descriptorService = descriptorService;
|
||||||
|
}
|
||||||
|
}
|
@@ -95,6 +95,17 @@
|
|||||||
</managed-property>
|
</managed-property>
|
||||||
</managed-bean>
|
</managed-bean>
|
||||||
|
|
||||||
|
<managed-bean>
|
||||||
|
<description>Bean that provides information for the About page</description>
|
||||||
|
<managed-bean-name>AboutBean</managed-bean-name>
|
||||||
|
<managed-bean-class>org.alfresco.web.bean.AboutBean</managed-bean-class>
|
||||||
|
<managed-bean-scope>session</managed-bean-scope>
|
||||||
|
<managed-property>
|
||||||
|
<property-name>descriptorService</property-name>
|
||||||
|
<value>#{DescriptorService}</value>
|
||||||
|
</managed-property>
|
||||||
|
</managed-bean>
|
||||||
|
|
||||||
<managed-bean>
|
<managed-bean>
|
||||||
<description>Bean that manages the dialog framework</description>
|
<description>Bean that manages the dialog framework</description>
|
||||||
<managed-bean-name>DialogManager</managed-bean-name>
|
<managed-bean-name>DialogManager</managed-bean-name>
|
||||||
|
@@ -71,7 +71,7 @@
|
|||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<div class="mainTitle"><h:outputText value="#{msg.title_about}" /></div>
|
<div class="mainTitle"><h:outputText value="#{msg.title_about}" /></div>
|
||||||
<div class="mainSubText"><h:outputText value="#{msg.version}" />: <h:outputText value='#{version["version.edition"]} - v#{version["version.major"]}.#{version["version.minor"]}.#{version["version.revision"]}' /> <h:outputText rendered='#{version["version.label"] != ""}' value='(#{version["version.label"]})' /></div>
|
<div class="mainSubText"><h:outputText value="#{msg.version}" />: <h:outputText value="#{AboutBean.edition}" /> - v<h:outputText value="#{AboutBean.version}" /></div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
Reference in New Issue
Block a user