public enum PutOption extends Enum<PutOption>
Used to define the behavior of file upload operations.
Enum Constant and Description |
---|
atomic
Specified, the server does all the needed checking to ensure that all the files can be
updated before changing the first one
|
checkin
Used to support long-term checkout operations
|
checkout
Valid only if checkin is specified.
|
createdir
The parent directory is created if it does not exist.
|
edit
Uses the date and time the document was last modified to determine whether the
item has been concurrently modified by another user.
|
forceversions
Acts as though versioning is enabled, even if it is not
|
listthickets
Requests that metadata be returned for thicket supporting files.
|
migrationsemantics
Preserves information about who created the file and when.
|
noadd
Does not add the document to source control.
|
none
The client MUST send "none" if it does not want to specify any of the options given
by a RENAME-OPTION-VAL.
|
overwrite
Uses the date and time the document was last modified, as specified in the inbound metainfo, rather than the extent of time on the server.
|
thicket
Specifies that the associated file is a thicket supporting file.
|
Modifier and Type | Method and Description |
---|---|
static EnumSet<PutOption> |
getOptions(String stringValues) |
static PutOption |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PutOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PutOption none
public static final PutOption atomic
public static final PutOption checkin
public static final PutOption checkout
public static final PutOption createdir
public static final PutOption edit
public static final PutOption forceversions
public static final PutOption listthickets
public static final PutOption migrationsemantics
public static final PutOption noadd
public static final PutOption overwrite
public static final PutOption thicket
public static PutOption[] values()
for (PutOption c : PutOption.values()) System.out.println(c);
public static PutOption valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2005–2017 Alfresco Software. All rights reserved.