com.remedy.arsys.api
Class AttachmentLimitInfo
java.lang.Object
|
+--com.remedy.arsys.api.FieldLimitInfo
|
+--com.remedy.arsys.api.AttachmentLimitInfo
- public class AttachmentLimitInfo
- extends FieldLimitInfo
- implements java.lang.Cloneable
The AttachmentLimitInfo class
defines the value limits for an attachment
field (DataType.ATTACHMENT).
|
Constructor Summary |
AttachmentLimitInfo(long max,
int type)
Constructs a new AttachmentLimitInfo object. |
|
Method Summary |
java.lang.Object |
clone()
Clone implementation that returns an Object with data cloned from self. |
int |
getAttachType()
Returns the attachment type |
long |
getMaxSize()
Returns the maximum attachment size |
void |
setAttachType(int type)
Sets the attachment type |
void |
setMaxSize(long max)
Sets the maximum attachment size |
| Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
AttachmentLimitInfo
public AttachmentLimitInfo(long max,
int type)
- Constructs a new
AttachmentLimitInfo object.
- Parameters:
max - Maximum size of the attachment.type - Type of the attachment --
embedded (Constants.AR_DATA_TYPE_ATTACH) is the only type supported by Remedy at this time.
setMaxSize
public void setMaxSize(long max)
- Sets the maximum attachment size
setAttachType
public void setAttachType(int type)
- Sets the attachment type
getMaxSize
public long getMaxSize()
- Returns the maximum attachment size
getAttachType
public int getAttachType()
- Returns the attachment type
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Clone implementation that returns an Object with data cloned from self.
- Overrides:
- clone in class FieldLimitInfo