|
7.0 Action Request System Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.remedy.arsys.api.ObjectBase
com.remedy.arsys.api.Schema
The Schema
class
and methods are used to represent the properties of schema objects.
"Schemas" in AR System are also known as "forms."
Note: All the constants used in the Schema
class
are found in the Constants
class.
Field Summary |
Fields inherited from class com.remedy.arsys.api.ObjectBase |
m_changeFlags, m_permissionList |
Constructor Summary | |
protected |
Schema(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 schema on the server specified in the ARServerUser . |
void |
deleteFields(FieldID[] fieldIds,
int option)
Deletes the schema fields with the specified IDs from this Schema object
|
boolean |
equals(java.lang.Object anObject)
Use this method for checking equality. |
InternalID[] |
getAdminGrpList()
Retrives the list of groups who can administer this schema (and the associated filters, escalations, and active links). |
ArchiveInfo |
getArchiveInfo()
Returns the archive info for the schema. |
AuditInfo |
getAuditInfo()
Returns the audit info for the schema. |
CompoundSchemaInfo |
getCompoundSchema()
Returns the Compound Schema Object. |
ARServerUser |
getContext()
|
NameID |
getDefaultVUI()
Returns the label for the default view. |
EntryListFieldInfo[] |
getEntryListFieldInfo()
Returns the list of fields that identifies the default query list data for retrieving schema entries. |
IndexInfo[] |
getIndexInfo()
Returns the list of indexes for the schema. |
SchemaKey |
getKey()
Returns unique identifier for schema. |
PropInfo[] |
getProperties()
Returns the object properties associated with a SCC integration. |
int |
getSchemaType()
Returns the schema type. |
SortInfo[] |
getSortInfo()
Returns the list of fields that identifies the default sort order for retrieving schema entries. |
int |
hashCode()
Returns the hash code value for this instance of the current class. |
void |
load()
Populates this object with information from the AR System server. |
void |
load(SchemaCriteria criteria)
Populates this object with information specified by SchemaCriteria
from the AR System server. |
void |
passivate()
AR System reserved method. |
void |
remove()
Deletes this schema from the server specified in the ARServerUser
and deletes any container references to this schema. |
void |
setAdminGrpList(InternalID[] adminList)
Sets the list of groups who can administer this schema (and the associated filters, escalations, and active links). |
void |
setArchiveInfo(ArchiveInfo archiveInfo)
Sets the archive info for the schema. |
void |
setAuditInfo(AuditInfo auditInfo)
Sets the audit info for the schema. |
void |
setContext(ARServerUser ctxt)
Associates ARServerUser information with this
AR System server object. |
void |
setDefaultVUI(NameID defaultVUI)
Sets the label for the default view. |
void |
setDeleteOption(int option)
Sets the delete option indicating the action to take if the specified schema contains entries (applicable for base schemas only) or is a member of a join schema. |
void |
setEntryListFieldInfo(EntryListFieldInfo[] getListFields)
Sets the list of fields that identifies the default query list data for retrieving schema entries. |
void |
setIndexInfo(IndexInfo[] indexList)
Sets the list of indexes to create for the schema. |
void |
setKey(SchemaKey key)
Sets unique identifier for schema. |
void |
setPermissions(PermissionInfo[] permissions)
Sets the permissions of the AR System object. |
void |
setProperties(PropInfo[] props)
Sets the object properties associated with a Source Code Control (SCC) integration. |
void |
setSchemaType(int type,
CompoundSchemaInfo compoundSchema)
Sets the schema type. |
void |
setSortInfo(SortInfo[] sortList)
Sets the list of fields that identifies the default sort order for retrieving schema entries. |
void |
store()
Updates this schema on the database |
void |
unsetContext()
Removes the association to a specific user context. |
Methods inherited from class com.remedy.arsys.api.ObjectBase |
getDiary, getHelpText, getLastChangedBy, getLastUpdateTime, getName, getNewName, getOwner, getPermissions, resetChangeFlags, setDiary, setHelpText, setLastChangedBy, setName, setNewName, setOwner |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected Schema(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 |
public void setAdminGrpList(InternalID[] adminList)
adminList
- An array of InternalID
objectspublic void setPermissions(PermissionInfo[] permissions)
ObjectBase
setPermissions
in class ObjectBase
public InternalID[] getAdminGrpList()
public SortInfo[] getSortInfo()
public void setSortInfo(SortInfo[] sortList)
SortInfo
in an EntryCriteria
object when calling
find
or findObjects
on EntryFactory
overrides the default sort order.
sortList
- An array of SortInfo
objectspublic void setIndexInfo(IndexInfo[] indexList)
AR_MAX_INDEX_FIELDS
). Diary fields and
character fields larger than 255 bytes cannot be indexed.
indexList
- An array of IndexInfo
objectspublic IndexInfo[] getIndexInfo()
public void setArchiveInfo(ArchiveInfo archiveInfo)
public ArchiveInfo getArchiveInfo()
public void setAuditInfo(AuditInfo auditInfo)
public AuditInfo getAuditInfo()
public void setEntryListFieldInfo(EntryListFieldInfo[] getListFields)
AR_MAX_SDESC_SIZE
). The
query list displays the Short-Description core field by default(or zero fields).
Specifying EntryListFieldInfo
in an EntryCriteria
object when calling
find
or findObjects
on EntryFactory
overrides the default query list data.
getListFields
- An array of EntryListFieldInfo
objectspublic EntryListFieldInfo[] getEntryListFieldInfo()
public void setDeleteOption(int option)
option
- Possible values are:
public void setSchemaType(int type, CompoundSchemaInfo compoundSchema)
type
- The type of the schema. Possible values are:
compoundSchema
- The compound schema.public int getSchemaType()
getCompoundSchema()
getCompoundSchema()
public CompoundSchemaInfo getCompoundSchema()
CompoundSchemaInfo
object.
JoinSchemaInfo
, ViewSchemaInfo
and VendorSchemaInfo
).
public void setProperties(PropInfo[] props)
In the AR System, server objects have a list of properties, represented as tag-value pairs.
Each PropInfo
object contains a tag and a Value
that is used to store the value for a given tag.
If you do not specify the object properties,
an object properties list with zero properties will be associated with the field.
props
- An array of PropInfo
objectspublic PropInfo[] getProperties()
public SchemaKey getKey()
public void setKey(SchemaKey key)
public void setDefaultVUI(NameID defaultVUI)
public NameID getDefaultVUI()
public void deleteFields(FieldID[] fieldIds, int option) throws ARException
Schema
object
option
- Delete option
java.lang.NullPointerException
- if invalid ARServerUser
object
ARException
- if fields are not deletedpublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class ObjectBase
java.lang.CloneNotSupportedException
public void create() throws ARException
ARServerUser
.
The nine required core fields are
automatically associated with this new schema.
create
in interface IARPersistentObject
java.lang.NullPointerException
- if invalid ARServerUser
object
ARException
- if schema is not createdpublic void remove() throws ARException
ARServerUser
and deletes any container references to this schema. Depending on the
delete option you specify, the schema is deleted from the server
immediately and is not returned to users who request information about schemas. In
addition, the system deletes all entries, fields, views (VUIs), active links,
escalations, and filters associated with the schema and all containers owned by the schema.
remove
in interface IARPersistentObject
java.lang.NullPointerException
- if invalid ARServerUser
object
ARException
- if schema is not deletedpublic void load(SchemaCriteria criteria) throws ARException
SchemaCriteria
from the AR System server.
java.lang.NullPointerException
- if invalid ARServerUser
object
ARException
- if object is not loadedpublic void load() throws ARException
load
in interface IARPersistentObject
java.lang.NullPointerException
- if invalid ARServerUser
object
ARException
- if object is not savedpublic void store() throws ARException
store
in interface IARPersistentObject
java.lang.NullPointerException
- if invalid ARServerUser
object
ARException
- if schema is not updatedpublic void activate()
IARPersistentObject
activate
in interface IARPersistentObject
public void passivate()
IARPersistentObject
passivate
in interface IARPersistentObject
public ARServerUser getContext()
public void setContext(ARServerUser ctxt)
IARPersistentObject
ARServerUser
information with this
AR System server object.
setContext
in interface IARPersistentObject
public void unsetContext()
IARPersistentObject
setContext(null)
.
unsetContext
in interface IARPersistentObject
public void clear()
IARPersistentObject
clear
in interface IARPersistentObject
clear
in class ObjectBase
public boolean equals(java.lang.Object anObject)
equals
in class ObjectBase
public int hashCode()
hashCode
in class ObjectBase
|
7.0 Action Request System Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |