com.sapportals.wcm.service.checkout

Interface ICheckout


public interface ICheckout


Field Summary
static String CHECKOUT_MODE_AUTOMATICALLY
           
static String CHECKOUT_MODE_USER_DEFINED_PATH
           
 
Method Summary
 boolean canCancelCheckout(IResource resource)
          Checks whether the resource can be checkout cancelled by the current user
 boolean cancelCheckout(IResource resource)
           
 boolean canCheckin(IResource resource)
          Checks whether the resource can be checked in by the current user
 boolean checkin(IResource resource)
          Deletes a checkout item belonging to a resource
 boolean checkout(IResource resource, String localhost, String localFile, String checkoutMode)
          Adds a checkout item to the specified resource.
 String getCheckoutHost(IResource resource)
          Returns the host to which the file is checked out to
 String getCheckoutMode(IResource resource)
          Gets the current checkout status
 String getCheckoutPath(IResource resource)
          Returns the path to which the file is checked out to
 com.sapportals.portal.security.usermanagement.IUser getCheckOutUser(IResource resource)
          Returns the user who checked out the item
 boolean isCheckedOut(IResource resource)
          Returns flag, whether the resource is checked out or not
 boolean isCheckoutEnable(IResource resource)
          Checks whether a resource can be checked out or not
 void setCheckoutMode(IResource resource, String localhost, String localFile, String checkoutMode)
          Sets a checkout status
 

Field Detail

CHECKOUT_MODE_USER_DEFINED_PATH

public static final String CHECKOUT_MODE_USER_DEFINED_PATH
See Also:
Constant Field Values

CHECKOUT_MODE_AUTOMATICALLY

public static final String CHECKOUT_MODE_AUTOMATICALLY
See Also:
Constant Field Values
Method Detail

isCheckoutEnable

public boolean isCheckoutEnable(IResource resource)
                         throws WcmException
Checks whether a resource can be checked out or not

Throws:
WcmException

isCheckedOut

public boolean isCheckedOut(IResource resource)
                     throws WcmException
Returns flag, whether the resource is checked out or not

Throws:
WcmException

getCheckOutUser

public com.sapportals.portal.security.usermanagement.IUser getCheckOutUser(IResource resource)
                                                                    throws WcmException
Returns the user who checked out the item

Throws:
WcmException

checkout

public boolean checkout(IResource resource,
                        String localhost,
                        String localFile,
                        String checkoutMode)
                 throws WcmException
Adds a checkout item to the specified resource. The responisble of the checked out resource is identified by the resource context.

Parameters:
resource - the resource for which the feedback is given
localFile - path of the file to create
localhost - host to which the file will be checked out
Returns:
Boolean to indicate whether storage of the checkout item was successful or failed
Throws:
WcmException

canCancelCheckout

public boolean canCancelCheckout(IResource resource)
                          throws WcmException
Checks whether the resource can be checkout cancelled by the current user

Throws:
WcmException

cancelCheckout

public boolean cancelCheckout(IResource resource)
                       throws WcmException
Throws:
WcmException

canCheckin

public boolean canCheckin(IResource resource)
                   throws WcmException
Checks whether the resource can be checked in by the current user

Throws:
WcmException

checkin

public boolean checkin(IResource resource)
                throws WcmException
Deletes a checkout item belonging to a resource

Parameters:
resource - resource for which the checkout item exists
Returns:
Boolean to indicate whether deletion of the checkout item was successful or failed
Throws:
WcmException

setCheckoutMode

public void setCheckoutMode(IResource resource,
                            String localhost,
                            String localFile,
                            String checkoutMode)
                     throws WcmException
Sets a checkout status

Parameters:
checkoutMode - if set to user defined path the user will be asked for the checked out resource while uploading the edited version. If the status is set to automatically the resource will be uploaded without user interaction. In this case the resource should not be moved away from the storing position.
Throws:
WcmException

getCheckoutMode

public String getCheckoutMode(IResource resource)
                       throws WcmException
Gets the current checkout status

Throws:
WcmException

getCheckoutHost

public String getCheckoutHost(IResource resource)
                       throws WcmException
Returns the host to which the file is checked out to

Throws:
WcmException

getCheckoutPath

public String getCheckoutPath(IResource resource)
                       throws WcmException
Returns the path to which the file is checked out to

Throws:
WcmException


Copyright 2006 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Microsoft, Windows, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. Oracle is a registered trademark of Oracle Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Sun Microsystems, Inc. JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. MaxDB is a trademark of MySQL AB, Sweden. SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary. These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.