public class FileAuthorMetadata extends Object
Example usage:
try (Comparer comparer = new Comparer(sourceFile)) {
comparer.add(targetFile);
SaveOptions saveOptions = new SaveOptions();
saveOptions.setCloneMetadataType(MetadataType.FILE_AUTHOR);
final FileAuthorMetadata fileAuthorMetadata = new FileAuthorMetadata();
fileAuthorMetadata.setAuthor("Tom");
fileAuthorMetadata.setCompany("GroupDocs");
fileAuthorMetadata.setLastSaveBy("Jack");
saveOptions.setFileAuthorMetadata(fileAuthorMetadata);
comparer.compare(resultFile, saveOptions);
}
Comparer,
SaveOptions| Modifier and Type | Class and Description |
|---|---|
static class |
FileAuthorMetadata.Builder
A
FileAuthorMetadata builder. |
| Modifier and Type | Field and Description |
|---|---|
static String |
GROUP_DOCS |
| Constructor and Description |
|---|
FileAuthorMetadata()
Initializes a new instance of the FileAuthorMetadata class.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthor()
Gets the author of a document.
|
String |
getCompany()
Gets name of a company whose document is.
|
String |
getLastSaveBy()
Gets name of a person who saved the document for the last time.
|
void |
setAuthor(String value)
Sets the author of a document.
|
void |
setCompany(String value)
Sets name of a company whose document is.
|
void |
setLastSaveBy(String value)
Sets name of a person who saved the document for the last time.
|
public static final String GROUP_DOCS
public FileAuthorMetadata()
Initializes a new instance of the FileAuthorMetadata class.
public final String getAuthor()
Gets the author of a document.
public final String getCompany()
Gets name of a company whose document is.
public final String getLastSaveBy()
Gets name of a person who saved the document for the last time.
public final void setAuthor(String value)
Sets the author of a document.
value - The authorpublic final void setCompany(String value)
Sets name of a company whose document is.
value - The name of a companypublic final void setLastSaveBy(String value)
Sets name of a person who saved the document for the last time.
value - The name of a personCopyright © 2024. All rights reserved.