com.dynalivery.repository.util
Class FileOptions
java.lang.Object
|
+--com.dynalivery.repository.util.FileOptions
- Direct Known Subclasses:
- OutputOptions
- public class FileOptions
- extends java.lang.Object
- implements java.io.Serializable
This class describes the common options desired when creating or modifying a repository file.
- See Also:
- Serialized Form
|
Constructor Summary |
FileOptions(int type,
SecurityOptions securityOptions)
Public constructor for file creation properties. |
FileOptions(int type,
java.lang.String readACL,
java.lang.String writeACL)
Public constructor for file creation properties. |
|
Method Summary |
SecurityOptions |
getSecurityOptions()
Returns the security options for this file. |
int |
getType()
Returns the type of this report file. |
java.lang.String |
toString()
Returns a String which describes these file creation options |
void |
validate(boolean nullsAllowed)
Validate option settings |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
FileOptions
public FileOptions(int type,
SecurityOptions securityOptions)
- Public constructor for file creation properties.
This public constructor allows read/write SecurityOptions to be specified
- Parameters:
type - securityOptions -
FileOptions
public FileOptions(int type,
java.lang.String readACL,
java.lang.String writeACL)
- Public constructor for file creation properties.
This constructor will construct the read/write Security information
from the specified read/write access control lists
- Parameters:
type - readACL - writeACL -
getType
public int getType()
- Returns the type of this report file.
- Returns:
- integer type of this file
- See Also:
FileTypes.TYPE_TEMPLATE_DYNALIVERY
getSecurityOptions
public SecurityOptions getSecurityOptions()
- Returns the security options for this file.
- Returns:
- the SecurityOptions object for this file
validate
public void validate(boolean nullsAllowed)
throws InvalidParameterException
- Validate option settings
- Parameters:
nullsAllowed - true if null values are allowed as when modifying a file- Throws:
- InvalidParameterException - if invalid settings
toString
public java.lang.String toString()
- Returns a String which describes these file creation options
- Overrides:
- toString in class java.lang.Object
- Returns:
- a String which describes these file creation options