FileAuthorMetadata
Leave feedback
On this page
Inheritance: java.lang.Object
public class FileAuthorMetadata
Allows configuring information about the document’s author metadata.
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);
}
| Constructor | Description |
|---|---|
| FileAuthorMetadata() | Initializes a new instance of the FileAuthorMetadata class. |
| Field | Description |
|---|---|
| GROUP_DOCS |
| Method | Description |
|---|---|
| getAuthor() | Gets the author of a document. |
| setAuthor(String value) | Sets the author of a document. |
| getLastSaveBy() | Gets name of a person who saved the document for the last time. |
| setLastSaveBy(String value) | Sets name of a person who saved the document for the last time. |
| getCompany() | Gets name of a company whose document is. |
| setCompany(String value) | Sets name of a company whose document is. |
public FileAuthorMetadata()
Initializes a new instance of the FileAuthorMetadata class.
public static final String GROUP_DOCS
public final String getAuthor()
Gets the author of a document.
Returns: java.lang.String - the author
public final void setAuthor(String value)
Sets the author of a document.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String | The author |
public final String getLastSaveBy()
Gets name of a person who saved the document for the last time.
Returns: java.lang.String - the name
public final void setLastSaveBy(String value)
Sets name of a person who saved the document for the last time.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String | The name of a person |
public final String getCompany()
Gets name of a company whose document is.
Returns: java.lang.String - the name of a company
public final void setCompany(String value)
Sets name of a company whose document is.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String | The name of a company |
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.