5.1 Action Request System Java API

com.remedy.arsys.api
Class AttachmentLimitInfo

java.lang.Object
  |
  +--com.remedy.arsys.api.FieldLimitInfo
        |
        +--com.remedy.arsys.api.AttachmentLimitInfo
All Implemented Interfaces:
java.lang.Cloneable

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 com.remedy.arsys.api.FieldLimitInfo
getDataType
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 Peregrine at this time.
Method Detail

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

5.1 Action Request System Java API