mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
125603 rmunteanu: Merged 5.1.1 (5.1.1) to 5.1.N (5.1.2) 125484 slanglois: MNT-16155 Update source headers - remove old Copyrights from Java and JSP dource files git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@125781 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
48 lines
1.3 KiB
Java
48 lines
1.3 KiB
Java
package org.alfresco.web.bean.coci;
|
|
|
|
import javax.faces.context.FacesContext;
|
|
|
|
import org.alfresco.web.app.Application;
|
|
|
|
public class CCCheckinFileDialog extends CheckinCheckoutDialog
|
|
{
|
|
|
|
private static final long serialVersionUID = -3591701539727090905L;
|
|
|
|
private static final String MSG_CHECK_IN = "check_in";
|
|
private final static String MSG_LEFT_QUOTE = "left_qoute";
|
|
private final static String MSG_RIGHT_QUOTE = "right_quote";
|
|
|
|
@Override
|
|
protected String finishImpl(FacesContext context, String outcome) throws Exception
|
|
{
|
|
return checkinFileOK(context, outcome);
|
|
}
|
|
|
|
@Override
|
|
public String getFinishButtonLabel()
|
|
{
|
|
return Application.getMessage(FacesContext.getCurrentInstance(), MSG_CHECK_IN);
|
|
}
|
|
|
|
@Override
|
|
public String getContainerTitle()
|
|
{
|
|
FacesContext fc = FacesContext.getCurrentInstance();
|
|
return Application.getMessage(fc, MSG_CHECK_IN) + " " + Application.getMessage(fc, MSG_LEFT_QUOTE)
|
|
+ property.getDocument().getName() + Application.getMessage(fc, MSG_RIGHT_QUOTE);
|
|
}
|
|
|
|
@Override
|
|
public boolean getFinishButtonDisabled()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
@Override
|
|
protected String getErrorOutcome(Throwable exception)
|
|
{
|
|
return "dialog:close";
|
|
}
|
|
}
|