public class OwStandardCheckInHandler extends Object implements OwCheckInHandler
Standard implementation for OwCheckInHandler.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
| Modifier and Type | Field and Description |
|---|---|
static String |
CHECKIN_MODES_CONTROL_NAME
name of the HTML release checkbox
|
static String |
CHECKIN_RELEASE_CONTROL_NAME
name of the HTML release checkbox
|
protected boolean |
m_checkInAsMajorVersion
major version check in flag
|
protected List |
m_checkInModes
check in modes list
|
protected boolean |
m_displayReleaseBox
flag for displaying release checkbox
|
protected Object |
m_ModeObject
current checkin mode selection
|
protected boolean |
m_releaseVersion
release version flag
|
| Constructor and Description |
|---|
OwStandardCheckInHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
computeCheckinOptions(javax.servlet.http.HttpServletRequest request_p)
Compute the checkin options.
|
Object |
getCheckinModeObject()
Get selected check in mode.
|
boolean |
isReleaseVersion()
Getter for release version flag.
|
void |
renderCheckInModes(Writer w_p,
OwMainAppContext context_p)
Render the check in modes.
|
void |
renderCheckInOptions(Writer w_p,
OwMainAppContext context_p)
Render the check in option (checkbox for creating a released version)
|
void |
setCheckInOptions(List modes_p,
boolean fDisplayReleaseBox_p)
Set the check in options.
|
void |
setCheckInVersionMajor(boolean checkInAsMajorVersion_p)
set if check-in Version is major or minor
|
protected List m_checkInModes
protected boolean m_displayReleaseBox
protected boolean m_checkInAsMajorVersion
protected boolean m_releaseVersion
protected Object m_ModeObject
public static final String CHECKIN_RELEASE_CONTROL_NAME
public static final String CHECKIN_MODES_CONTROL_NAME
public void setCheckInOptions(List modes_p, boolean fDisplayReleaseBox_p) throws Exception
OwCheckInHandlersetCheckInOptions in interface OwCheckInHandlermodes_p - - the list of checkin objects.fDisplayReleaseBox_p - - flag for displaying a check box for release.Exceptionpublic void setCheckInVersionMajor(boolean checkInAsMajorVersion_p)
setCheckInVersionMajor in interface OwCheckInHandlercheckInAsMajorVersion_p - public void computeCheckinOptions(javax.servlet.http.HttpServletRequest request_p)
computeCheckinOptions in interface OwCheckInHandlerrequest_p - - the HttpServletRequest objectpublic Object getCheckinModeObject()
OwCheckInHandlergetCheckinModeObject in interface OwCheckInHandlerpublic boolean isReleaseVersion()
OwCheckInHandlerisReleaseVersion in interface OwCheckInHandlertrue if the created document is releasedpublic void renderCheckInOptions(Writer w_p, OwMainAppContext context_p) throws Exception
OwCheckInHandlerrenderCheckInOptions in interface OwCheckInHandlerw_p - - the Writer objectcontext_p - - the OwMainAppContext objectExceptionpublic void renderCheckInModes(Writer w_p, OwMainAppContext context_p) throws Exception
OwCheckInHandlerrenderCheckInModes in interface OwCheckInHandlerExceptionCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.