FileAuthorMetadata

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);
 }
 

Constructors

Constructor Description
FileAuthorMetadata() Initializes a new instance of the FileAuthorMetadata class.

Fields

Field Description
GROUP_DOCS

Methods

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.

FileAuthorMetadata()

public FileAuthorMetadata()

Initializes a new instance of the FileAuthorMetadata class.

GROUP_DOCS

public static final String GROUP_DOCS

getAuthor()

public final String getAuthor()

Gets the author of a document.

Returns: java.lang.String - the author

setAuthor(String value)

public final void setAuthor(String value)

Sets the author of a document.

Parameters:

Parameter Type Description
value java.lang.String The author

getLastSaveBy()

public final String getLastSaveBy()

Gets name of a person who saved the document for the last time.

Returns: java.lang.String - the name

setLastSaveBy(String value)

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

getCompany()

public final String getCompany()

Gets name of a company whose document is.

Returns: java.lang.String - the name of a company

setCompany(String value)

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