|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.tmatesoft.svn.core.wc2.SvnOperation<T>
org.tmatesoft.svn.core.wc2.SvnReceivingOperation<SVNCommitInfo>
org.tmatesoft.svn.core.wc2.AbstractSvnCommit
org.tmatesoft.svn.core.wc2.SvnRemoteSetProperty
public class SvnRemoteSetProperty
Sets propertyName to propertyValue on each targets.
If propertyValue is null, operation will delete the property.
Targets should represent URLs.
baseRevision must not be null; in this case, the property
will only be set if it has not changed since baseRevision.
The authentication manager and
commit handler, either provided by a caller or
default ones, will be used to immediately attempt to commit the property
change in the repository.
SvnOperation.run() returns SVNCommitInfo commit information if the commit succeeds.
This method throws SVNException if the following is true:
url does not exist in baseRevision
SVNErrorCode.CLIENT_PROPERTY_NAME error code - if
propertyName is a revision property name or not a
valid property name or not a regular property name (one
starting with an "svn:entry"
or "svn:wc" prefix) SVNErrorCode.UNSUPPORTED_FEATURE error
code - if propertyName is either equal to
SVNProperty.EOL_STYLE or SVNProperty.KEYWORDS
or SVNProperty.CHARSET
| Constructor Summary | |
|---|---|
protected |
SvnRemoteSetProperty(SvnOperationFactory factory)
|
| Method Summary | |
|---|---|
protected void |
ensureArgumentsAreValid()
|
SVNRevision |
getBaseRevision()
Returns operation's revision to change properties against |
SVNPropertyValue |
getOriginalPropertyValue()
Returns property's original value, it was set by caller |
java.lang.String |
getPropertyName()
Gets name of the property. |
ISvnObjectReceiver<SVNPropertyData> |
getPropertyReceiver()
Returns operation's property receiver. |
SVNPropertyValue |
getPropertyValue()
Returns the property's value. |
boolean |
isChangesWorkingCopy()
Gets whether the operation changes working copy |
boolean |
isForce()
Returns whether to skip validity checking of propertyName and propertyValue. |
void |
setBaseRevision(SVNRevision baseRevision)
Sets operation's revision to change properties against |
void |
setForce(boolean force)
Sets whether to skip validity checking of propertyName and propertyValue. |
void |
setOriginalPropertyValue(SVNPropertyValue originalPropertyValue)
Sets property's original value to hold this information for the caller |
void |
setPropertyName(java.lang.String propertyName)
Sets name of the property. |
void |
setPropertyReceiver(ISvnObjectReceiver<SVNPropertyData> propertyReceiver)
Sets operation's property receiver. |
void |
setPropertyValue(SVNPropertyValue propertyValue)
Sets the property's value. |
| Methods inherited from class org.tmatesoft.svn.core.wc2.AbstractSvnCommit |
|---|
getCommitHandler, getCommitMessage, getRevisionProperties, setCommitHandler, setCommitMessage, setRevisionProperties, setRevisionProperty |
| Methods inherited from class org.tmatesoft.svn.core.wc2.SvnReceivingOperation |
|---|
first, getReceiver, initDefaults, last, receive, run, setReceiver |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected SvnRemoteSetProperty(SvnOperationFactory factory)
| Method Detail |
|---|
public boolean isForce()
propertyName and propertyValue.
true if validity checking should be skipped, otherwise falsesetForce(boolean)public void setForce(boolean force)
propertyName and propertyValue.
If force is true, this
operation does no validity checking. But if force is false,
and propertyName is not a
valid property for targets, it throws an exception, either with
an error code SVNErrorCode.ILLEGAL_TARGET
(if the property is not appropriate for target), or with
SVNErrorCode.BAD_MIME_TYPE (if
propertyName is "svn:mime-type",
but propertyValue is not a valid mime-type).
force - true if validity checking should be skipped, otherwise falsepublic java.lang.String getPropertyName()
setPropertyName(String)public void setPropertyName(java.lang.String propertyName)
propertyName is an svn-controlled property (i.e. prefixed
with "svn:"), then the caller is
responsible for ensuring that the value uses LF line-endings.
public SVNPropertyValue getPropertyValue()
propertyValue is null, operation will delete the property.
public void setPropertyValue(SVNPropertyValue propertyValue)
propertyValue is null, operation will delete the property.
propertyValue - value of the propertypublic SVNRevision getBaseRevision()
public void setBaseRevision(SVNRevision baseRevision)
baseRevision - base revision of the operationpublic ISvnObjectReceiver<SVNPropertyData> getPropertyReceiver()
public void setPropertyReceiver(ISvnObjectReceiver<SVNPropertyData> propertyReceiver)
propertyReceiver - property receiver of the operationpublic SVNPropertyValue getOriginalPropertyValue()
public void setOriginalPropertyValue(SVNPropertyValue originalPropertyValue)
originalPropertyValue - original value of the property
protected void ensureArgumentsAreValid()
throws SVNException
ensureArgumentsAreValid in class SvnOperation<SVNCommitInfo>SVNExceptionpublic boolean isChangesWorkingCopy()
isChangesWorkingCopy in class SvnOperation<SVNCommitInfo>true if the operation changes the working copy, otherwise false
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||