public class ConverterNeedPasswordEvent extends ConverterEvent
ConverterListener
needs a password to convert a document.Constructor and Description |
---|
ConverterNeedPasswordEvent(Object source,
Operation operation,
ConverterJobInfoEvent jobInfo,
ConverterInputDocumentInfoEvent inputDocumentInfo) |
Modifier and Type | Method and Description |
---|---|
int |
getAttemptCount()
Returns number of attempts at providing a password has been made.
|
ConverterInputDocumentInfoEvent |
getInputDocumentInfo()
Returns details about the document.
|
Operation |
getOperation()
Returns current operation that is being performed on the document.
|
String |
getPassword()
Returns the current password to decrypt the document.
|
boolean |
isCallAgainIfUnsuccessful()
Returns whether the user-class instance is set to call this event if the
specified password is not successful in decrypting the document.
|
boolean |
isForceFullPermission()
Returns whether document user permissions will be ignored when performing
operations on the document.
|
void |
setCallAgainIfUnsuccessful(boolean callAgainIfUnsuccessful)
Specifies whether the user-class instance needs to call this event if the
specified password is not successful in decrypting the document.
|
void |
setForceFullPermission(boolean forceFullPermission)
Specifies whether document user permissions should be ignored when
performing operations on the document.
|
void |
setPassword(String password)
Specifies password with which the document needs to be decrypted.
|
getJobInfo, isCancel, setCancel
getSource, toString
public ConverterNeedPasswordEvent(Object source, Operation operation, ConverterJobInfoEvent jobInfo, ConverterInputDocumentInfoEvent inputDocumentInfo)
public void setPassword(String password)
password
- password for decrypting the documentpublic String getPassword()
public Operation getOperation()
public int getAttemptCount()
public boolean isForceFullPermission()
public void setForceFullPermission(boolean forceFullPermission)
forceFullPermission
- true if document user permissions should be ignored; false if
otherwisepublic boolean isCallAgainIfUnsuccessful()
public void setCallAgainIfUnsuccessful(boolean callAgainIfUnsuccessful)
callAgainIfUnsuccessful
- true if the event needs to be called again; false if otherwisepublic ConverterInputDocumentInfoEvent getInputDocumentInfo()