mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
125783 rmunteanu: Merged 5.1.N (5.1.2) to 5.2.N (5.2.1) 125605 rmunteanu: Merged 5.1.1 (5.1.1) to 5.1.N (5.1.2) 125498 slanglois: MNT-16155 Update source headers - remove svn:eol-style property on Java and JSP source files git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@127809 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
62 lines
1.7 KiB
Java
62 lines
1.7 KiB
Java
package org.alfresco.web.bean.admin;
|
|
|
|
import javax.faces.context.FacesContext;
|
|
|
|
import org.alfresco.web.app.Application;
|
|
import org.alfresco.web.bean.AboutBean;
|
|
import org.alfresco.web.bean.dialog.BaseDialogBean;
|
|
|
|
/**
|
|
* Implementation for the SystemInfo dialog.
|
|
*
|
|
* @author gavinc
|
|
*/
|
|
public class ShowSystemInfoDialog extends BaseDialogBean
|
|
{
|
|
private static final long serialVersionUID = 1328587489092603676L;
|
|
|
|
private static final String MSG_CURRENT_USER = "current_user";
|
|
private static final String MSG_CLOSE = "close";
|
|
private static final String MSG_VERSION = "version";
|
|
|
|
protected AboutBean aboutBean;
|
|
|
|
@Override
|
|
protected String finishImpl(FacesContext context, String outcome) throws Exception
|
|
{
|
|
return null;
|
|
}
|
|
|
|
public void setAboutBean(AboutBean aboutBean)
|
|
{
|
|
this.aboutBean = aboutBean;
|
|
}
|
|
|
|
@Override
|
|
public String getContainerSubTitle()
|
|
{
|
|
return Application.getMessage(FacesContext.getCurrentInstance(), MSG_CURRENT_USER) + ": " +
|
|
this.navigator.getCurrentUser().getUserName();
|
|
}
|
|
|
|
@Override
|
|
public String getContainerDescription()
|
|
{
|
|
StringBuilder builder = new StringBuilder(Application.getMessage(
|
|
FacesContext.getCurrentInstance(), MSG_VERSION));
|
|
builder.append(": ");
|
|
builder.append(this.aboutBean.getEdition());
|
|
builder.append(" - v");
|
|
builder.append(this.aboutBean.getVersion());
|
|
|
|
return builder.toString();
|
|
}
|
|
|
|
@Override
|
|
public String getCancelButtonLabel()
|
|
{
|
|
return Application.getMessage(FacesContext.getCurrentInstance(), MSG_CLOSE);
|
|
}
|
|
|
|
}
|