7.0 Action Request System Java API

com.remedy.arsys.api
Class View

java.lang.Object
  extended bycom.remedy.arsys.api.ObjectBase
      extended bycom.remedy.arsys.api.View
All Implemented Interfaces:
java.lang.Cloneable, IARPersistentObject

public class View
extends ObjectBase
implements IARPersistentObject, java.lang.Cloneable

The View class represents the form view (VUI) with the indicated name on the specified server.


Field Summary
 
Fields inherited from class com.remedy.arsys.api.ObjectBase
m_changeFlags, m_permissionList
 
Constructor Summary
protected View(java.lang.String name, PermissionInfo[] permissionList, java.lang.String helpText, long lastUpdateTime, java.lang.String owner, java.lang.String lastChangedBy, java.lang.String diaryStr)
           
 
Method Summary
 void activate()
          AR System reserved method.
 void clear()
          Clears all of the references to member objects.
 java.lang.Object clone()
          Clone implementation that returns an Object with data cloned from self.
 void create()
          Creates this object on the AR System server.
 ARServerUser getContext()
           
 PropInfo[] getDisplayProperties()
          Returns display properties information.
 ViewKey getKey()
          Returns unique identifier for view.
 java.lang.String getLocale()
          Returns the locale.
 NameID getSchemaName()
          Returns the name of the form that the VUI is linked to.
 FieldID getVUIId()
          Returns the internal ID of the VUI.
 int getVUIType()
          Returns the VUI type.
 void load()
          Populates this object with information from the AR System server.
 void load(ViewCriteria criteria)
          Populates this object with information specified by ViewCriteria from the AR System server.
 void passivate()
          AR System reserved method.
 void remove()
          Removes this object on the AR System server.
 void setContext(ARServerUser ctxt)
          Associates ARServerUser information with this view object.
 void setDisplayProperties(PropInfo[] properties)
          Sets display properties information.
 void setKey(ViewKey key)
          Sets unique identifier for view.
 void setLocale(java.lang.String locale)
          Sets the locale.
 void setPermissions(PermissionInfo[] permissions)
          Sets the permissions of the AR System object.
 void setSchemaName(NameID schemaName)
          Associates the VUI with a form.
 void setVUIId(FieldID viewID)
          Assigns an internal ID for the VUI.
 void setVUIType(int vuiType)
          Sets the VUI type.
 void store()
          Updates this view on the database
 void unsetContext()
          Removes the association to a specific user context.
 
Methods inherited from class com.remedy.arsys.api.ObjectBase
equals, getDiary, getHelpText, getLastChangedBy, getLastUpdateTime, getName, getNewName, getOwner, getPermissions, hashCode, resetChangeFlags, setDiary, setHelpText, setLastChangedBy, setName, setNewName, setOwner
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

View

protected View(java.lang.String name,
               PermissionInfo[] permissionList,
               java.lang.String helpText,
               long lastUpdateTime,
               java.lang.String owner,
               java.lang.String lastChangedBy,
               java.lang.String diaryStr)
Method Detail

setPermissions

public void setPermissions(PermissionInfo[] permissions)
Description copied from class: ObjectBase
Sets the permissions of the AR System object.

Overrides:
setPermissions in class ObjectBase

setSchemaName

public void setSchemaName(NameID schemaName)
Associates the VUI with a form.


setVUIId

public void setVUIId(FieldID viewID)
Assigns an internal ID for the VUI. The IDs of all VUIs and fields associated with a form must be unique. Specify 0 for this parameter if you want the system to generate the ID. Otherwise, specify a value between 536870912 and and 2147483647 (limited by AR_MAX_RESERVED_FIELD_ID in arstruct.h).


setDisplayProperties

public void setDisplayProperties(PropInfo[] properties)
Sets display properties information.


getSchemaName

public NameID getSchemaName()
Returns the name of the form that the VUI is linked to.


getVUIId

public FieldID getVUIId()
Returns the internal ID of the VUI.


getDisplayProperties

public PropInfo[] getDisplayProperties()
Returns display properties information. See setDisplayProperties.


getLocale

public java.lang.String getLocale()
Returns the locale.


setLocale

public void setLocale(java.lang.String locale)
Sets the locale.


getVUIType

public int getVUIType()
Returns the VUI type.


setVUIType

public void setVUIType(int vuiType)
Sets the VUI type.


getContext

public ARServerUser getContext()

setContext

public void setContext(ARServerUser ctxt)
Associates ARServerUser information with this view object.

Specified by:
setContext in interface IARPersistentObject

unsetContext

public void unsetContext()
Removes the association to a specific user context.

Specified by:
unsetContext in interface IARPersistentObject

clear

public void clear()
Clears all of the references to member objects.

Specified by:
clear in interface IARPersistentObject
Overrides:
clear in class ObjectBase

getKey

public ViewKey getKey()
Returns unique identifier for view.


setKey

public void setKey(ViewKey key)
Sets unique identifier for view.


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

create

public void create()
            throws ARException
Creates this object on the AR System server.

Specified by:
create in interface IARPersistentObject
Throws:
java.lang.NullPointerException - if invalid ARServerUser object
ARException - if object is not saved

remove

public void remove()
            throws ARException
Removes this object on the AR System server.

Specified by:
remove in interface IARPersistentObject
Throws:
java.lang.NullPointerException - if invalid ARServerUser object
ARException - if object is not removed

load

public void load()
          throws ARException
Populates this object with information from the AR System server.

Specified by:
load in interface IARPersistentObject
Throws:
java.lang.NullPointerException - if invalid ARServerUser object
ARException - if object is not loaded

load

public void load(ViewCriteria criteria)
          throws ARException
Populates this object with information specified by ViewCriteria from the AR System server.

Throws:
java.lang.NullPointerException - if invalid ARServerUser object
ARException - if object is not loaded

store

public void store()
           throws ARException
Updates this view on the database

Specified by:
store in interface IARPersistentObject
Throws:
java.lang.NullPointerException - if invalid ARServerUser object
ARException - if object is not saved

activate

public void activate()
Description copied from interface: IARPersistentObject
AR System reserved method.

Specified by:
activate in interface IARPersistentObject

passivate

public void passivate()
Description copied from interface: IARPersistentObject
AR System reserved method.

Specified by:
passivate in interface IARPersistentObject

7.0 Action Request System Java API