mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Fixed AR-451: Display both current version of repo and installed version of repo
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2485 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -25,6 +25,7 @@ import javax.faces.context.FacesContext;
|
||||
import org.alfresco.repo.admin.patch.PatchInfo;
|
||||
import org.alfresco.repo.admin.patch.PatchService;
|
||||
import org.alfresco.service.ServiceRegistry;
|
||||
import org.alfresco.service.descriptor.Descriptor;
|
||||
import org.alfresco.service.descriptor.DescriptorService;
|
||||
import org.alfresco.web.app.Application;
|
||||
import org.alfresco.web.bean.repository.Repository;
|
||||
@@ -59,8 +60,13 @@ public class UIRepositoryProperties extends BaseDebugComponent
|
||||
ServiceRegistry services = Repository.getServiceRegistry(fc);
|
||||
DescriptorService descriptorService = services.getDescriptorService();
|
||||
|
||||
properties.put("version", descriptorService.getRepositoryDescriptor().getVersion());
|
||||
properties.put("schema", descriptorService.getRepositoryDescriptor().getSchema());
|
||||
Descriptor installedRepoDescriptor = descriptorService.getInstalledRepositoryDescriptor();
|
||||
properties.put("Installed Version", installedRepoDescriptor.getVersion());
|
||||
properties.put("Installed Schema", installedRepoDescriptor.getSchema());
|
||||
|
||||
Descriptor systemDescriptor = descriptorService.getServerDescriptor();
|
||||
properties.put("Server Version", systemDescriptor.getVersion());
|
||||
properties.put("Server Schema", systemDescriptor.getSchema());
|
||||
|
||||
WebApplicationContext cx = FacesContextUtils.getRequiredWebApplicationContext(fc);
|
||||
PatchService patchService = (PatchService)cx.getBean("PatchService");
|
||||
|
Reference in New Issue
Block a user