mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@3428 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
44 lines
930 B
Java
44 lines
930 B
Java
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;
|
|
}
|
|
}
|