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
OwCheckInHandler
setCheckInOptions
in interface OwCheckInHandler
modes_p
- - the list of checkin objects.fDisplayReleaseBox_p
- - flag for displaying a check box for release.Exception
public void setCheckInVersionMajor(boolean checkInAsMajorVersion_p)
setCheckInVersionMajor
in interface OwCheckInHandler
checkInAsMajorVersion_p
- public void computeCheckinOptions(javax.servlet.http.HttpServletRequest request_p)
computeCheckinOptions
in interface OwCheckInHandler
request_p
- - the HttpServletRequest
objectpublic Object getCheckinModeObject()
OwCheckInHandler
getCheckinModeObject
in interface OwCheckInHandler
public boolean isReleaseVersion()
OwCheckInHandler
isReleaseVersion
in interface OwCheckInHandler
true
if the created document is releasedpublic void renderCheckInOptions(Writer w_p, OwMainAppContext context_p) throws Exception
OwCheckInHandler
renderCheckInOptions
in interface OwCheckInHandler
w_p
- - the Writer
objectcontext_p
- - the OwMainAppContext
objectException
public void renderCheckInModes(Writer w_p, OwMainAppContext context_p) throws Exception
OwCheckInHandler
renderCheckInModes
in interface OwCheckInHandler
Exception
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.