7.0 Action Request System Java API

com.remedy.arsys.api
Class AttachmentLimitInfo

java.lang.Object
  extended bycom.remedy.arsys.api.FieldLimitInfo
      extended bycom.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, defaulting the full text option to none (Constants.AR_FULLTEXT_OPTIONS_NONE).
AttachmentLimitInfo(long max, int type, int option)
          Constructs a new AttachmentLimitInfo object, allowing the specification of a full text option.
 
Method Summary
 java.lang.Object clone()
          Clone implementation that returns an Object with data cloned from self.
 int getAttachType()
          Returns the attachment type
 int getFullTextOption()
          Returns the full text option
 long getMaxSize()
          Returns the maximum attachment size
 void setAttachType(int type)
          Sets the attachment type
 void setFullTextOption(int option)
          Sets the full text option
 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, defaulting the full text option to none (Constants.AR_FULLTEXT_OPTIONS_NONE).

Parameters:
max - Maximum size of the attachment.
type - Type of the attachment -- embedded (Constants.AR_ATTACH_FIELD_TYPE_EMBED) is the only type supported at this time.

AttachmentLimitInfo

public AttachmentLimitInfo(long max,
                           int type,
                           int option)
Constructs a new AttachmentLimitInfo object, allowing the specification of a full text option.

Parameters:
max - Maximum size of the attachment.
type - Type of the attachment -- embedded (Constants.AR_ATTACH_FIELD_TYPE_EMBED) is the only type supported at this time.
option - Full text option -- none Constants.AR_FULLTEXT_OPTIONS_NONE or indexed (Constants.AR_FULLTEXT_OPTIONS_INDEXED)
Method Detail

setMaxSize

public void setMaxSize(long max)
Sets the maximum attachment size


setAttachType

public void setAttachType(int type)
Sets the attachment type


setFullTextOption

public void setFullTextOption(int option)
Sets the full text option


getMaxSize

public long getMaxSize()
Returns the maximum attachment size


getAttachType

public int getAttachType()
Returns the attachment type


getFullTextOption

public int getFullTextOption()
Returns the full text option


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
Throws:
java.lang.CloneNotSupportedException

7.0 Action Request System Java API