|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface for version controlled resources (see RFC3253 ).
Copyright (c) SAP AG 2002-2004
| Field Summary | |
static IName |
AUTOVERSIONING_MODE_CHECKOUT
|
static IName |
AUTOVERSIONING_MODE_CHECKOUT_CHECKIN
See RFC3253, section 3.2.2 |
static IName |
AUTOVERSIONING_MODE_CHECKOUT_UNLOCKED_CHECKIN
|
static IName |
AUTOVERSIONING_MODE_LOCKED_CHECKOUT
|
static IName |
AUTOVERSIONING_MODE_NONE
|
| Method Summary | |
ICheckInInfo2 |
checkIn(IContent newContent,
IPropertyMap properties,
boolean ignorePropertyFailures,
RID expectedCheckInRID,
boolean forkOk,
boolean keepCheckedOut)
Check in a new version of the resource with new content and/or properties. |
ICheckOutInfo2 |
checkOut(boolean applyToVersion,
boolean forkOk)
Checkout the version controlled resource or it's checked-in version. |
IName |
getAutoVersioningMode()
|
IResource |
getCheckedInResource()
|
RID |
getCheckedInRID()
|
IResource |
getCheckedOutResource()
|
RID |
getCheckedOutRID()
|
java.util.Set |
getCheckInForkBehaviour()
|
java.util.Set |
getCheckOutForkBehaviour()
|
java.util.Set |
getEclipsedSet()
(version controlled collection only) |
IResourceList |
getPredecessorResources()
|
IRidSet |
getPredecessorRIDs()
|
IResource |
getVersionHistoryResource()
|
RID |
getVersionHistoryRID()
|
IRidSet |
updateFromVersion(IResource version)
update content and dead properties from a specific version. |
IRidSet |
updateFromVersion(RID version)
update content and dead properties from a specific version. |
| Field Detail |
public static final IName AUTOVERSIONING_MODE_CHECKOUT_CHECKIN
public static final IName AUTOVERSIONING_MODE_CHECKOUT_UNLOCKED_CHECKIN
public static final IName AUTOVERSIONING_MODE_CHECKOUT
public static final IName AUTOVERSIONING_MODE_LOCKED_CHECKOUT
public static final IName AUTOVERSIONING_MODE_NONE
| Method Detail |
public ICheckInInfo2 checkIn(IContent newContent,
IPropertyMap properties,
boolean ignorePropertyFailures,
RID expectedCheckInRID,
boolean forkOk,
boolean keepCheckedOut)
throws ResourceException
newContent - The new content, can be nullproperties - The new properties, can be nullignorePropertyFailures - Ignore exceptions if some or all properties
could not be set/removedexpectedCheckInRID - Create the new version with this RID. The
check-in may fail if the new version RID would be different.
In this case an ExpectedCheckInRID exception will be thrown which will
contain a new "expected check-in RID". To make sure that the
expectedCheckInRID actually was used, it needs to be compared
to the RID returned by ICheckInInfo.getRevisionRID() (this is
because a repository may check-in the resource although it couldn't
use the expectedCheckInRID).forkOk - set to true if it's ok to cause a fork in the
version history (may be rejected nevertheless if the checkin fork
behaviour dictates this).keepCheckedOut - keep the resource checked outResourceException - Exception raised in failure situationcheckOut(boolean, boolean)
public ICheckOutInfo2 checkOut(boolean applyToVersion,
boolean forkOk)
throws ResourceException
applyToVersion - checkout the checked-in version of the version
controlled resource (resource must be checked-in!).forkOk - set to true if it's ok to cause a fork in the
version history (may be rejected nevertheless if the checkout fork
behaviour dictates this).ResourceException - Exception raised in failure situation
public IName getAutoVersioningMode()
throws ResourceException
null when no
autoversioning present)ResourceException -
public IResource getCheckedInResource()
throws ResourceException
null )ResourceException -
public RID getCheckedInRID()
throws ResourceException
null )ResourceException -
public IResource getCheckedOutResource()
throws ResourceException
null )ResourceException -
public RID getCheckedOutRID()
throws ResourceException
null )ResourceException -
public java.util.Set getCheckInForkBehaviour()
throws ResourceException
ResourceException - Exception raised in failure situationIVersionResource.getCheckInForkBehaviour()
public java.util.Set getCheckOutForkBehaviour()
throws ResourceException
ResourceException - Exception raised in failure situationIVersionResource.getCheckOutForkBehaviour()
public java.util.Set getEclipsedSet()
throws ResourceException
ResourceException - Exception raised in failure situation
public IResourceList getPredecessorResources()
throws ResourceException
ResourceException -
public IRidSet getPredecessorRIDs()
throws ResourceException
ResourceException -
public IResource getVersionHistoryResource()
throws ResourceException
null if
version history resources are not supported).ResourceException -
public RID getVersionHistoryRID()
throws ResourceException
null if version
history resources are not supported).ResourceException -
public IRidSet updateFromVersion(IResource version)
throws ResourceException
version - from where to copy contents and propertiesResourceException -
public IRidSet updateFromVersion(RID version)
throws ResourceException
version - from where to copy contents and propertiesResourceException -
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||