AR System Java API

com.bmc.arsys.api
Class ARServerUser

java.lang.Object
  extended by com.bmc.arsys.api.ARServerUser

public class ARServerUser
extends Object

Interface to a particular AR System server for all API calls. Contains login (authentication) information including server information, user name, and password required to establish a session with the server plus user session information that controls the behavior of the API session.


Nested Class Summary
static class ARServerUser.ExecuteProcessActionType
          Valid values for the action type to execute in ExecuteProcessForActiveLink
 
Field Summary
static int AR_RPC_ADMIN_QUEUE
          The admin queue RPC program number
static int AR_RPC_DEFAULT_QUEUE
          The default queue RPC program number
static int AR_RPC_PRIVATE_QUEUE_MAX
           
static int AR_RPC_PRIVATE_QUEUE_MIN
          the range for the private queue
static int AR_RPC_SPEC_QUEUE_MAX
           
static int AR_RPC_SPEC_QUEUE_MIN
          the range for the special queue.
 
Constructor Summary
ARServerUser()
          Constructs an ARServerUser with no members initialized.
ARServerUser(ARNativeAuthenticationInfo userInfo, String locale, String server)
          Constructs an ARServerUser with user name, authentication string, locale, and server initialized.
ARServerUser(String user, String password, String locale, String server)
          Constructs an ARServerUser with user name, password, locale, and server initialized.
ARServerUser(String user, String password, String locale, String server, int serverPort)
          Constructs an ARServerUser with user name, password, locale, server, and server port initialized.
ARServerUser(String user, String password, String authentication, String locale, String server)
          Constructs an ARServerUser with user name, password, locale, and server initialized.
ARServerUser(String user, String password, String authentication, String locale, String server, int serverPort)
          Constructs an ARServerUser with user name, password, authentication string, locale, server, and server port initialized.
ARServerUser(String user, String password, String authentication, String locale, String timeZone, String customDateFormat, String customTimeFormat, String server)
          Constructs an ARServerUser with user name, password, authentication string, locale, time zone, date and time formats, and server initialized.
 
Method Summary
 void beginBulkEntryTransaction()
          Marks the beginning of a bulk entry transaction.
 String beginClientManagedTransaction()
          Begin a client managed transaction.
 void clear()
          Deprecated. as of AR System 7.1, replaced by logout()
 List<MenuItem> convertStringToListMenu(String menuString)
          Converts a string to a list of MenuItem objects
 void createActiveLink(ActiveLink object)
          Creates this ActiveLink object on AR System server.
 String createAlertEvent(String user, String alertText, int priority, String sourceTag, String server, String formName, String objectId)
          Enters an alert event into the system.
 void createContainer(Container object)
          Creates a new container with the given container instance on the specified server.
 void createContainer(Container object, boolean removeInvalidReference)
          Creates a new container with the given container instance on the specified server.
 String createEntry(String formName, Entry entry)
          Creates a new entry in the indicated form on the specified server.
 void createEscalation(Escalation object)
          Creates this Escalation object into AR System server.
 void createField(Field object, boolean isReservedRangeIdOK)
          Creates a new form field with the indicated name on the specified server.
 void createFilter(Filter object)
          Creates this Filter object on AR System server.
 void createForm(Form obj)
          Creates this form on the server specified in the ARServerUser.
 void createImage(Image obj)
          Creates this image on the server specified in the ARServerUser.
 void createMenu(Menu object)
          Creates this Menu object on AR System server.
 void createMultipleFields(List<Field> fields)
          Create new fields for a specified form in the ARSystem.
 int createSupportFile(SupportFile supportFile)
          Creates a new support file with the indicated information on the specified server.
 void createView(View object)
          Creates the given View object in AR System server.
 AlertMessageInfo decodeAlertMessage(AlertMessageCriteria criteria, Object message, int length)
          Decode supplied alert message and return component parts.
 AssignInfo decodeARAssignStruct(String assignString)
          Deprecated. as of AR System 7.1, replaced by decodeAssignment(java.lang.String)
 QualifierInfo decodeARQualifierStruct(String queryString)
          Deprecated. as of AR System 7.1, replaced by decodeQualification(java.lang.String)
 AssignInfo decodeAssignment(String assignString)
          Decodes an encoded assignment String into internal data structure representation used by Java API
 DiaryListValue decodeDiary(String encoded)
          Takes an encoded diary string as input and decodes it into an DiaryListValue for easier processing.
 AssignInfo decodeDSOPoolAssignment(String encodedStr)
          Decodes an encoded DSO Pool Mapping Assignment into internal structure representation used by AR Java API
 QualifierInfo decodeQualification(String encodedQualText)
          Decodes an encoded qualification String into internal data strucuture representation used by Java API.
 void deleteActiveLink(String name, int deleteOption)
          Deletes the specified activelink from AR System server.
 void deleteAlert(String entryId)
          Deletes an alert event from the system.
 void deleteContainer(String name, int deleteOption)
          Deletes the container with the indicated name from the specified server and deletes any references to the container from other containers.
 void deleteEntry(String formName, String entryId, int deleteOption)
          Removes the form entry with the indicated ID from the specified server.
 void deleteEscalation(String name, int deleteOption)
          Deletes this escalation from AR System server.
 void deleteField(String form, int fieldId, int deleteOption)
          Deletes the form field with the indicated ID from the specified server.
 void deleteFields(String form, int[] fieldIds, int deleteOption)
          Deletes the fields with the specified IDs from the given form
 void deleteFilter(String name, int deleteOption)
          Deletes this filter from AR System server.
 void deleteForm(String formName, int deleteOption)
          Deletes obj form from the server specified in the ARServerUser and deletes any container references to obj form.
 void deleteImage(String imageName, boolean updateRef)
          Deletes obj image from the server specified in the ARServerUser and optionally deletes any references to the image obj form, depending on the value of updateRef.
 void deleteMenu(String name, int deleteOption)
          Removes this specified Memu object from AR System server.
 void deleteSupportFile(SupportFileKey supportFileKey)
          Deletes the given support file from the server.
 void deleteView(String formName, int viewId)
          Removes this object on the AR System server.
 void deregisterForAlerts(int clientPort)
          Deregister a client with the server so they no longer receive alert indicators.
 String encodeARAssignStruct(AssignInfo assign)
          Deprecated. as of AR System 7.1, replaced by encodeAssignment(com.bmc.arsys.api.AssignInfo)
 String encodeARQualifierStruct(QualifierInfo qual)
          Deprecated. as of AR System 7.1, replaced by encodeQualification(com.bmc.arsys.api.QualifierInfo)
 String encodeAssignment(AssignInfo assignment)
          Encodes an internal data structure representation of qualification into String format
static String encodeDiary(DiaryListValue diaryList)
          Takes an DiaryListValue as input and encodes it into a diary string.
 String encodeDSOPoolAssignment(AssignInfo asgnInfo)
          Encodes an internal data structure representation of Assignments into String format
 String encodeQualification(QualifierInfo qualifier)
          Encodes an internal data structure representation of qualification into String format
 List<BulkEntryReturn> endBulkEntryTransaction(int actionType)
          Marks the ending of a bulk entry transaction.
 void endClientManagedTransaction(int transactionOption)
          End a client managed transaction.
 boolean equals(Object obj)
          Use this method for checking equality between the current object and the provided one.
 ProcessResult executeProcess(String command)
          Execute the indicated command on the server, wait it to finish, and bring back the result
 ProcessResult executeProcess(String command, boolean waitFlag)
          Execute the indicated command on the server, and bring back the result if the waitFlgs instructs the method to wait for the process to finish.
 ProcessResult executeProcessForActiveLink(String actlinkName, int actionIndex, int actionType, int fieldId, Timestamp timestamp, List<Value> keywordList, List<Value> parameterList)
          Reserved for AR System internal only.
 ProcessResult executeProcessForActiveLink(String actlinkName, int actionIndex, int actionType, int fieldId, Timestamp timestamp, List<Value> keywordList, List<Value> parameterList, boolean waitFlag)
          Reserved for AR System internal only.
 Entry executeService(String formName, String entryId, Entry entry, int[] entryListFields)
          Sends an entry to the server, executes filter workflow on the server using that input entry and then returns the output entry as the outcome of the workflow processing.
 ProcessResult executeSpecialCommand(String cmd, Object... parameters)
          Executes one of the special AR System run process commands
 List<MenuItem> expandMenu(Menu menu)
          Expands the query and file references for the specified menu definition and returns a character menu with list-type items only.
 List<MenuItem> expandMenu(Menu menu, Entry keywordList, Entry parameterList)
           
 List<MenuItem> expandMenu(String menuName)
          Expands the query and file references for the specified menu definition and returns a character menu with list-type items only.
 List<MenuItem> expandMenu(String menuName, Entry keywordList, Entry parameterList)
           
 String exportDef(List<StructItemInfo> items)
          Deprecated. as of AR System 7.5, replaced by exportDefToFile(java.util.List, boolean, java.lang.String, boolean) that takes care of file encoding.
 String exportDef(List<StructItemInfo> items, boolean asXml)
          Deprecated. as of AR System 7.5, replaced by exportDefToFile(java.util.List, boolean, java.lang.String, boolean) that takes care of file encoding.
 String exportDef(List<StructItemInfo> items, boolean asXml, String displayTag, int vuiType, WorkflowLockInfo lockInfo)
          Deprecated. as of AR System 7.5, replaced by exportDefToFile(java.util.List, boolean, java.lang.String, boolean) that takes care of file encoding.
 String exportDef(List<StructItemInfo> items, String displayTag, int vuiType, WorkflowLockInfo lockInfo)
          Deprecated. as of AR System 7.5, replaced by exportDefToFile(java.util.List, boolean, java.lang.String, boolean) that takes care of file encoding.
 String exportDef(List<StructItemInfo> items, WorkflowLockInfo lockInfo)
          Deprecated. as of AR System 7.5, replaced by exportDefToFile(java.util.List, boolean, java.lang.String, boolean) that takes care of file encoding.
 String exportDef(List items, boolean asXml, WorkflowLockInfo lockInfo)
          Deprecated. as of AR System 7.5, replaced by exportDefToFile(java.util.List, boolean, java.lang.String, boolean) that takes care of file encoding.
 void exportDefToFile(List<StructItemInfo> items, boolean asXml, String filePath, boolean overwrite)
          Exports the specified structure from the server to a file in ARSystem def or xml format.
 void exportDefToFile(List<StructItemInfo> items, boolean asXml, WorkflowLockInfo lockInfo, String filePath, boolean overwrite)
          Exports the specified structure from the server to a file in ARSystem def or xml format.
 void exportDefToFile(List items, boolean asXml, String displayTag, int vuiType, WorkflowLockInfo lockInfo, String filePath, boolean overwrite)
          Exports the specified structure from the server to a file in ARSystem def or xml format.
 String formatAssignment(AssignInfo assign, List<Field> fieldList, Field assignField, boolean topLevel)
          Constructs a String object containing the string representation of a given assignment AssignInfo object.
 String formatAssignment(String form, int fieldId, String form2, Object assignment)
          Formats an internal representation of a assignment expression to a readable String
 String formatQualification(QualifierInfo qual, List<Field> fieldList1, List<Field> fieldList2, int queryContext, boolean isEscalation)
          Constructs a String object containing the string representation of a given qualifier object.
 String formatQualification(String form, Object qualification)
          Formats an internal representation of a qualifier to a readable String
 String formatSetIfQualification(String form1, String form2, Object qualification)
          Formats internal structure of given qualification (used as Set-If condition of a SetFields workflow action)into a String representation
 String generateGUID()
          Generates a GUID by runninng a special AR System run process commands
 String generateGUID(String prefix)
          Generates a GUID by runninng a special AR System run process commands
 ActiveLink getActiveLink(String name)
          return detailed information about the activelink ActiveLink from the server
 ActiveLink getActiveLink(String name, ActiveLinkCriteria criteria)
          Returns detailed information about the ActiveLink object
 int getAlertCount(QualifierInfo qual)
          Gets number of alert events that meet the specified qualification.
 List<String> getAllLocalHostIDs()
          Get all local host ID's.
 String getApplicationState(String applicationName)
          Retrieves the current state of a given application.
 String getAuthentication()
          Returns the authentication string.
 List<Integer> getCacheEvent(int[] eventIdList, int returnOption, OutputInteger cacheCount)
          Returns cache event IDs that have occurred.
 long getCacheId()
          Returns the cache ID.
 int getChunkResponseSize()
          Get the chunk response size
 int getClientType()
          Get the client type
 Container getContainer(String name)
          retrieve the requested container object from AR System server.
 Container getContainer(String name, ContainerCriteria criteria)
          Returns the contents of the container with the indicated name with information specified by ContainerCriteria on the specified server.
 BigDecimal getCurrencyRatio(String currencyRatioSet, String fromCurrencyCode, String toCurrencyCode)
          Search through a supplied currency ratios string to find an entry that matches the requested currency codes.
 String getCustomDateFormat()
          Returns the custom date format.
 String getCustomTimeFormat()
          Returns the custom time format.
 String getDefaultOutputDirectory()
           
 Entry getEntry(String formName, String entryId, int[] entryListFields)
          Loads the entry object from AR System as specified by the entryentryListFields data member.
 byte[] getEntryBlob(String formName, String entryID, int fieldID)
          Returns the attachment that is stored in the indicated IDs on the specified server.
 void getEntryBlob(String formName, String entryID, int fieldID, String filePath)
          Returns the attachment that is stored in the indicated IDs on the specified server.
 List<StatisticsResultInfo> getEntryStatistics(String formKey, QualifierInfo qual, ArithmeticOrRelationalOperand target, int statistic, int[] groupByList)
          Computes the indicated statistic for the form entries that match the conditions specified by the qualifier parameter.
 Escalation getEscalation(String key)
          Returns detailed information about the Escalation object specified by the given name.
 Escalation getEscalation(String key, EscalationCriteria criteria)
          Returns detailed information about the Escalation object.
 ExtendedClassRegistry getExtendedClassRegistry()
           
 Field getField(String form, int fieldId)
          Retrieve the requested form field object from the server.
 Field getField(String form, int fieldId, FieldCriteria criteria)
          Retrieve and populate the form field object with the requested information from AR System server.
 Filter getFilter(String key)
          Returns detailed information about the Filter object specified by the given name.
 Filter getFilter(String key, FilterCriteria criteria)
          Returns detailed information about the Filter object specified by FilterCriteria and String.
 Form getForm(String formName)
          return the requested Form object from AR System server.
 Form getForm(String formName, FormCriteria criteria)
          return the requested Form object from AR System server.
 Image getImage(String imageName)
          return the requested Image object from AR System server.
 Image getImage(String imageName, ImageCriteria criteria)
          return the requested Image object from AR System server.
 long getImpersonatedCacheId()
          get the cache id of the impersonated user.
 String getImpersonatedUser()
          get the name of the impersonated user
 int getLastCount()
           
 String getLastID()
           
 List<StatusInfo> getLastStatus()
          Returns the last operation status list.
 List<String> getListActiveLink()
          Returns a list of all (accessible) active link names in the server
 List<String> getListActiveLink(long changedSince)
          Returns names of all (accessible) active links that are modified after the given change time
 List<String> getListActiveLink(String formName)
          Returns names of all (accessible) active links that are associated with the given form
 List<String> getListActiveLink(String formName, long changedSince)
          Returns names of all (accessible) active links that are associated with the given form and amodified after the provided time
 List<String> getListActiveLink(String formName, long changedSince, ObjectPropertyMap propsToSearch)
          Returns the name of all (accessible) active links that match with the given criteria.
 List<ActiveLink> getListActiveLinkObjects()
          Returns detailed information for all (accessible) ActiveLink objects
 List<ActiveLink> getListActiveLinkObjects(List<String> names)
          Returns detailed information for the requested ActiveLink objects that the user has permission to access
 List<ActiveLink> getListActiveLinkObjects(List<String> names, ActiveLinkCriteria criteria)
          Returns detailed information for the requested ActiveLink objects that the user has permission to access
 List<ActiveLink> getListActiveLinkObjects(List<String> names, long changedSince, ActiveLinkCriteria criteria)
          Returns detailed information for the requested ActiveLink objects that the user has permission to access and is modified after the give time
 List<ActiveLink> getListActiveLinkObjects(String formName)
          Returns detailed information for all (accessible) ActiveLink objects that are associated with the specified form
 List<ActiveLink> getListActiveLinkObjects(String formName, long changedSince)
          Returns detailed information for all (accessible) ActiveLink objects that are associated with the specified form and modified after the given time.
 List<ActiveLink> getListActiveLinkObjects(String formName, long changedSince, ActiveLinkCriteria criteria)
          Returns detailed information for all (accessible) ActiveLink objects specified by the criteria and ActiveLinkCriteria.
 List<String> getListAlertUser()
          Gets list of registered Alert users.
 List<String> getListApplicationState()
          Retrieves the list of possible application state (maintenance, test or production) that an application on this AR System server.
 List<String> getListContainer(long changedSince, int[] containerTypes, boolean hiddenFlag, List<ContainerOwner> ownerList, ObjectPropertyMap propsToSearch)
          Returns the names of all (accessible) Container object that meet the given criteria.
 List<Container> getListContainerObjects(List<String> containers)
          Returns detailed information for the requested Container objects
 List<Container> getListContainerObjects(long changedSince, int[] containerTypes, boolean hiddenFlag, List<ContainerOwner> ownerList, ObjectPropertyMap propsToSearch, ContainerCriteria criteria)
          Returns detailed information of all (accessible) Container objects that match with the given criteria
 List<String> getListDisplayOnlyForm(long changedSince)
          return the name of all (accessible) Display-Only forms Constants.AR_LIST_SCHEMA_DIALOG that are modified after the specified time.
 List<EntryListInfo> getListEntry(String formName, QualifierInfo qualification, int firstRetrieve, int maxRetrieve, List<SortInfo> sortList, List<EntryListFieldInfo> entryListFields, boolean useLocale, OutputInteger nMatches)
          Returns list of EntryListInfo objects that uniquely identify the entry objects that match the provided criteria.
 List<QuerySourceValues> getListEntryObjects(RegularQuery query, int firstRetrieve, int maxRetrieve, boolean useLocale, OutputInteger nMatches)
          Returns a list of QuerySourceValues objects that match the provided criteria.
 List<Entry> getListEntryObjects(String formName, List<String> entryIds, int[] fieldIds)
          Returns a list of Entry objects that match the provided criteria.
 List<Entry> getListEntryObjects(String formName, QualifierInfo qualification, int firstRetrieve, int maxRetrieve, List<SortInfo> sortList, int[] fieldIds, boolean useLocale, OutputInteger nMatches)
          Returns a list of Entry objects that match the provided criteria.
 void getListEntryObjects(String formName, QualifierInfo qualification, int firstRetrieve, int maxRetrieve, List<SortInfo> sortList, int[] fieldIds, boolean useLocale, OutputInteger nMatches, IARRowIterator iterator)
          Applies the iteratorCallback method of the iterator parameter to each Entry object that matches the provided criteria.
 List<EntryPointInfo> getListEntryPoint(long changedSince, List<String> applicationKeys, int[] refTypes, int viewType, String displayTag, boolean hiddenFlag)
          Retrieves all application entry points that match with the given criteria.
 List<String> getListEscalation()
          return the names of all (accessible) Escalation objects
 List<String> getListEscalation(long changedSince)
          return the names of all (accessible) Escalation objects that is modified after the specified timestamp
 List<String> getListEscalation(String formName)
          return the names of all (accessible) Escalation objects that is associated with the given form
 List<String> getListEscalation(String formName, long changedSince)
          return the names of all (accessible) Escalation objects that is associated with the given form and modified after the specified timestamp.
 List<String> getListEscalation(String formName, long changedSince, ObjectPropertyMap propsToSearch)
          return the names of all (accessible) Escalation objects that match the given criteria
 List<Escalation> getListEscalationObjects(String formName, long changedSince, EscalationCriteria criteria)
          Returns detailed information for all (accessible) Escalation objects that match the given criteria.
 List<ExtFormCandidatesInfo> getListExtFormCandidates(int formType)
          Returns a list of all external data source table (forms candidates).
 List<Integer> getListField(String formName, int fieldTypeMask, long changedSince)
          Returns the ids of all (accessible) fields that matches with the given criteria.
 List<Field> getListFieldObjects(String formName)
          Returns detailed information for all (accessible) fields on the given form.
 List<Field> getListFieldObjects(String formName, int fieldTypeMask)
          Returns detailed information of all (accessible) fields that match with the given criteria.
 List<Field> getListFieldObjects(String formName, int[] fieldIds)
          Returns detailed information of all attributes for a list of Field objects specified by the field ids
 List<Field> getListFieldObjects(String formName, int[] fieldIds, FieldCriteria criteria)
          Returns detailed information of the given attributes for a list of Field objects specified by the field ids.
 List<Field> getListFieldObjects(String formName, int fieldTypeMask, long changedSince)
          Returns detailed information of all (accessible) fields that match with the given criteria.
 List<Field> getListFieldObjects(String formName, int fieldTypeMask, long changedSince, FieldCriteria criteria)
          Returns detailed information for all (accessible) Field objects that match with the given criteria.
 List<String> getListFilter()
          Returns names of all (accessible) filters in ARSystem server.
 List<String> getListFilter(long changedSince)
          Returns names of all (accessible) filters that is modified after the provided time .
 List<String> getListFilter(String formName)
          Returns names of all (accessible) filters that is associated with the given form.
 List<String> getListFilter(String formName, long changedSince)
          Returns names of all (accessible) filters that is modified after the provided time, and associated with the given form.
 List<String> getListFilter(String formName, long changedSince, ObjectPropertyMap propsToSearch)
          Returns all the name of all (accessible) filters that match with the given criteria.
 List<Filter> getListFilterObjects()
          return the detail of all (accessible) Filter objects
 List<Filter> getListFilterObjects(List<String> names)
          return the detail of all (accessible) requested Filter objects
 List<Filter> getListFilterObjects(List<String> names, FilterCriteria criteria)
          return the detail of all (accessible) requested Filter objects
 List<Filter> getListFilterObjects(List<String> names, long changedSince, FilterCriteria criteria)
          return the detail of all (accessible) requested Filter objects that are modified after the given timestamp
 List<Filter> getListFilterObjects(String formName)
          return the detail of all (accessible) Filter objects that are associated with the given form
 List<Filter> getListFilterObjects(String formName, long changedSince)
          return the detail of all (accessible) Filter objects that are associated with the given form and modified after the provided timestamp
 List<Filter> getListFilterObjects(String formName, long changedSince, FilterCriteria criteria)
          return the detail information of all (accessible) Filter objects that are associated with the given form and modified after the provided timestamp
 List<String> getListForm()
          return the name of all (accessible) forms on the server.
 List<String> getListForm(long changedSince)
          return the name of all (accessible)forms that are modified after the specified time.
 List<String> getListForm(long changedSince, int formType)
          return the name of all (accessible) forms that match the sepcified criteria
 List<String> getListForm(long changedSince, int formType, String formName)
          return the name of all (accessible) forms that match the sepcified criteria
 List<String> getListForm(long changedSince, int formType, String formName, int[] fieldIds)
          return the name of all (accessible) forms that match the sepcified criteria
 List<String> getListForm(long changedSince, int formType, String formName, int[] fieldIds, ObjectPropertyMap propsToSearch)
          return the name of all (accessible) forms that match the specified criteria
 List<FormAliasInfo> getListFormAliases(long changedSince, int formType, String formName, int[] fieldIds, String vuiLabel)
          Returns a list of form names and corresponding aliases that match the given criteria.
 List<Form> getListFormObjects(long changedSince, int formType, String formName, int[] fieldIds, FormCriteria criteria)
          Returns detailed information of all (accessible) Form objects that match the specified criteria.
 List<GroupInfo> getListGroup(String user, String password)
          Returns a list of access control groups on the specified server.
 List<String> getListImage()
          return the names of all Image objects
 List<String> getListImage(List<String> formList)
          return the names of all Image objects that are associated with the given list of forms
 List<String> getListImage(List<String> formList, long changedSince, String imageType)
          return the names of all Image objects that match the given criteria
 List<String> getListImage(long changedSince)
          return the names of all Image objects that have been modified after the specified timestamp
 List<String> getListImage(String imageType)
          return the names of all Image objects of a specified type (ie, "jpg")
 List<Image> getListImageObjects()
          Returns detailed information for all Image objects
 List<Image> getListImageObjects(List<String> names)
          Returns detailed information for the requested Image objects
 List<Image> getListImageObjects(List<String> names, ImageCriteria criteria)
          Returns detailed information for the requested Image objects
 List<Image> getListImageObjects(List<String> names, long changedSince, ImageCriteria criteria)
          Returns detailed information for the requested Image objects and is modified after the give time
 List<Image> getListImageObjects(String formName)
          Returns detailed information for all (accessible) Image objects that are associated with the specified form
 List<Image> getListImageObjects(String formName, long changedSince)
          Returns detailed information for all Image objects that are associated with the specified form and modified after the given time.
 List<Image> getListImageObjects(String formName, long changedSince, ImageCriteria criteria)
          Returns detailed information for all Image objects specified by the criteria and ImageCriteria.
 List<String> getListJoinForm(long changedSince)
          return the name of all (accessible) Join forms Constants.AR_LIST_SCHEMA_JOIN that are modified after the specified time.
 List<LicenseInfo> getListLicense(String licenseType)
          Returns list of license info LicenseInfo for the specified type.
 List<String> getListMenu(long changedSince, List<String> forms, List<String> activeLinks)
          Returns names of all (accessible) menu that match with the given criteria.
 List<String> getListMenu(long changedSince, List<String> forms, List<String> activeLinks, ObjectPropertyMap propsToSearch)
          Returns names of all (accessible) menu that match with the given criteria
 List<Menu> getListMenuObjects(long changedSince, List<String> forms, List<String> activeLinks, MenuCriteria criteria)
          Returns detailed information of all (accessible) Menu objects that match with the given criteria.
 List<String> getListRegularForm(long changedSince)
          return the name of all (accessible) Regular forms Constants.AR_LIST_SCHEMA_REGULAR that are modified after the specified time.
 List<RoleInfo> getListRole(String application, String user, String password)
          Returns a list of roles for a user for a deployable application on the specified server.
 SQLResult getListSQL(String sqlCommand, int maxRetrieve, boolean retrieveTotalMatches)
          Returns a list of rows from the underlying SQL database on the specified server.
 SQLResult getListSQLForActiveLink(String actlinkName, int actionIndex, int actionType, Timestamp timestamp, List<Value> keywordList, List<Value> parameterList, int maxRetrieve, boolean retrieveTotalMatches)
          Reserved for AR System internal only.
 List<Integer> getListSupportFile(int fileType, String associatedObjName, int supportingId, long changedSince)
          Returns the ids of all support files that match the given criteria, and the current user has privilege to the specified objects
 List<SupportFile> getListSupportFileObjects(int fileType, String associatedObjName, int supportingId, long changedSince)
          Returns all SupportFile objects that match the given criteria, and the current user has privilege to the specified objects
 List<UserInfo> getListUser()
          Returns a list of users currently accessing the specified AR System server.
 List<UserInfo> getListUser(int type)
          Returns a list of users on the specified AR System server.
 List<UserInfo> getListUser(int type, long changedSince)
          Returns a list of users on the specified AR System server.
 List<String> getListVendorForm(long changedSince)
          return the name of all (accessible) Vendor forms Constants.AR_LIST_SCHEMA_VENDOR that are modified after the specified time.
 List<ExtFieldCandidatesInfo> getListVendorFormFieldCandidates(String vendorName, String tableName)
          Returns information about all the columns/fields candidates for Vendor form.
 List<Integer> getListView(String formName, long changedSince)
          Returns the names of all views that reside on the provided form, and modified after the given timestamp.
 List<String> getListViewForm(long changedSince)
          return the name of all (accessible) View forms (@link Constants#AR_LIST_SCHEMA_VIEW} that are modified after the specified time.
 List<ExtFieldCandidatesInfo> getListViewFormFieldCandidates(String tableName)
          Returns information about all the columns/fields candidates for View form.
 List<View> getListViewObjects(String formName, long changedSince, ViewCriteria criteria)
          Returns the detailed information of all (accessible) View objects that match with the given crteria.
 String getLocale()
          Returns the locale.
 String getLocalHostID()
          Get License host ID.
 LocalizedValueInfo getLocalizedValue(LocalizedValueCriteria criteria, LocalizedRequestInfo request)
          Gets a localized text string from the message catalog form.
 LoggingInfo getLogging()
          Returns the client-side logging information.
 Menu getMenu(String name, MenuCriteria criteria)
          return the requested menu object with information specified by MenuCriteria from AR System server.
 List<String> getMultipleCurrencyRatioSets(List<Timestamp> ratioTimestamps)
          Retrieves a list of formatted currency ratio sets valid for the time specified in the argument.
 List<LocalizedValueInfo> getMultipleLocalizedValues(LocalizedValueCriteria criteria, List<LocalizedRequestInfo> requests)
          Gets multiple localized texts from the catalog file.
 HashMap<Integer,ObjectOperationTimes> getObjectChangeTimes()
          Gets a HashMap of arserver objects and the timestamps for the last create, modify, or delete operation on each object.
 Entry getOneEntryObject(String formName, QualifierInfo qualification, List<SortInfo> sortList, int[] fieldIds, boolean useLocale, OutputInteger nMatches)
          Returns a list of Entry objects that match the provided criteria.
 Timestamp getOperationTime()
          Returns the operation time stamp.
 boolean getOverridePrevIP()
          Get the override previous IP flag
 String getPassword()
          Returns the password for the user to use to connect to the server.
 int getPort()
          Returns the port used to connect to the server.
 com.bmc.arsys.api.Proxy getProxy()
          For ARSystem internal use only.
 String getReservedParam1()
          CAUTION: For AR System internal Only
 String getServer()
          Returns the host name used to connect to the server.
 String getServerCharSet()
          Returns the servers char set as a string.
 ServerInfoMap getServerInfo(int[] requestList)
          Returns the requested configuration information for the specified server.
 int getServerRpcQueueNumber()
           
 ServerInfoMap getServerStatistics(int[] requestList)
          Returns the requested statistics for the specified server.
 String getServerVersion()
          Return the version of the server
 int getServerVersionMajor()
          return the major version number of this server
 int getServerVersionMinor()
          return the minor version number of this server
 String getServerVersionPatch()
          return the patch/build number of this server
 SupportFile getSupportFile(String associatedObjName, int fileId)
          Retrieves the property of the support file that is associated with the given object and with a specific file id
 SupportFile getSupportFile(String associatedObjName, int fileId, int fileType, int supportingId, String filePath)
          Retrieves the content of the support file indicated by the key information into a local file identified by the filePath.
 SupportFile getSupportFile(String associatedObjName, int fileId, String filePath)
          Retrieves the content of the support file indicated by the key information into a local file identified by the filePath.
 String getTextForErrorMessage(int msgId)
          Returns the message text for the specified error from the local catalog (in the local language).
 int getTimeoutLong()
          Get the long timeout
 int getTimeoutNormal()
          Get the normal timeout
 int getTimeoutXLong()
          Get the extra long timeout
 String getTimeZone()
          Returns the time zone.
 String getTransactionHandle()
          For ARSystem internal use only.
 String getUser()
          Returns the user login name to use to connect to the server.
 String getUserSessionGuid()
          Returns the user session authentication GUID.
 String getVersionString()
          Deprecated. as of AR System 7.1, replaced by getServerVersion()
 View getView(String formName, int viewId)
          Retrieves the form view object from the AR System server.
 View getView(String formName, int viewId, ViewCriteria criteria)
          Populates this object with information specified by ViewCriteria from the AR System server.
 int getVUIType()
          Get the VUI type
 int hashCode()
          Returns the hash code value for this instance of the current class.
 void impersonateUser(String impersonatedUser)
          Enables plug-ins, midtier or other program to run as an administrator in this session, but to perform operations as a specific user (with that user's permission and licensing in effect).
 void importDefFromBuffer(String importBuffer)
          Deprecated. as of AR System 7.5, replaced by importDefFromFile(java.lang.String) that takes care of file encoding.
 void importDefFromBuffer(String importBuffer, int optionMask)
          Deprecated. as of AR System 7.5, replaced by importDefFromFile(java.lang.String) that takes care of file encoding.
 void importDefFromBuffer(String importBuffer, int optionMask, List<StructItemInfo> items)
          Deprecated. as of AR System 7.5, replaced by importDefFromFile(java.lang.String) that takes care of file encoding.
 void importDefFromBuffer(String importBuffer, List<StructItemInfo> items)
          Deprecated. as of AR System 7.5, replaced by importDefFromFile(java.lang.String) that takes care of file encoding.
 void importDefFromFile(String filePath)
          Import all definitions into the server from given file.
 void importDefFromFile(String filePath, int optionMask)
          Import all definitions, using the given import option, into the server from given file This operation can be performed by users with AR System administrator privileges only.
 void importDefFromFile(String filePath, int optionMask, List<StructItemInfo> items)
          Import the provided object definitions into the server using the specified import option.
 void importDefFromFile(String filePath, List<StructItemInfo> items)
          Import given object definitions into the server from given file.
 boolean isAdministrator()
          Checks if the user is an member of the Administrator group.
 boolean isMemberOfCustomizeGroup()
          Checks if the user is a member of the Customize group.
 boolean isMemberOfGroup(int groupId)
          Return is the current user member of the specified group
 boolean isProxyInContext()
          For ARSystem internal use only.
 boolean isSubAdministrator()
          Checks if the user is a member of the Subadministrator group.
 void login()
          Logs in to the server and verifies the user.
 void logout()
          Releases the user from the server, and clears the user from ARServerUser.
 String mergeEntry(String formName, Entry entry, int nMergeType)
          Merges an existing entry into the indicated form on the specified server.
 AssignInfo parseAssignment(String toForm, int fieldId, String fromForm, String expression)
          Parses a given readable assignment into internal structure
 AssignInfo parseAssignment(String assignString, String queryString, Field assignField, List<Field> fieldList1, List<Field> fieldList2, String form, String server, int currentScreen, boolean idOk, boolean fromSQL, boolean fromFilterAPI, int queryContext)
          Constructs a AssignInfo object given a string representation.
 Object parseFilterQualification(String form, String qualification)
          Parse a qualification that can be used with in a Filter Run If qualification
 QualifierInfo parseQualification(String queryString, List<Field> fieldList1, List<Field> fieldList2, int queryContext)
          Constructs a QualifierInfo object given a string representation.
 QualifierInfo parseQualification(String form, String qualification)
          Parses a given readable qualification string into internal structure.
 QualifierInfo parseQualification(String form, String vui, String qualification)
          Parses a given qualification into internal structure.
 QualifierInfo parseSetIfQualification(String form1, String form2, String qualification)
          Parses a given qualification (used as Set-If condition of a SetFields workflow action) into internal structure
 void registerForAlerts(int clientPort, int registrationFlags)
          Register a client with the server to receive alert signals.
 void removeClientManagedTransaction()
          Removes a client managed transaction handle from the ARServerUser

This call is reserved for future use.
 void runEscalation(String escalation)
          Run Escalation
 void setActiveLink(ActiveLink object)
          Updates this active link on the database.
 void setApplicationState(String applicationName, String newState)
          Sets the state of a given application
 void setAuthentication(String authentication)
          Sets the authentication string.
 void setChunkResponseSize(int chunkResponseSize)
          Set the chunk response size
 void setClientManagedTransaction(String transactionHandle)
          Sets a client managed transaction.
 void setClientType(int clientType)
          Set the client type
 void setContainer(Container object)
          Updates the definition of the given container on the server.
 void setContainer(Container object, boolean removeInvalidReference)
          Updates the definition of the given container on the server.
 void setCustomDateFormat(String customDateFormat)
          Sets the custom date format.
 void setCustomTimeFormat(String customTimeFormat)
          Sets the custom time format.
 void setDefaultOutputDirectory(String defaultOutputDirectory)
           
 void setEntry(String formName, String entryId, Entry entry, Timestamp getTime, int nOption)
          Updates an the given entry in ARSystem server.
 void setEscalation(Escalation object)
          Updates this Escalation object on ARSystem server
 void setExtendedClassRegistry(ExtendedClassRegistry ecr)
          Sets the class extension registry object.
 void setField(Field object)
          Saves the changes made to the form field object into AR System server.
 void setFilter(Filter object)
          Updates this Filter object onto ARSystem server.
 void setForm(Form obj)
          Saves the changes made to the form object into AR System server
 void setImage(Image obj)
          Saves the changes made to the image object into AR System server
 void setLocale(String locale)
          Sets the locale.
 void setLogging(LoggingInfo info)
          Activates and deactivates client-side logging of server activities.
 void setLogInterface(IARServerLogInterface logInterface)
          Sets the log interface used by client-side logging.
 void setMenu(Menu object)
          Saves the changes made to the menu field object into AR System server
 void setMultipleFields(List<Field> fields)
          Saves the changes made to the form fields into ARSystem server.
 void setNativeAuthenticationInfo(ARNativeAuthenticationInfo userInfo)
          Sets the user name, authentication string, and user session authentication GUID from an instance of ARNativeAuthenticationInfo.
 void setOverridePrevIP(boolean overridePrevIP)
          Set the override previous IP flag
 void setPassword(String password)
          Sets the password for the user to use to connect to the server.
 void setPort(int serverPort)
          Sets the port used to connect to the server.
 void setProxy(com.bmc.arsys.api.Proxy prxy)
          For ARSystem internal use only.
 void setReservedParam1(String pParam)
          CAUTION: For AR System internal Only
 void setServer(String server)
          Sets the host name used to connect to the server.
 void setServerInfo(ServerInfoMap serverInfoMap)
          Updates the indicated configuration information for the specified server.
 void setSupportFile(SupportFile supportFile)
          Updates this support file onto ARSystem server
 void setTimeoutLong(int timeoutLong)
          Set the long timeout
 void setTimeoutNormal(int timeoutNormal)
          Set the normal timeout
 void setTimeoutXLong(int timeoutXLong)
          Set the extra long timeout
 void setTimeZone(String timeZone)
          Sets the time zone.
 void setUser(String user)
          Sets the user login name to use to connect to the server.
 void setView(View object)
          Updates this view on the database
 void setVUIType(int vuiType)
          Set the VUI type
 void signalServer(Map<SignalType,String> signals)
          send a signal to the server to perform the indicated op, i.e.
 List<String> startRecording(int recordingMode, String fileNamePrefix)
          Starts API recording.
 void stopRecording()
          Stops Api Recording.
 String toString()
          Returns a string description of the object.
 void useAdminRpcQueue()
          Connect to the server using the admin queue.
 void useDefaultRpcQueue()
          Connect to the server using the default queue, which is either List or Fast queue
 void usePrivateRpcQueue(int rpcProgramNum)
          Connect to the server using a private queue
 LicenseValidInfo validateLicense(String licenseType)
          Validates license info.
 List<LicenseValidInfo> validateMultipleLicense(List<String> licenseTypes)
          Validates multiple license info.
 void verifyUser()
          Returns user privilege flags.
 void wfdClearAllBreakpoints()
          Clear All Breakpoints
 void wfdClearBreakpoint(int bpId)
          Clear Breakpoint
 int[] wfdExecute(int mode)
          Tell the debug worker thread to begin execution
 WfdDebugLocation wfdGetDebugLocation(int depth)
          returns the current location of the debug thread
 int wfdGetDebugMode()
          Get debug mode, indicating which stopping points are enforced
 List<Entry> wfdGetFieldValues(int depth)
          Get field values
 QualifierInfo wfdGetFilterQual()
          Get Filter qualifier
 Value wfdGetKeywordValue(int kwId)
          Get Keyword Value
 WfdUserContext wfdGetUserContext(int mask)
          Get User context
 List<WfdBreakpoint> wfdListBreakpoints()
          List Breakpoints
 void wfdSetBreakpoint(int errorCode, WfdBreakpoint bp)
          Set Breakpoint
 void wfdSetDebugMode(int mode)
          Set debug mode, indicating which stopping points to enforce
 void wfdSetFieldValues(List<Entry> fieldValues)
          Set field values
 void wfdSetQualifierResult(boolean result)
          Set qualifier result
 void wfdTerminateAPI(int errorCode)
          Terminate API
 String xmlCreateEntry(String inputMapping, String inputDoc, String outputMapping, String optionDoc)
          AR System internal use only.
 String xmlExecuteService(String queryMapping, String queryDoc, String inputMapping, String inputDoc, String outputMapping, String optionDoc)
          AR System internal use only.
 String xmlGetEntry(String queryMapping, String queryDoc, String outputMapping, String optionDoc)
          AR System internal use only.
 String xmlSetEntry(String queryMapping, String queryDoc, String inputMapping, String inputDoc, String outputMapping, String optionDoc)
          AR System internal use only.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

AR_RPC_ADMIN_QUEUE

public static final int AR_RPC_ADMIN_QUEUE
The admin queue RPC program number

See Also:
Constant Field Values

AR_RPC_DEFAULT_QUEUE

public static final int AR_RPC_DEFAULT_QUEUE
The default queue RPC program number

See Also:
Constant Field Values

AR_RPC_SPEC_QUEUE_MIN

public static final int AR_RPC_SPEC_QUEUE_MIN
the range for the special queue. this includes dashboards, fast and list queues

See Also:
Constant Field Values

AR_RPC_SPEC_QUEUE_MAX

public static final int AR_RPC_SPEC_QUEUE_MAX
See Also:
Constant Field Values

AR_RPC_PRIVATE_QUEUE_MIN

public static final int AR_RPC_PRIVATE_QUEUE_MIN
the range for the private queue

See Also:
Constant Field Values

AR_RPC_PRIVATE_QUEUE_MAX

public static final int AR_RPC_PRIVATE_QUEUE_MAX
See Also:
Constant Field Values
Constructor Detail

ARServerUser

public ARServerUser()
Constructs an ARServerUser with no members initialized.


ARServerUser

public ARServerUser(String user,
                    String password,
                    String locale,
                    String server)
Constructs an ARServerUser with user name, password, locale, and server initialized.


ARServerUser

public ARServerUser(String user,
                    String password,
                    String authentication,
                    String locale,
                    String server)
Constructs an ARServerUser with user name, password, locale, and server initialized. Does not specify the authentication string or server port.


ARServerUser

public ARServerUser(String user,
                    String password,
                    String authentication,
                    String locale,
                    String server,
                    int serverPort)
Constructs an ARServerUser with user name, password, authentication string, locale, server, and server port initialized.


ARServerUser

public ARServerUser(String user,
                    String password,
                    String locale,
                    String server,
                    int serverPort)
Constructs an ARServerUser with user name, password, locale, server, and server port initialized. Does not specify the authentication string.


ARServerUser

public ARServerUser(String user,
                    String password,
                    String authentication,
                    String locale,
                    String timeZone,
                    String customDateFormat,
                    String customTimeFormat,
                    String server)
Constructs an ARServerUser with user name, password, authentication string, locale, time zone, date and time formats, and server initialized. Does not specify the server port.

Parameters:
timeZone -
customDateFormat -
customTimeFormat -

ARServerUser

public ARServerUser(ARNativeAuthenticationInfo userInfo,
                    String locale,
                    String server)
Constructs an ARServerUser with user name, authentication string, locale, and server initialized. User name and authenication string are retrieved from the userInfo parameter. Does not specify password or server port.

Parameters:
userInfo - User authentication information for programs that implement the ARNativeAuthenticationInfo interface
Method Detail

login

public void login()
           throws ARException
Logs in to the server and verifies the user.

Throws:
ARException - if invalid login

logout

public void logout()
Releases the user from the server, and clears the user from ARServerUser. Call this to avoid resource leaks.


clear

@Deprecated
public void clear()
Deprecated. as of AR System 7.1, replaced by logout()

Clears all of the references to member objects.


getCacheId

public long getCacheId()
Returns the cache ID. The server allocates the cache, stores user information in it, and uses that information for each API call.

Returns:
long ID of the server user information cache area

getOperationTime

public Timestamp getOperationTime()
Returns the operation time stamp.

Returns:
Timestamp date and time of the last operation. Set by the server for each API call.

getUser

public String getUser()
Returns the user login name to use to connect to the server.

Returns:
String user login name. The privileges associated with this user determine whether the API function call can be performed.

setUser

public void setUser(String user)
Sets the user login name to use to connect to the server.

Parameters:
user - String user login name. The privileges associated with this user determine whether the API function call can be performed.

getPassword

public String getPassword()
Returns the password for the user to use to connect to the server.

Returns:
String password in clear text. The API encrypts the password before sending it to the server.

setPassword

public void setPassword(String password)
Sets the password for the user to use to connect to the server.

Parameters:
password - String password in clear text. The API encrypts the password before sending it to the server.

getAuthentication

public String getAuthentication()
Returns the authentication string.

Returns:
String authentication string, for example, the network domain

setAuthentication

public void setAuthentication(String authentication)
Sets the authentication string.

Parameters:
authentication - String authentication string, for example, the network domain

getUserSessionGuid

public String getUserSessionGuid()
Returns the user session authentication GUID. Your inplementation of ARNativeAuthenticationInfo supplies the user session authentication GUID which is set into this ARServerUser. API programs cannot use the user session authentication GUID in this release.

Returns:
String user session authentication GUID

setNativeAuthenticationInfo

public void setNativeAuthenticationInfo(ARNativeAuthenticationInfo userInfo)
Sets the user name, authentication string, and user session authentication GUID from an instance of ARNativeAuthenticationInfo. Sets the password to the empty string.

Parameters:
userInfo - ARNativeAuthenticationInfo that can return the required values

getLocale

public String getLocale()
Returns the locale. The locale is used to find an error message (if a message catalog exists), to format date and time strings, for sorting, and for comparing values.

Returns:
String locale in the form language[_territory[.codeset]][@modifier]

setLocale

public void setLocale(String locale)
Sets the locale. The locale is used to find an error message (if a message catalog exists), to format date and time strings, for sorting, and for comparing values.

Parameters:
locale - String locale in the form language[_territory[.codeset]][@modifier]

getTimeZone

public String getTimeZone()
Returns the time zone.

Returns:
String time zone

setTimeZone

public void setTimeZone(String timeZone)
Sets the time zone.

Parameters:
timeZone - String time zone

getCustomDateFormat

public String getCustomDateFormat()
Returns the custom date format.


setCustomDateFormat

public void setCustomDateFormat(String customDateFormat)
Sets the custom date format.


getCustomTimeFormat

public String getCustomTimeFormat()
Returns the custom time format.


setCustomTimeFormat

public void setCustomTimeFormat(String customTimeFormat)
Sets the custom time format.


getPort

public int getPort()
Returns the port used to connect to the server.

Returns:
server port number

setPort

public void setPort(int serverPort)
Sets the port used to connect to the server.

Parameters:
serverPort - server port number

getServer

public String getServer()
Returns the host name used to connect to the server.

Returns:
String server host name

setServer

public void setServer(String server)
Sets the host name used to connect to the server. After you call setServer, you must call login() before you can successfully call any method that accesses the server.

Parameters:
server - String server host name

getLastStatus

public List<StatusInfo> getLastStatus()
Returns the last operation status list.

Returns:
list of StatusInfo status objects

isAdministrator

public boolean isAdministrator()
                        throws ARException
Checks if the user is an member of the Administrator group.

Returns:
boolean true if and only if the user is an Administrator.
Throws:
ARException

isSubAdministrator

public boolean isSubAdministrator()
                           throws ARException
Checks if the user is a member of the Subadministrator group.

Returns:
boolean true if and only if the user is a Subadministrator
Throws:
ARException

isMemberOfCustomizeGroup

public boolean isMemberOfCustomizeGroup()
                                 throws ARException
Checks if the user is a member of the Customize group.

Returns:
boolean true if and only if the user is a member of the Customize group
Throws:
ARException

getLogging

public LoggingInfo getLogging()
Returns the client-side logging information.

Returns:
LoggingInfo client-side logging information
See Also:
setLogging(com.bmc.arsys.api.LoggingInfo)

setLogging

public void setLogging(LoggingInfo info)
                throws ARException
Activates and deactivates client-side logging of server activities. Logged activities include AR Filter transactions, database transactions, API calls, and Plug-in operations.

Parameters:
info - LoggingInfo client-side logging information
Throws:
ARException

setLogInterface

public void setLogInterface(IARServerLogInterface logInterface)
Sets the log interface used by client-side logging.

Parameters:
logInterface - IARServerLogInterface log interface

getProxy

public com.bmc.arsys.api.Proxy getProxy()
For ARSystem internal use only.


setProxy

public void setProxy(com.bmc.arsys.api.Proxy prxy)
For ARSystem internal use only.


isProxyInContext

public boolean isProxyInContext()
For ARSystem internal use only.


getVersionString

@Deprecated
public String getVersionString()
Deprecated. as of AR System 7.1, replaced by getServerVersion()

Returns the version of server.


startRecording

public List<String> startRecording(int recordingMode,
                                   String fileNamePrefix)
Starts API recording. API recording writes API arguments and results to log files. API recording creates the files in the current working directory. The call log is named fileNamePrefix_arapicmd.log. The results log is named fileNamePrefix_arapires.log. Settings in the API configuration file can also enable API recording. But by calling this method and stopRecording() a client program can start, stop, and changes API recording during its execution.

Parameters:
recordingMode - bit mask that enables and controls logging
  • 0 means no logging.
  • These values set independent features:
  • 1 - enable logging
  • 2 - append log output to the existing files
  • 4 - log start and finish times
  • 8 - log elapsed time in milliseconds
  • 16 - write both the call and result information in the result log
  • 32 - do not log results
  • 64 - buffer the file output
      fileNamePrefix - String prefix for the log files. If no fileNamePrefix parameter is specified for this method, the value is the concatination of the user name, the server name, and the port number.
      Returns:
      the file names for the API argument and result logs

stopRecording

public void stopRecording()
Stops Api Recording.

See Also:
startRecording(int, java.lang.String)

verifyUser

public void verifyUser()
                throws ARException
Returns user privilege flags.

Throws:
ARException - if user is not verified

createForm

public void createForm(Form obj)
                throws ARException
Creates this form on the server specified in the ARServerUser. The nine required core fields are automatically associated with this new form.

Throws:
ARException - if form is not created

deleteForm

public void deleteForm(String formName,
                       int deleteOption)
                throws ARException
Deletes obj form from the server specified in the ARServerUser and deletes any container references to obj form. Depending on the delete option you specify, the form is deleted from the server immediately and is not returned to users who request information about forms. In addition, the system deletes all entries, fields, views (VUIs), active links, escalations, and filters associated with the form and all containers owned by the form.

Parameters:
formName - the name of the form requested
deleteOption - the option to take when the user choose to delete the form.deleteOption is a bitmask value indicating the action to take if the specified form contains entries(applicable for base forms only) or is a member of a join form. The values are:
  • Bit 0 Constants.AR_DEFAULT_DELETE_OPTION: server object default delete option For locked objects, fails the delete attempt.For Forms, same as AR_SCHEMA_CLEAN_DELETE
  • Bit 0 Constants.AR_SCHEMA_CLEAN_DELETE: Delete form only when there is no dependancy and there is no data in the schema,set the bit to zero(0). This is ignored in case of a join form.Applicable for regular forms only.
  • Bit 1 Constants.AR_SCHEMA_DATA_DELETE: Delete form even if there is a dependency.All the specified forms will be deleted.only applicable for regular forms.
  • Bit 2 Constants.AR_SCHEMA_FORCE_DELETE: delete form even there is dependency.all the invalid schemas will be deleted.this option overrides deleteOption 1.
  • Bit 4 Constants.AR_LOCK_BLOCK_DELETE: delete the given object and all objects that are locked with same key.only applicable for locked objects
  • Bit 8 Constants.AR_SCHEMA_SHADOW_DELETE: delete archive/audit form even if it is enabled or part of a lock object. Applicable for both regular forms and join forms.
Throws:
ARException - if form is not deleted

getForm

public Form getForm(String formName)
             throws ARException
return the requested Form object from AR System server.

Parameters:
formName - the name of the form requested
Throws:
ARException - if object is not loaded

getForm

public Form getForm(String formName,
                    FormCriteria criteria)
             throws ARException
return the requested Form object from AR System server.

Parameters:
formName - the name of the form requested
criteria - the attribute returned for the Form object
Throws:
ARException - if object is not loaded

setForm

public void setForm(Form obj)
             throws ARException
Saves the changes made to the form object into AR System server

Throws:
ARException - if form is not updated

getListForm

public List<String> getListForm()
                         throws ARException
return the name of all (accessible) forms on the server. This will retrieve both visible and hidden forms.

Throws:
ARException

getListDisplayOnlyForm

public List<String> getListDisplayOnlyForm(long changedSince)
                                    throws ARException
return the name of all (accessible) Display-Only forms Constants.AR_LIST_SCHEMA_DIALOG that are modified after the specified time. This will retrieve both visible and hidden forms.

Parameters:
changedSince - a timestamp that limits the forms retrieved to those modified after the specified time. Specify 0 for this parameter to retrieve forms with any modification timestamp.
Throws:
ARException

getListViewForm

public List<String> getListViewForm(long changedSince)
                             throws ARException
return the name of all (accessible) View forms (@link Constants#AR_LIST_SCHEMA_VIEW} that are modified after the specified time. This will retrieve both visible and hidden forms.

Parameters:
changedSince - a timestamp that limits the forms retrieved to those modified after the specified time. Specify 0 for this parameter to retrieve forms with any modification timestamp.
Throws:
ARException

getListVendorForm

public List<String> getListVendorForm(long changedSince)
                               throws ARException
return the name of all (accessible) Vendor forms Constants.AR_LIST_SCHEMA_VENDOR that are modified after the specified time. This will retrieve both visible and hidden forms.

Parameters:
changedSince - a timestamp that limits the forms retrieved to those modified after the specified time. Specify 0 for this parameter to retrieve forms with any modification timestamp.
Throws:
ARException

getListJoinForm

public List<String> getListJoinForm(long changedSince)
                             throws ARException
return the name of all (accessible) Join forms Constants.AR_LIST_SCHEMA_JOIN that are modified after the specified time. This will retrieve both visible and hidden forms.

Parameters:
changedSince - a timestamp that limits the forms retrieved to those modified after the specified time. Specify 0 for this parameter to retrieve forms with any modification timestamp.
Throws:
ARException

getListRegularForm

public List<String> getListRegularForm(long changedSince)
                                throws ARException
return the name of all (accessible) Regular forms Constants.AR_LIST_SCHEMA_REGULAR that are modified after the specified time. This will retrieve both visible and hidden forms.

Parameters:
changedSince - a timestamp that limits the forms retrieved to those modified after the specified time. Specify 0 for this parameter to retrieve forms with any modification timestamp.
Throws:
ARException

getListForm

public List<String> getListForm(long changedSince)
                         throws ARException
return the name of all (accessible)forms that are modified after the specified time. This will retrieve both visible and hidden forms.

Parameters:
changedSince - a timestamp that limits the forms retrieved to those modified after the specified time. Specify 0 for this parameter to retrieve forms with any modification timestamp.
Throws:
ARException

getListForm

public List<String> getListForm(long changedSince,
                                int formType)
                         throws ARException
return the name of all (accessible) forms that match the sepcified criteria

Parameters:
changedSince - a timestamp that limits the forms retrieved to those modified after the specified time. Specify 0 for this parameter to retrieve forms with any modification timestamp.
formType - the type of forms to retrieve. The type can be: To retrieve both visible and hidden forms, add 1024 (Constants.AR_HIDDEN_INCREMENT) to the form type. For example, specify Constants.AR_LIST_SCHEMA_REGULAR | Constants.AR_HIDDEN_INCREMENT for this parameter.
Throws:
ARException

getListForm

public List<String> getListForm(long changedSince,
                                int formType,
                                String formName)
                         throws ARException
return the name of all (accessible) forms that match the sepcified criteria

Parameters:
changedSince - a timestamp that limits the forms retrieved to those modified after the specified time. Specify 0 for this parameter to retrieve forms with any modification timestamp.
formType - the type of forms to retrieve. The type can be: To retrieve both visible and hidden forms, add 1024 (Constants.AR_HIDDEN_INCREMENT) to the form type. For example, specify Constants.AR_LIST_SCHEMA_REGULAR | Constants.AR_HIDDEN_INCREMENT for this parameter.
formName - If the formType is AR_LIST_SCHEMA_UPLINK, this parameter specifies the form upon which the retrieved form depends on. If the schemaType is AR_LIST_SCHEMA_DOWNLINK, this parameter specifies the form that depends on the retrieved form. This parameter is ignored if you don't specify AR_LIST_SCHEMA_UPLINK or AR_LIST_SCHEMA_DOWNLINK as the formType
Throws:
ARException

getListForm

public List<String> getListForm(long changedSince,
                                int formType,
                                String formName,
                                int[] fieldIds)
                         throws ARException
return the name of all (accessible) forms that match the sepcified criteria

Parameters:
changedSince - a timestamp that limits the forms retrieved to those modified after the specified time. Specify 0 for this parameter to retrieve forms with any modification timestamp.
formType - the type of forms to retrieve. The type can be: To retrieve both visible and hidden forms, add 1024 (Constants.AR_HIDDEN_INCREMENT) to the form type. For example, specify Constants.AR_LIST_SCHEMA_REGULAR | Constants.AR_HIDDEN_INCREMENT for this parameter.
formName - If the formType is AR_LIST_SCHEMA_UPLINK, this parameter specifies the form upon which the retrieved form depends on. If the schemaType is AR_LIST_SCHEMA_DOWNLINK, this parameter specifies the form that depends on the retrieved form. This parameter is ignored if you don't specify AR_LIST_SCHEMA_UPLINK or AR_LIST_SCHEMA_DOWNLINK as the formType
fieldIds - this is a list of form fields, and the API call only return the the forms that containing all these fields in this list
Throws:
ARException

getListForm

public List<String> getListForm(long changedSince,
                                int formType,
                                String formName,
                                int[] fieldIds,
                                ObjectPropertyMap propsToSearch)
                         throws ARException
return the name of all (accessible) forms that match the specified criteria

Parameters:
changedSince - a timestamp that limits the forms retrieved to those modified after the specified time. Specify 0 for this parameter to retrieve forms with any modification timestamp.
formType - the type of forms to retrieve. The type can be: To retrieve both visible and hidden forms, add 1024 (Constants.AR_HIDDEN_INCREMENT) to the form type. For example, specify Constants.AR_LIST_SCHEMA_REGULAR | Constants.AR_HIDDEN_INCREMENT for this parameter.
formName - If the formType is AR_LIST_SCHEMA_UPLINK, this parameter specifies the form upon which the retrieved form depends on. If the schemaType is AR_LIST_SCHEMA_DOWNLINK, this parameter specifies the form that depends on the retrieved form. This parameter is ignored if you don't specify AR_LIST_SCHEMA_UPLINK or AR_LIST_SCHEMA_DOWNLINK as the formType
fieldIds - A list of form fields, and the API call only return the the forms that containing all these fields in this list.
propsToSearch - A list of object properties to search for. Returns all forms that match the object properties, for example, the application owner.
Throws:
ARException

getListFormAliases

public List<FormAliasInfo> getListFormAliases(long changedSince,
                                              int formType,
                                              String formName,
                                              int[] fieldIds,
                                              String vuiLabel)
                                       throws ARException
Returns a list of form names and corresponding aliases that match the given criteria.

Parameters:
changedSince - a timestamp that limits the forms retrieved to those modified after the specified time. Specify 0 for this parameter to retrieve forms with any modification timestamp.
formType - the type of forms to retrieve. The type can be: To retrieve both visible and hidden forms, add 1024 (Constants.AR_HIDDEN_INCREMENT) to the form type. For example, specify Constants.AR_LIST_SCHEMA_REGULAR | Constants.AR_HIDDEN_INCREMENT for this parameter.
formName - If the formType is AR_LIST_SCHEMA_UPLINK, this parameter specifies the form upon which the retrieved form depends on. If the schemaType is AR_LIST_SCHEMA_DOWNLINK, this parameter specifies the form that depends on the retrieved form. This parameter is ignored if you don't specify AR_LIST_SCHEMA_UPLINK or AR_LIST_SCHEMA_DOWNLINK as the formType
fieldIds - A list of form fields, and the API call only return the the forms that containing all these fields in this list.
vuiLabel - Label for the specific view from which to retrieve aliases.
Returns:
list of form alias information
Throws:
ARException

getListFormObjects

public List<Form> getListFormObjects(long changedSince,
                                     int formType,
                                     String formName,
                                     int[] fieldIds,
                                     FormCriteria criteria)
                              throws ARException
Returns detailed information of all (accessible) Form objects that match the specified criteria.

Parameters:
changedSince - a timestamp that limits the forms retrieved to those modified after the specified time. Specify 0 for this parameter to retrieve forms with any modification timestamp.
formType - the type of forms to retrieve. The type can be: To retrieve both visible and hidden forms, add 1024 (Constants.AR_HIDDEN_INCREMENT) to the form type. For example, specify Constants.AR_LIST_SCHEMA_REGULAR | Constants.AR_HIDDEN_INCREMENT for this parameter.
formName - If the formType is AR_LIST_SCHEMA_UPLINK, this parameter specifies the form upon which the retrieved form depends on. If the schemaType is AR_LIST_SCHEMA_DOWNLINK, this parameter specifies the form that depends on the retrieved form. This parameter is ignored if you don't specify AR_LIST_SCHEMA_UPLINK or AR_LIST_SCHEMA_DOWNLINK as the formType
fieldIds - A list of form fields, and the API call only return the the forms that containing all these fields in this list.
criteria - the attribute returned for each Form object
Returns:
list of Form objects
Throws:
ARException

deleteFields

public void deleteFields(String form,
                         int[] fieldIds,
                         int deleteOption)
                  throws ARException
Deletes the fields with the specified IDs from the given form

Parameters:
form - Name of the form from which fields be deleted
fieldIds - list of IDs for fields to delete.
deleteOption - a value indicating the action to take if the specified field contains data or is associated with a join form or column field in the table field. The value can be:
Throws:
ARException - if fields are not deleted

getListViewFormFieldCandidates

public List<ExtFieldCandidatesInfo> getListViewFormFieldCandidates(String tableName)
                                                            throws ARException
Returns information about all the columns/fields candidates for View form.

Parameters:
tableName - the name of the view form table that contains the candidate column/field
Throws:
ARException - if information is not returned

getListVendorFormFieldCandidates

public List<ExtFieldCandidatesInfo> getListVendorFormFieldCandidates(String vendorName,
                                                                     String tableName)
                                                              throws ARException
Returns information about all the columns/fields candidates for Vendor form.

Parameters:
tableName - the name of the vendor form table that contains the candidate column/field
Throws:
ARException - if information is not returned

getListExtFormCandidates

public List<ExtFormCandidatesInfo> getListExtFormCandidates(int formType)
                                                     throws ARException
Returns a list of all external data source table (forms candidates). Users choose fields from these candidates to populate the vendor form

Throws:
ARException - if list is not returned

createContainer

public void createContainer(Container object)
                     throws ARException
Creates a new container with the given container instance on the specified server. The references to nonexistent ARSystem objects will be removed without error generated. This operation can be performed by users with AR System administrator privileges only.

Parameters:
object - the Container object to create This operation can be performed by users with AR System administrator privileges only.
Throws:
ARException - if container is not created

createContainer

public void createContainer(Container object,
                            boolean removeInvalidReference)
                     throws ARException
Creates a new container with the given container instance on the specified server. This operation can be performed by users with AR System administrator privileges only.

Parameters:
object - the Container object to create
removeInvalidReference - a flag that specifies how invalid object references are removed. If false is specified for this flag, references to nonexistent ARSystem objects will be removed without error generated. Specifying null for this parameter if you don't want to change the flag.
Throws:
ARException - if container is not created

deleteContainer

public void deleteContainer(String name,
                            int deleteOption)
                     throws ARException
Deletes the container with the indicated name from the specified server and deletes any references to the container from other containers. Objects referenced by the container are not deleted. This method can only be performed by an administrator.

Parameters:
name - the name of the container to delete
deleteOption - A bitmask indicating the action to taken. Bit 0 Constants.AR_DEFAULT_DELETE_OPTION: Server object default delete option. For locked objects, fail the delete attempt. Bit 2 Constants.AR_LOCK_BLOCK_DELETE: Delete this character menu and all objects that are locked with same key. Only applicable to locked objects.
Throws:
ARException - if container is not deleted

getContainer

public Container getContainer(String name)
                       throws ARException
retrieve the requested container object from AR System server. This operation can be performed by users with access permission for the container.

Throws:
ARException - if container is not loaded

getContainer

public Container getContainer(String name,
                              ContainerCriteria criteria)
                       throws ARException
Returns the contents of the container with the indicated name with information specified by ContainerCriteria on the specified server. It can return references of a single, specified type, of all types, or of an exclude reference type. The system returns information for accessible references and does nothing for references for which the user does not have access. This operation can be performed by users with access permission for the container.

Parameters:
name - the name of the container to return
criteria - the attribute returned for this Container object
Throws:
ARException - if container is not returned

setContainer

public void setContainer(Container object)
                  throws ARException
Updates the definition of the given container on the server. The references to nonexistent ARSystem objects will be removed without error generated. This operation can be performed by users with AR System administrator privileges only.

Parameters:
object - the Container object to create
Throws:
ARException - if container is not stored

setContainer

public void setContainer(Container object,
                         boolean removeInvalidReference)
                  throws ARException
Updates the definition of the given container on the server. This operation can be performed by users with AR System administrator privileges only.

Parameters:
object - the Container object to create
removeInvalidReference - a flag that specifies how invalid object references are removed. If false, references to nonexistent ARSystem objects will be removed without error generated. Specifying null for this parameter if you don't want to change the flag.
Throws:
ARException - if container is not stored

getListContainer

public List<String> getListContainer(long changedSince,
                                     int[] containerTypes,
                                     boolean hiddenFlag,
                                     List<ContainerOwner> ownerList,
                                     ObjectPropertyMap propsToSearch)
                              throws ARException
Returns the names of all (accessible) Container object that meet the given criteria.

Parameters:
changedSince - a timestamp that limits the containers retrieved to those modified after the specified time. Specify 0 for this parameter to retrieve containers with any modification timestamp.
containerTypes - a list of values indicating the container types to retrieve. They are:
hiddenFlag - a flag indicate if retrieve both visible and hidden containers.
ownerList - a list of container owner types that own the container
propsToSearch - list of object property to search for. Return all containers that match the object property
Returns:
list of container names
Throws:
ARException

getListContainerObjects

public List<Container> getListContainerObjects(long changedSince,
                                               int[] containerTypes,
                                               boolean hiddenFlag,
                                               List<ContainerOwner> ownerList,
                                               ObjectPropertyMap propsToSearch,
                                               ContainerCriteria criteria)
                                        throws ARException
Returns detailed information of all (accessible) Container objects that match with the given criteria

Parameters:
changedSince - a timestamp that limits the containers retrieved to those modified after the specified time. Specify 0 for this parameter to retrieve containers with any modification timestamp.
containerTypes - a list of values indicating the container types to retrieve. They are:
hiddenFlag - a flag indicate if retrieve both visible and hidden containers.
ownerList - a list of container owner types that own the container
propsToSearch - list of object property to search for. Return all containers that match the object property
criteria - the attribute returned for each container object
Returns:
list of Container objects
Throws:
ARException

getListContainerObjects

public List<Container> getListContainerObjects(List<String> containers)
                                        throws ARException
Returns detailed information for the requested Container objects

Parameters:
containers - the names of containers to retrieve
Returns:
list of Container objects
Throws:
ARException

expandMenu

public List<MenuItem> expandMenu(Menu menu)
                          throws ARException
Expands the query and file references for the specified menu definition and returns a character menu with list-type items only.

Parameters:
menu - the menu to expand
Returns:
Expanded menu content
Throws:
ARException - if menu is not expanded

expandMenu

public List<MenuItem> expandMenu(Menu menu,
                                 Entry keywordList,
                                 Entry parameterList)
                          throws ARException
Throws:
ARException

expandMenu

public List<MenuItem> expandMenu(String menuName)
                          throws ARException
Expands the query and file references for the specified menu definition and returns a character menu with list-type items only.

Parameters:
menuName - the name of the menu to expand
Returns:
Expanded menu content
Throws:
ARException

expandMenu

public List<MenuItem> expandMenu(String menuName,
                                 Entry keywordList,
                                 Entry parameterList)
                          throws ARException
Throws:
ARException

createMenu

public void createMenu(Menu object)
                throws ARException
Creates this Menu object on AR System server.

Parameters:
object - the menu object to be created in ARSystem server
Throws:
ARException - if object is not created

deleteMenu

public void deleteMenu(String name,
                       int deleteOption)
                throws ARException
Removes this specified Memu object from AR System server.

Parameters:
name - the name of the menu to delete
deleteOption - a bitmask indicating the action to take. Bit 0 Constants.AR_DEFAULT_DELETE_OPTION: Server object default delete option. For locked objects, fail the delete attempt. Bit 2 Constants.AR_LOCK_BLOCK_DELETE: Delete this character menu and all objects that are locked with same key. Only applicable to locked objects.
Throws:
ARException - if object is not removed

getMenu

public Menu getMenu(String name,
                    MenuCriteria criteria)
             throws ARException
return the requested menu object with information specified by MenuCriteria from AR System server.

Parameters:
name - the name of the menu to get
criteria - the attribute returned for this Menu object
Throws:
ARException - if object is not loaded

setMenu

public void setMenu(Menu object)
             throws ARException
Saves the changes made to the menu field object into AR System server

Parameters:
object - the menu object to be saved in the server
Throws:
ARException - if object is not saved

getListMenu

public List<String> getListMenu(long changedSince,
                                List<String> forms,
                                List<String> activeLinks)
                         throws ARException
Returns names of all (accessible) menu that match with the given criteria.

Parameters:
changedSince - a timestamp that limits the menus retrieved to those modified after the specified time. Specify 0 for this parameter to retrieve containers with any modification timestamp.
forms - a list of form names that limit the menu retrieved to the ones that referenced by field in these forms.
activeLinks - a list for activelink names that limit the menu retrieved to the ones that have a change field action with the menu.
Throws:
ARException

getListMenu

public List<String> getListMenu(long changedSince,
                                List<String> forms,
                                List<String> activeLinks,
                                ObjectPropertyMap propsToSearch)
                         throws ARException
Returns names of all (accessible) menu that match with the given criteria

Parameters:
changedSince - a timestamp that limits the menus retrieved to those modified after the specified time. Specify 0 for this parameter to retrieve menus with any modification timestamp.
forms - a list of form names that limit the menu retrieved to the ones that referenced by field in these forms.
activeLinks - a list for activelink names that limit the menu retrieved to the ones that have a change field action with the menu.
propsToSearch - A list of object properties to search for. Returns all menus that match the object properties.
Throws:
ARException

getListMenuObjects

public List<Menu> getListMenuObjects(long changedSince,
                                     List<String> forms,
                                     List<String> activeLinks,
                                     MenuCriteria criteria)
                              throws ARException
Returns detailed information of all (accessible) Menu objects that match with the given criteria.

Parameters:
changedSince - a timestamp that limits the menus retrieved to those modified after the specified time. Specify 0 for this parameter to retrieve menus with any modification timestamp.
forms - a list of form names that limit the menu retrieved to the ones that referenced by field in these forms.
activeLinks - a list for activelink names that limit the menu retrieved to the ones that have a change field action with the menu.
criteria - the attribute returned for each Menu object
Throws:
ARException - if information cannot be returned

createField

public void createField(Field object,
                        boolean isReservedRangeIdOK)
                 throws ARException
Creates a new form field with the indicated name on the specified server. Forms can contain data and nondata fields. Nondata fields serve several purposes. Trim fields enhance the appearance and usability of the form (for example, lines, boxes, or static text). Control fields provide mechanisms for executing active links (for example, menus, buttons, or toolbar buttons). Other nondata fields organize data for viewing (for example, pages and page holders) or show data from another form (for example, tables and columns). An active link can be associated with only one control field (you can, however, choose any combination of screen appearances for that field). A particular control field, however, can be associated with multiple active links. While information about nondata fields is stored on the server, they do not require storage space in the underlying database.
Privileges: This operation can be performed by users with AR System administrator privileges only.

Parameters:
object - the form field to be created in ARSystem server
isReservedRangeIdOK - a flag indicate if you can create the field with a reserved field id
Throws:
ARException - if object is not created

createMultipleFields

public void createMultipleFields(List<Field> fields)
                          throws ARException
Create new fields for a specified form in the ARSystem. The form name is specified in the Field object, so the form names in the fields have to be all same.
Privileges: This operation can be performed by users with AR System administrator privileges only.

Parameters:
fields - fields to be created in ARSystem server
Throws:
ARException - if object is not created

deleteField

public void deleteField(String form,
                        int fieldId,
                        int deleteOption)
                 throws ARException
Deletes the form field with the indicated ID from the specified server. Depending on the value you specify for the deleteOption parameter, the field is deleted from the server immediately and is not returned to users who request information about fields. When a parent field is deleted, its child fields may also be deleted. For example, deleting a page holder field will delete all pages within it. All fields within those pages are removed from the current view but not deleted. Deleting a table field will delete all columns within it.
Privileges: This operation can be performed by users with AR System administrator privileges only.

Parameters:
form - Name of the form from which fields be deleted
fieldId - IDs of the field to delete.
deleteOption - a value indicating the action to take if the specified field contains data or is associated with a join form or column field in the table field. The value can be:
Throws:
ARException - if object is not deleted

getField

public Field getField(String form,
                      int fieldId)
               throws ARException
Retrieve the requested form field object from the server.

Parameters:
form - the name of the form containing the field to retrieve
fieldId - the id of the field to retrieve
Throws:
ARException - if object is not loaded

getField

public Field getField(String form,
                      int fieldId,
                      FieldCriteria criteria)
               throws ARException
Retrieve and populate the form field object with the requested information from AR System server.

Parameters:
form - the name of the form containing the field to retrieve
fieldId - the id of the field to retrieve
criteria - the attribute returned for this Field object
Throws:
ARException - if object is not loaded

setField

public void setField(Field object)
              throws ARException
Saves the changes made to the form field object into AR System server.

Parameters:
object - the object to save
Throws:
ARException - if object is not saved

setMultipleFields

public void setMultipleFields(List<Field> fields)
                       throws ARException
Saves the changes made to the form fields into ARSystem server. The form name is specified in the Field object, so the form names in the fields have to be all same.
Privileges: This operation can be performed by users with AR System administrator privileges only.

Parameters:
fields - a list of fields to save
Throws:
ARException - if object is not saved

getListField

public List<Integer> getListField(String formName,
                                  int fieldTypeMask,
                                  long changedSince)
                           throws ARException
Returns the ids of all (accessible) fields that matches with the given criteria.

Parameters:
formName - the name of the form where the fields reside
fieldTypeMask - A bit mask value to specify types of the field. They are: bit 0: Constants.AR_FIELD_TYPE_DATA retrieve data fields bit 1: Constants.AR_FIELD_TYPE_TRIM retrieve trim fields bit 2: Constants.AR_FIELD_TYPE_CONTROL retrieve control fields bit 3: Constants.AR_FIELD_TYPE_PAGE retrieve page fields bit 4: Constants.AR_FIELD_TYPE_PAGE_HOLDER retrieve page holder fields bit 5: Constants.AR_FIELD_TYPE_TABLE retrieve table fields bit 6: Constants.AR_FIELD_TYPE_COLUMN retrieve column fields bit 7: Constants.AR_FIELD_TYPE_ATTACH retrieve attachment fields bit 8: Constants.AR_FIELD_TYPE_ATTACH_POOL retrieve attachment pool fields Constants.AR_FIELD_TYPE_ALL retrieve all type of fields
changedSince - A timestamp that limits the fields retrieved to those modified after the specified time. Specify 0 for this parameter to retrieve fields with any modification timestamp.
Returns:
list of field ids
Throws:
ARException

getListFieldObjects

public List<Field> getListFieldObjects(String formName)
                                throws ARException
Returns detailed information for all (accessible) fields on the given form.

Parameters:
formName - the name of the form containing the field to retrieve
Throws:
ARException - if information is not returned

getListFieldObjects

public List<Field> getListFieldObjects(String formName,
                                       int fieldTypeMask)
                                throws ARException
Returns detailed information of all (accessible) fields that match with the given criteria.

Parameters:
formName - the name of the form containing the field to retrieve
fieldTypeMask - A bit mask value to specify types of the field. They are: bit 0: Constants.AR_FIELD_TYPE_DATA retrieve data fields bit 1: Constants.AR_FIELD_TYPE_TRIM retrieve trim fields bit 2: Constants.AR_FIELD_TYPE_CONTROL retrieve control fields bit 3: Constants.AR_FIELD_TYPE_PAGE retrieve page fields bit 4: Constants.AR_FIELD_TYPE_PAGE_HOLDER retrieve page holder fields bit 5: Constants.AR_FIELD_TYPE_TABLE retrieve table fields bit 6: Constants.AR_FIELD_TYPE_COLUMN retrieve column fields bit 7: Constants.AR_FIELD_TYPE_ATTACH retrieve attachment fields bit 8: Constants.AR_FIELD_TYPE_ATTACH_POOL retrieve attachment pool fields Constants.AR_FIELD_TYPE_ALL retrieve all type of fields
Throws:
ARException - if information is not returned

getListFieldObjects

public List<Field> getListFieldObjects(String formName,
                                       int fieldTypeMask,
                                       long changedSince)
                                throws ARException
Returns detailed information of all (accessible) fields that match with the given criteria.

Parameters:
formName - the name of the form containing the field to retrieve
fieldTypeMask - A bit mask value to specify types of the field. They are: bit 0: Constants.AR_FIELD_TYPE_DATA retrieve data fields bit 1: Constants.AR_FIELD_TYPE_TRIM retrieve trim fields bit 2: Constants.AR_FIELD_TYPE_CONTROL retrieve control fields bit 3: Constants.AR_FIELD_TYPE_PAGE retrieve page fields bit 4: Constants.AR_FIELD_TYPE_PAGE_HOLDER retrieve page holder fields bit 5: Constants.AR_FIELD_TYPE_TABLE retrieve table fields bit 6: Constants.AR_FIELD_TYPE_COLUMN retrieve column fields bit 7: Constants.AR_FIELD_TYPE_ATTACH retrieve attachment fields bit 8: Constants.AR_FIELD_TYPE_ATTACH_POOL retrieve attachment pool fields Constants.AR_FIELD_TYPE_ALL retrieve all type of fields
changedSince - A timestamp that limits the fields retrieved to those modified after the specified time. Specify 0 for this parameter to retrieve fields with any modification timestamp.
Throws:
ARException - if information is not returned

getListFieldObjects

public List<Field> getListFieldObjects(String formName,
                                       int fieldTypeMask,
                                       long changedSince,
                                       FieldCriteria criteria)
                                throws ARException
Returns detailed information for all (accessible) Field objects that match with the given criteria.

Parameters:
formName - the name of the form containing the field to retrieve
fieldTypeMask - A bit mask value to specify types of the field. They are: bit 0: Constants.AR_FIELD_TYPE_DATA retrieve data fields bit 1: Constants.AR_FIELD_TYPE_TRIM retrieve trim fields bit 2: Constants.AR_FIELD_TYPE_CONTROL retrieve control fields bit 3: Constants.AR_FIELD_TYPE_PAGE retrieve page fields bit 4: Constants.AR_FIELD_TYPE_PAGE_HOLDER retrieve page holder fields bit 5: Constants.AR_FIELD_TYPE_TABLE retrieve table fields bit 6: Constants.AR_FIELD_TYPE_COLUMN retrieve column fields bit 7: Constants.AR_FIELD_TYPE_ATTACH retrieve attachment fields bit 8: Constants.AR_FIELD_TYPE_ATTACH_POOL retrieve attachment pool fields Constants.AR_FIELD_TYPE_ALL retrieve all type of fields
changedSince - A timestamp that limits the fields retrieved to those modified after the specified time. Specify 0 for this parameter to retrieve fields with any modification timestamp.
criteria - the infomation to retrieve
Throws:
ARException - if information is not returned

getListFieldObjects

public List<Field> getListFieldObjects(String formName,
                                       int[] fieldIds)
                                throws ARException
Returns detailed information of all attributes for a list of Field objects specified by the field ids

Parameters:
formName - the name of the form containing the field to retrieve
fieldIds - the id of fields to retrieve
Throws:
ARException - if information is not returned

getListFieldObjects

public List<Field> getListFieldObjects(String formName,
                                       int[] fieldIds,
                                       FieldCriteria criteria)
                                throws ARException
Returns detailed information of the given attributes for a list of Field objects specified by the field ids.

Parameters:
formName - the name of the form containing the field to retrieve
fieldIds - the id of fields to retrieve
criteria - the attribute returned for each Field object
Throws:
ARException - if information is not returned

createView

public void createView(View object)
                throws ARException
Creates the given View object in AR System server.

Parameters:
object - the view object to create
Throws:
ARException - if object is not saved

deleteView

public void deleteView(String formName,
                       int viewId)
                throws ARException
Removes this object on the AR System server.

Parameters:
formName - the name of the form where the view resides
viewId - the id of the view to create
Throws:
ARException - if object is not removed

getView

public View getView(String formName,
                    int viewId)
             throws ARException
Retrieves the form view object from the AR System server.

Parameters:
formName - Name of the form where the view resides
viewId - the id of the view
Returns:
Returns the view definition
Throws:
ARException

getView

public View getView(String formName,
                    int viewId,
                    ViewCriteria criteria)
             throws ARException
Populates this object with information specified by ViewCriteria from the AR System server.

Parameters:
formName - the name of the form where the view resides
viewId - the id of the view
criteria - the attribute returned for this View object
Throws:
ARException - if object is not loaded

setView

public void setView(View object)
             throws ARException
Updates this view on the database

Parameters:
object - the view object to be updated
Throws:
ARException - if object is not saved

getListView

public List<Integer> getListView(String formName,
                                 long changedSince)
                          throws ARException
Returns the names of all views that reside on the provided form, and modified after the given timestamp.

Parameters:
formName - the name of the form where the view resides
changedSince - A timestamp that limits the fields retrieved to those modified after the specified time. Specify 0 for this parameter to retrieve fields with any modification timestamp.
Throws:
ARException - if list is not found

getListViewObjects

public List<View> getListViewObjects(String formName,
                                     long changedSince,
                                     ViewCriteria criteria)
                              throws ARException
Returns the detailed information of all (accessible) View objects that match with the given crteria.

Parameters:
formName - the name of the form where the view resides
changedSince - A timestamp that limits the fields retrieved to those modified after the specified time. Specify 0 for this parameter to retrieve fields with any modification timestamp.
criteria - the attribute returned for each View object
Throws:
ARException - if list is not found

encodeDiary

public static String encodeDiary(DiaryListValue diaryList)
                          throws ARException
Takes an DiaryListValue as input and encodes it into a diary string.

Parameters:
diaryList - the diaryList to be encoded
Throws:
ARException - if DiaryListValue is not encoded

decodeDiary

public DiaryListValue decodeDiary(String encoded)
                           throws ARException
Takes an encoded diary string as input and decodes it into an DiaryListValue for easier processing.

Parameters:
encoded - the encoded diary string
Throws:
ARException - if DiaryListValue is not decoded

parseQualification

public QualifierInfo parseQualification(String queryString,
                                        List<Field> fieldList1,
                                        List<Field> fieldList2,
                                        int queryContext)
                                 throws ARException
Constructs a QualifierInfo object given a string representation.

Parameters:
queryString - representing the qualification string to be parsed
fieldList1 - An array of Field objects of the form. (fieldList1 parameter is used in two different modes.) First mode - is for parsing the queries similar to the ones created in User Tool advanced query bar. This type of queries are always defined in terms of a single form. In this case, the Field objects be from the form to which this qualifier is going to be applied. Second mode - is applicable when a qualification deals with two forms. For example, a qualification in SetFields, PushFields etc active link actions, can be defined in terms of two forms - one to which the active link belongs and the other form to/from which the data will be set. The later is termed as remote form. In this case, specify the array of Field objects of the remote form.
fieldList2 - An array of Field objects of a form. First mode - this parameter is not applicable and can be null. Second mode - applicable only in this mode. In this mode, this array of Field objects comes from the local form.
queryContext - Default value is AR_QUALCONTEXT_DEFAULT. Different parsing rules apply when a query line is encountered within an Active Link (in SetFields action, Run If condition etc), Filter, Escalation or in a Menu definition. Indicate appropriate value using AR_QUALCONTEXT_ACTIVE_LINK, AR_QUALCONTEXT_ESCALATION, AR_QUALCONTEXT_FILTER, or AR_QUALCONTEXT_MENU_DEFS.
Throws:
ARException - if object is not constructed

parseAssignment

public AssignInfo parseAssignment(String assignString,
                                  String queryString,
                                  Field assignField,
                                  List<Field> fieldList1,
                                  List<Field> fieldList2,
                                  String form,
                                  String server,
                                  int currentScreen,
                                  boolean idOk,
                                  boolean fromSQL,
                                  boolean fromFilterAPI,
                                  int queryContext)
                           throws ARException
Constructs a AssignInfo object given a string representation.

Parameters:
assignString - String representing the assignment string to be parsed
queryString - String representing the qualification for setfields/pushfields if
assignField - Field the destination for the assignment
fieldList1 - An array of Field objects of the form. (fieldList1 parameter is used in two different modes.) First mode - is for parsing the queries similar to the ones created in the advanced query bar. This type of queries are always defined in terms of a single form. In this case, the Field objects be from the form to which this qualifier is going to be applied. Second mode - is applicable when a qualification deals with two forms. For example, a qualification in SetFields, PushFields etc active link actions, can be defined in terms of two forms - one to which the active link belongs and the other form to/from which the data will be set. The later is termed as remote form. In this case, specify the array of Field objects of the remote form.
fieldList2 - An array of Field objects of a form. First mode - this parameter is not applicable and can be null. Second mode - applicable only in this mode. In this mode, this array of Field objects comes from the local form.
form - String representing the source form, if set fields from remote form
server - String representing the source server for the above form
currentScreen - int value indicating if its from current screen
idOk - flag indicating if both field ids and names should be considered while parsing
fromSQL - flag to indicate that the source for assignment is a Direct SQL call
fromFilterAPI - flag to indicate that the source is filterapi action
queryContext - context for the qualification for assignment,for eg. filter, escalation, filter setfields etc. Indicate appropriate value using Constants.AR_CONTEXT_ACTIVE_LINK, Constants.AR_CONTEXT_FILTER, Constants.AR_CONTEXT_ESCALATION, Constants.AR_CONTEXT_MENU_DEFS, Constants.AR_CONTEXT_ACTIVE_LINK_SETFIELDS, Constants.AR_CONTEXT_FILTER_SETFIELDS, Constants.AR_CONTEXT_ESCALATION_SETFIELDS, Constants.AR_CONTEXT_ESCALATION_TIME.
Returns:
AssignInfo representing the given assignment string
Throws:
ARException

formatAssignment

public String formatAssignment(AssignInfo assign,
                               List<Field> fieldList,
                               Field assignField,
                               boolean topLevel)
                        throws ARException
Constructs a String object containing the string representation of a given assignment AssignInfo object.

Parameters:
assign - AssignInfo assignment object to be formated
fieldList - An array of Field objects of the form. (fieldList1 parameter is used in two different modes.) First mode - is for parsing the queries similar to the ones created in the advanced query bar. This type of queries are always defined in terms of a single form. In this case, the Field objects be from the form to which this qualifier is going to be applied. Second mode - is applicable when a qualification deals with two forms. For example, a qualification in SetFields, PushFields etc active link actions, can be defined in terms of two forms - one to which the active link belongs and the other form to/from which the data will be set. The later is termed as remote form. In this case, specify the array of Field objects of the remote form.
assignField - Field to which assignment is being done
topLevel - flag to indicate if assignment is top level or not
Returns:
String formatted to show the assignment info as string.
Throws:
ARException

formatQualification

public String formatQualification(QualifierInfo qual,
                                  List<Field> fieldList1,
                                  List<Field> fieldList2,
                                  int queryContext,
                                  boolean isEscalation)
                           throws ARException
Constructs a String object containing the string representation of a given qualifier object.

Parameters:
qual - the QualifierInfo object to be formatted.
fieldList1 - An array of Field objects of the form. (fieldList1 parameter is used in two different modes.) First mode - is for parsing the queries similar to the ones created in the advanced query bar. This type of queries are always defined in terms of a single form. In this case, the Field objects be from the form to which this qualifier is going to be applied. Second mode - is applicable when a qualification deals with two forms. For example, a qualification in SetFields, PushFields etc active link actions, can be defined in terms of two forms - one to which the active link belongs and the other form to/from which the data will be set. The later is termed as remote form. In this case, specify the array of Field objects of the remote form.
fieldList2 - An array of Field objects of a form. First mode - this parameter is not applicable and can be null. Second mode - applicable only in this mode. In this mode, this array of Field objects comes from the local form.
queryContext - Default value is AR_QUALCONTEXT_DEFAULT. Different parsing rules apply when a query line is encountered within an Active Link (in SetFields action, Run If condition etc), Filter, Escalation or in a Menu definition. Indicate appropriate value using AR_QUALCONTEXT_ACTIVE_LINK, AR_QUALCONTEXT_ESCALATION, AR_QUALCONTEXT_FILTER, or AR_QUALCONTEXT_MENU_DEFS.
isEscalation - Default is false. Specify true only when in the this of a escalation's query line. When unsure specify 'false'.
Throws:
ARException - if object is not constructed

createEntry

public String createEntry(String formName,
                          Entry entry)
                   throws ARException
Creates a new entry in the indicated form on the specified server. You can create entries in either base forms or join forms.

Parameters:
formName - the name of the form to create entry into
entry - the entry to be created
Throws:
ARException - if entry is not created

deleteEntry

public void deleteEntry(String formName,
                        String entryId,
                        int deleteOption)
                 throws ARException
Removes the form entry with the indicated ID from the specified server. You can delete entries from base forms only. To remove entries from join forms, delete them from the underlying base forms.

Parameters:
formName - the name of the form that containing the entry
entryId - the id of the entry to be deleted
deleteOption - specify 0 for this parameter (reserved for future use).
Throws:
ARException - if entry is not removed

getEntry

public Entry getEntry(String formName,
                      String entryId,
                      int[] entryListFields)
               throws ARException
Loads the entry object from AR System as specified by the entryentryListFields data member.

Parameters:
formName - the name of the form that contains the entry
entryId - the id of the entry
entryListFields - a list of zero or more ids specifying the fields to retrieve. specifing null or zero fields for this parameter to retrieve all (accessible) fields. To minimize network traffic, specify only the fields you need if you do not require the data for all fields. If an attachment field is specified in this list, only its name, size and compress size will be returned.
Throws:
ARException - if entry is not loaded

setEntry

public void setEntry(String formName,
                     String entryId,
                     Entry entry,
                     Timestamp getTime,
                     int nOption)
              throws ARException
Updates an the given entry in ARSystem server.

Parameters:
formName - the name of the form that containing the entry
entryId - the id of the entry
entry - the entry to be updated
getTime - Time stamp identifying when the entry was last retrieved. The system compares this value with the value in the Modified Date core field to determine whether the entry has been changed since the last retrieval. The system updates the entry if the value you specify is greater than Modified Date. If not, the system returns an error. You can either retrieve the entry again and determine whether to apply your changes or specify 0 for this parameter to bypass the time stamp comparison.
nOption - Value indicating whether users can update fields specified in the join qualification (applicable for join forms only).
  • AR_JOIN_SETOPTION_NONE = 0
    Users can update fields used in the join criteria (thereby causing the entry to no longer appear in the join form).
  • AR_JOIN_SETOPTION_REF = 1
    Users cannot update fields used in the join criteria.
Throws:
ARException - if entry is not updated

executeService

public Entry executeService(String formName,
                            String entryId,
                            Entry entry,
                            int[] entryListFields)
                     throws ARException
Sends an entry to the server, executes filter workflow on the server using that input entry and then returns the output entry as the outcome of the workflow processing. Note that, the output entry is not written in the database. This method can be used with ARSystem web service to obternal external web service or with a SetFields filter action to consume an internal ARSystem service.

Parameters:
formName - the name of the form where the service is performed
entryId - the id of the entry to be used in the transaction
entry - the input entry used to trigger server workflow
entryListFields - a list of zero or more ids specifying the fields to retrieve.
Throws:
ARException

xmlExecuteService

public String xmlExecuteService(String queryMapping,
                                String queryDoc,
                                String inputMapping,
                                String inputDoc,
                                String outputMapping,
                                String optionDoc)
                         throws ARException
AR System internal use only.

Throws:
ARException

mergeEntry

public String mergeEntry(String formName,
                         Entry entry,
                         int nMergeType)
                  throws ARException
Merges an existing entry into the indicated form on the specified server. You can merge entries into base forms only. To add entries to join forms, merge them into one of the underlying base forms. The system merges data based on the access privileges of the user you specify in ARServerUser object and the createMode setting for each field. User permissions are verified for each specified field. The system generates an error if the user does not have write permission for a field or a field does not exist.

Parameters:
formName - the name of the form to merge entry into
entry - the entry to be merged
nMergeType - A value indicating the action to take if the Entry ID already exists in the target form. This parameter is ignored if you do not specify the Entry ID or the ID specified does not conflict with existing entry IDs.

To omit some field validation steps, add the appropriate increments to the merge type.

Throws:
ARException - if entry is not merged

getListEntry

public List<EntryListInfo> getListEntry(String formName,
                                        QualifierInfo qualification,
                                        int firstRetrieve,
                                        int maxRetrieve,
                                        List<SortInfo> sortList,
                                        List<EntryListFieldInfo> entryListFields,
                                        boolean useLocale,
                                        OutputInteger nMatches)
                                 throws ARException
Returns list of EntryListInfo objects that uniquely identify the entry objects that match the provided criteria.

Parameters:
formName - String name of the form that containing the entries
qualification - QualifierInfo query that determines the set of entries to retrieve
firstRetrieve - first entry to retrieve. A value of 0 represent the first entry.
maxRetrieve - maxium number of entries to retrieve
sortList - list of SortInfo instances that define the sort order for list of entries returned
entryListFields - list of EntryListFieldInfo instances that define the IDs of the fields to include in the result and the formats of the fields. The list can include any data field except diary fields and long character field. The AR System server checks the permission for each specified field and returns only those fields for which the user has read access.
useLocale - boolean flag that controls whether the result includes only entries based on locale (1 or TRUE) or all enties (0 or FALSE). The Localize Server option must be selected for the AR System server to return only localized entries. For information about the Localize Server option, see the Configuring guide.
nMatches - returns the number of (accessible) entries that match the qualification criteria. Specify null for this parameter if you do not want to retrieve this count.
Returns:
list of EntryListInfo objects that identify the result entry objects
Throws:
ARException - if list is not returned

getListEntryObjects

public List<Entry> getListEntryObjects(String formName,
                                       QualifierInfo qualification,
                                       int firstRetrieve,
                                       int maxRetrieve,
                                       List<SortInfo> sortList,
                                       int[] fieldIds,
                                       boolean useLocale,
                                       OutputInteger nMatches)
                                throws ARException
Returns a list of Entry objects that match the provided criteria.

Parameters:
formName - String name of the form that containing the entries
qualification - QualifierInfo query that determines the set of entries to retrieve
firstRetrieve - first entry to retrieve. A value of 0 represent the first entry.
maxRetrieve - maxium number of entries to retrieve
sortList - list of SortInfo instances that define the sort order for list of entries returned
fieldIds - array of int field IDs that specify the fields in the result. The fields can include any data field except diary fields and long character field. The AR System server checks the permission for each specified field and returns only those fields for which the user has read access.
useLocale - boolean flag that controls whether the result includes only entries based on locale (1 or TRUE) or all enties (0 or FALSE). The Localize Server option must be selected for the AR System server to return only localized entries. For information about the Localize Server option, see the Configuring guide.
nMatches - returns the number of (accessible) entries that match the qualification criteria. Specify null for this parameter if you do not want to retrieve this count.
Returns:
list of Entry objects that match the provided criteria
Throws:
ARException - if list is not returned

getOneEntryObject

public Entry getOneEntryObject(String formName,
                               QualifierInfo qualification,
                               List<SortInfo> sortList,
                               int[] fieldIds,
                               boolean useLocale,
                               OutputInteger nMatches)
                        throws ARException
Returns a list of Entry objects that match the provided criteria.

Parameters:
formName - String name of the form that containing the entries
qualification - QualifierInfo query that determines the set of entries to retrieve
firstRetrieve - first entry to retrieve. A value of 0 represent the first entry.
maxRetrieve - maxium number of entries to retrieve
sortList - list of SortInfo instances that define the sort order for list of entries returned
fieldIds - array of int field IDs that specify the fields in the result. The fields can include any data field except diary fields and long character field. The AR System server checks the permission for each specified field and returns only those fields for which the user has read access.
useLocale - boolean flag that controls whether the result includes only entries based on locale (1 or TRUE) or all enties (0 or FALSE). The Localize Server option must be selected for the AR System server to return only localized entries. For information about the Localize Server option, see the Configuring guide.
nMatches - returns the number of (accessible) entries that match the qualification criteria. Specify null for this parameter if you do not want to retrieve this count.
Returns:
list of Entry objects that match the provided criteria
Throws:
ARException - if list is not returned

getListEntryObjects

public List<Entry> getListEntryObjects(String formName,
                                       List<String> entryIds,
                                       int[] fieldIds)
                                throws ARException
Returns a list of Entry objects that match the provided criteria.

Parameters:
formName - String name of the form that containing the entries
entryIds - list of String IDs of the entries retrieve
fieldIds - array of int field IDs that determine the fields in the result. The fields can include any data field except diary fields and long character field. The AR System server checks the permission for each specified field and returns only those fields for which the user has read access.
Returns:
list of Entry objects that match the provided criteria
Throws:
ARException - if list is not returned

getListEntryObjects

public void getListEntryObjects(String formName,
                                QualifierInfo qualification,
                                int firstRetrieve,
                                int maxRetrieve,
                                List<SortInfo> sortList,
                                int[] fieldIds,
                                boolean useLocale,
                                OutputInteger nMatches,
                                IARRowIterator iterator)
                         throws ARException
Applies the iteratorCallback method of the iterator parameter to each Entry object that matches the provided criteria.

Parameters:
formName - String name of the form that containing the entries
qualification - QualifierInfo query that determines the set of entries to retrieve
firstRetrieve - first entry to retrieve. A value of 0 represent the first entry.
maxRetrieve - maxium number of entries to retrieve
sortList - list of SortInfo instances that define the sort order for list of entries returned
fieldIds - array of int field IDs that specify the fields in the result. The fields can include any data field except diary fields and long character field. The AR System server checks the permission for each specified field and returns only those fields for which the user has read access.
useLocale - boolean flag that controls whether the result includes only entries based on locale (1 or TRUE) or all enties (0 or FALSE). The Localize Server option must be selected for the AR System server to return only localized entries. For information about the Localize Server option, see the Configuring guide.
nMatches - returns the number of (accessible) entries that match the qualification criteria. Specify null for this parameter if you do not want to retrieve this count.
iterator - instance of a class that implements IARRowIterator interface. The implementation of this class provides the callback function that this method applies to each Entry object that matches the provided criteria.
Throws:
ARException - if search fails
See Also:
IARRowIterator

getListEntryObjects

public List<QuerySourceValues> getListEntryObjects(RegularQuery query,
                                                   int firstRetrieve,
                                                   int maxRetrieve,
                                                   boolean useLocale,
                                                   OutputInteger nMatches)
                                            throws ARException
Returns a list of QuerySourceValues objects that match the provided criteria. Supports joins, subqueries and hierarchical queries constructs.

Parameters:
query - RegularQuery query that determines the set of entries to retrieve
firstRetrieve - first entry to retrieve. A value of 0 represent the first entry.
maxRetrieve - maximum number of entries to retrieve
useLocale - boolean flag that controls whether the result includes only entries based on locale (1 or TRUE) or all enties (0 or FALSE). The Localize Server option must be selected for the AR System server to return only localized entries. For information about the Localize Server option, see the Configuring guide.
nMatches - returns the number of (accessible) entries that match the qualification criteria. Specify null for this parameter if you do not want to retrieve this count.
Returns:
list of QuerySourceValues objects that match the provided criteria
Throws:
ARException - if list is not returned

getEntryBlob

public void getEntryBlob(String formName,
                         String entryID,
                         int fieldID,
                         String filePath)
                  throws ARException
Returns the attachment that is stored in the indicated IDs on the specified server. The returned attachment will be placed into a given file path. The system returns information based on the access privileges of the user you specify in this ARServerUser object. User permissions are verified for the specified field. If the user cannot access the field, the system returns an error message.

Parameters:
formName - the name of the form that containing the entry
entryID - the id of the entry that contains the attachment
fieldID - the id of the attachment field
filePath - the path to a file that stores the return attachment
Throws:
ARException - if blob attachment is not returned

getEntryBlob

public byte[] getEntryBlob(String formName,
                           String entryID,
                           int fieldID)
                    throws ARException
Returns the attachment that is stored in the indicated IDs on the specified server. The attachment is returned as a byte array. The system returns information based on the access privileges of the user you specify in this ARServerUser object. User permissions are verified for the specified field. If the user cannot access the field, the system returns an error message.

Parameters:
formName - the name of the form that containing the entry
entryID - the id of the entry that contains the attachment
fieldID - the id of the attachment field
Returns:
the attachment bytes.
Throws:
ARException - if blob attachment is not returned

executeProcess

public ProcessResult executeProcess(String command)
                             throws ARException
Execute the indicated command on the server, wait it to finish, and bring back the result

Parameters:
command - the command to execute. Must be a valid command on the specified server.
Throws:
ARException - if command is not performed

executeProcess

public ProcessResult executeProcess(String command,
                                    boolean waitFlag)
                             throws ARException
Execute the indicated command on the server, and bring back the result if the waitFlgs instructs the method to wait for the process to finish.

Parameters:
command - the command to execute. Must be a valid command on the specified server.
waitFlag - To Execute Process, an independent process is spawned on server. Enter a boolean value of FALSE if you do not wait for the process to complete.
Throws:
ARException - if command is not performed

executeProcessForActiveLink

public ProcessResult executeProcessForActiveLink(String actlinkName,
                                                 int actionIndex,
                                                 int actionType,
                                                 int fieldId,
                                                 Timestamp timestamp,
                                                 List<Value> keywordList,
                                                 List<Value> parameterList)
                                          throws ARException
Reserved for AR System internal only.

Throws:
ARException

executeProcessForActiveLink

public ProcessResult executeProcessForActiveLink(String actlinkName,
                                                 int actionIndex,
                                                 int actionType,
                                                 int fieldId,
                                                 Timestamp timestamp,
                                                 List<Value> keywordList,
                                                 List<Value> parameterList,
                                                 boolean waitFlag)
                                          throws ARException
Reserved for AR System internal only.

Throws:
ARException

getListSQLForActiveLink

public SQLResult getListSQLForActiveLink(String actlinkName,
                                         int actionIndex,
                                         int actionType,
                                         Timestamp timestamp,
                                         List<Value> keywordList,
                                         List<Value> parameterList,
                                         int maxRetrieve,
                                         boolean retrieveTotalMatches)
                                  throws ARException
Reserved for AR System internal only.

Throws:
ARException

getActiveLink

public ActiveLink getActiveLink(String name)
                         throws ARException
return detailed information about the activelink ActiveLink from the server

Parameters:
name - the name of the activelink
Returns:
an instance of the requested activelink
Throws:
ARException

getActiveLink

public ActiveLink getActiveLink(String name,
                                ActiveLinkCriteria criteria)
                         throws ARException
Returns detailed information about the ActiveLink object

Parameters:
name - the name of the activelink to retrieve
criteria - the attribute returned for this activelink object
Returns:
ActiveLink an instance of the requested activelink
Throws:
ARException

getListActiveLink

public List<String> getListActiveLink()
                               throws ARException
Returns a list of all (accessible) active link names in the server

Throws:
ARException

getListActiveLink

public List<String> getListActiveLink(String formName)
                               throws ARException
Returns names of all (accessible) active links that are associated with the given form

Parameters:
formName - the name of the form that is associated with the active link.
Throws:
ARException

getListActiveLink

public List<String> getListActiveLink(long changedSince)
                               throws ARException
Returns names of all (accessible) active links that are modified after the given change time

Parameters:
changedSince - A timestamp that limits the activelinks retrieved to those modified after the specified time. Specify 0 for this parameter to retrieve activelinks with any modification timestamp.
Throws:
ARException

getListActiveLink

public List<String> getListActiveLink(String formName,
                                      long changedSince)
                               throws ARException
Returns names of all (accessible) active links that are associated with the given form and amodified after the provided time

Parameters:
formName - the name of the form that is associated with the active link.
changedSince - A timestamp that limits the activelinks retrieved to those modified after the specified time. Specify 0 for this parameter to retrieve activelinks with any modification timestamp.
Throws:
ARException

getListActiveLink

public List<String> getListActiveLink(String formName,
                                      long changedSince,
                                      ObjectPropertyMap propsToSearch)
                               throws ARException
Returns the name of all (accessible) active links that match with the given criteria.

Parameters:
formName - the name of the form that is associated with the active link.
changedSince - A timestamp that limits the activelinks retrieved to those modified after the specified time. Specify 0 for this parameter to retrieve activelinks with any modification timestamp.
propsToSearch - A list of object properties to search for. Returns all activelinks that match the object properties.
Throws:
ARException - if list is not returned

getListActiveLinkObjects

public List<ActiveLink> getListActiveLinkObjects(String formName)
                                          throws ARException
Returns detailed information for all (accessible) ActiveLink objects that are associated with the specified form

Parameters:
formName - the name of the form that is associated with the active link.
Throws:
ARException

getListActiveLinkObjects

public List<ActiveLink> getListActiveLinkObjects(String formName,
                                                 long changedSince)
                                          throws ARException
Returns detailed information for all (accessible) ActiveLink objects that are associated with the specified form and modified after the given time.

Parameters:
formName - the name of the form that is associated with the active link.
changedSince - A timestamp that limits the activeLinks retrieved to those modified after the specified time. Specify 0 for this parameter to retrieve activelinks with any modification timestamp.
Throws:
ARException

getListActiveLinkObjects

public List<ActiveLink> getListActiveLinkObjects(String formName,
                                                 long changedSince,
                                                 ActiveLinkCriteria criteria)
                                          throws ARException
Returns detailed information for all (accessible) ActiveLink objects specified by the criteria and ActiveLinkCriteria.

Parameters:
formName - the name of the form that is associated with the active link.
changedSince - A timestamp that limits the activelinks retrieved to those modified after the specified time.
criteria - the infomation (attributes) to retrieve
Throws:
ARException

getListActiveLinkObjects

public List<ActiveLink> getListActiveLinkObjects()
                                          throws ARException
Returns detailed information for all (accessible) ActiveLink objects

Throws:
ARException

getListActiveLinkObjects

public List<ActiveLink> getListActiveLinkObjects(List<String> names)
                                          throws ARException
Returns detailed information for the requested ActiveLink objects that the user has permission to access

Parameters:
names - the names of activelinks to retrieve
Throws:
ARException

getListActiveLinkObjects

public List<ActiveLink> getListActiveLinkObjects(List<String> names,
                                                 ActiveLinkCriteria criteria)
                                          throws ARException
Returns detailed information for the requested ActiveLink objects that the user has permission to access

Parameters:
names - the names of activelinks to retrieve
criteria - the attribute returned for each activelink object
Throws:
ARException

getListActiveLinkObjects

public List<ActiveLink> getListActiveLinkObjects(List<String> names,
                                                 long changedSince,
                                                 ActiveLinkCriteria criteria)
                                          throws ARException
Returns detailed information for the requested ActiveLink objects that the user has permission to access and is modified after the give time

Parameters:
names - the names of activelinks to retrieve
changedSince - A timestamp that limits the activelinks retrieved to those modified after the specified time. Specify 0 for this parameter to retrieve activelinks with any modification timestamp.
criteria - the attribute returned for each activelink object
Throws:
ARException

createActiveLink

public void createActiveLink(ActiveLink object)
                      throws ARException
Creates this ActiveLink object on AR System server.

Parameters:
object - the active link object to be created on the server
Throws:
ARException - if object is not created

deleteActiveLink

public void deleteActiveLink(String name,
                             int deleteOption)
                      throws ARException
Deletes the specified activelink from AR System server.

Parameters:
name - the name of the activelink to be deleted
deleteOption - A bitmask indicates the action to take: Bit 0 Constants.AR_DEFAULT_DELETE_OPTION: Server object default delete option. For locked object, fails the delete attempt. Bit 2 Constants.AR_LOCK_BLOCK_DELETE: Delete activelink and all object in the block that are locked with the same key. this is applicable only to locked objects.
Throws:
ARException - if object is not deleted

setActiveLink

public void setActiveLink(ActiveLink object)
                   throws ARException
Updates this active link on the database.

Parameters:
object - the activelink object to be updated.
Throws:
ARException - if object is not saved

getFilter

public Filter getFilter(String key)
                 throws ARException
Returns detailed information about the Filter object specified by the given name.

Parameters:
key - Name of the filter to fetch
Returns:
Filter object
Throws:
ARException

getFilter

public Filter getFilter(String key,
                        FilterCriteria criteria)
                 throws ARException
Returns detailed information about the Filter object specified by FilterCriteria and String.

Parameters:
key - Name of the filter to fetch
criteria - the attribute returned for this filter object
Throws:
ARException - if information is not returned

getListFilter

public List<String> getListFilter()
                           throws ARException
Returns names of all (accessible) filters in ARSystem server.

Throws:
ARException - if list is not returned

getListFilter

public List<String> getListFilter(String formName)
                           throws ARException
Returns names of all (accessible) filters that is associated with the given form.

Parameters:
formName - the name of the form that is associated with the return filters
Throws:
ARException - if list is not returned

getListFilter

public List<String> getListFilter(long changedSince)
                           throws ARException
Returns names of all (accessible) filters that is modified after the provided time .

Parameters:
changedSince - A timestamp that limits the filters retrieved to those modified after the specified time. Specify 0 for this parameter to retrieve filters with any modification timestamp.
Throws:
ARException - if list is not returned

getListFilter

public List<String> getListFilter(String formName,
                                  long changedSince)
                           throws ARException
Returns names of all (accessible) filters that is modified after the provided time, and associated with the given form.

Parameters:
formName - the name of the form that is associated with the return filters
changedSince - A timestamp that limits the filters retrieved to those modified after the specified time. Specify 0 for this parameter to retrieve filters with any modification timestamp.
Throws:
ARException - if list is not returned

getListFilter

public List<String> getListFilter(String formName,
                                  long changedSince,
                                  ObjectPropertyMap propsToSearch)
                           throws ARException
Returns all the name of all (accessible) filters that match with the given criteria.

Parameters:
formName - the name of the form that is associated with the filter.
changedSince - A timestamp that limits the filters retrieved to those modified after the specified time. Specify 0 for this parameter to retrieve filters with any modification timestamp.
propsToSearch - A list of object properties to search for. Returns all filters that match the object properties.
Throws:
ARException - if list is not returned

getListFilterObjects

public List<Filter> getListFilterObjects(String formName)
                                  throws ARException
return the detail of all (accessible) Filter objects that are associated with the given form

Parameters:
formName - the name of the form that is associated with the filter
Throws:
ARException

getListFilterObjects

public List<Filter> getListFilterObjects(String formName,
                                         long changedSince)
                                  throws ARException
return the detail of all (accessible) Filter objects that are associated with the given form and modified after the provided timestamp

Parameters:
formName - the name of the form that is associated with the filter
changedSince - A timestamp that limits the filters retrieved to those modified after the specified time. Specify 0 for this parameter to retrieve filters with any modification timestamp.
Throws:
ARException

getListFilterObjects

public List<Filter> getListFilterObjects(String formName,
                                         long changedSince,
                                         FilterCriteria criteria)
                                  throws ARException
return the detail information of all (accessible) Filter objects that are associated with the given form and modified after the provided timestamp

Parameters:
formName - the name of the form that is associated with the filter
changedSince - A timestamp that limits the filters retrieved to those modified after the specified time. Specify 0 for this parameter to retrieve filters with any modification timestamp.
criteria - the attribute (information) to retrieve
Throws:
ARException - if information is not returned

getListFilterObjects

public List<Filter> getListFilterObjects()
                                  throws ARException
return the detail of all (accessible) Filter objects

Throws:
ARException

getListFilterObjects

public List<Filter> getListFilterObjects(List<String> names)
                                  throws ARException
return the detail of all (accessible) requested Filter objects

Parameters:
names - the name of filters to retrieve
Throws:
ARException

getListFilterObjects

public List<Filter> getListFilterObjects(List<String> names,
                                         FilterCriteria criteria)
                                  throws ARException
return the detail of all (accessible) requested Filter objects

Parameters:
names - the name of filters to retrieve
criteria - the attribute returned for each filter object
Throws:
ARException

getListFilterObjects

public List<Filter> getListFilterObjects(List<String> names,
                                         long changedSince,
                                         FilterCriteria criteria)
                                  throws ARException
return the detail of all (accessible) requested Filter objects that are modified after the given timestamp

Parameters:
names - the name of filters to retrieve
changedSince - A timestamp that limits the filters retrieved to those modified after the specified time. Specify 0 for this parameter to retrieve filters with any modification timestamp.
criteria - the attribute returned for each filter object
Throws:
ARException

createFilter

public void createFilter(Filter object)
                  throws ARException
Creates this Filter object on AR System server.

Parameters:
object - the filter object to create
Throws:
ARException - if object is not created

deleteFilter

public void deleteFilter(String name,
                         int deleteOption)
                  throws ARException
Deletes this filter from AR System server.

Parameters:
name - the name of the filter to delete
deleteOption - A bitmask indicates the action to take: Bit 0 Constants.AR_DEFAULT_DELETE_OPTION: Server object default delete option. For locked object, fails the delete attempt. Bit 2 Constants.AR_LOCK_BLOCK_DELETE: Delete filter and all object in the block that are locked with the same key. this is applicable only to locked objects.
Throws:
ARException - if object is not deleted

setFilter

public void setFilter(Filter object)
               throws ARException
Updates this Filter object onto ARSystem server.

Parameters:
object - the filter object to be updated in the server
Throws:
ARException - if object is not saved

getEscalation

public Escalation getEscalation(String key)
                         throws ARException
Returns detailed information about the Escalation object specified by the given name.

Parameters:
key - Name of the escalation to fetch
Returns:
Escalation object
Throws:
ARException

getEscalation

public Escalation getEscalation(String key,
                                EscalationCriteria criteria)
                         throws ARException
Returns detailed information about the Escalation object.

Parameters:
key - name of the Escalation object to retrieve
criteria - A EscalationCriteria object containing the attributes to retrieve
Throws:
ARException - if information is not returned

getListEscalation

public List<String> getListEscalation()
                               throws ARException
return the names of all (accessible) Escalation objects

Throws:
ARException

getListEscalation

public List<String> getListEscalation(String formName)
                               throws ARException
return the names of all (accessible) Escalation objects that is associated with the given form

Parameters:
formName - the name of the form that is associated with the escalation
Throws:
ARException

getListEscalation

public List<String> getListEscalation(long changedSince)
                               throws ARException
return the names of all (accessible) Escalation objects that is modified after the specified timestamp

Parameters:
changedSince - A timestamp that limits escalations retrieved to those modified after the specified time. Specify 0 for this parameter to retrieve filters with any modification timestamp.
Throws:
ARException

getListEscalation

public List<String> getListEscalation(String formName,
                                      long changedSince)
                               throws ARException
return the names of all (accessible) Escalation objects that is associated with the given form and modified after the specified timestamp.

Parameters:
formName - the name of the form that is associated with the escalation
changedSince - A timestamp that limits escalations retrieved to those modified after the specified time. Specify 0 for this parameter to retrieve filters with any modification timestamp.
Throws:
ARException

getListEscalation

public List<String> getListEscalation(String formName,
                                      long changedSince,
                                      ObjectPropertyMap propsToSearch)
                               throws ARException
return the names of all (accessible) Escalation objects that match the given criteria

Parameters:
formName - the name of the form that is associated with the escalation
changedSince - A timestamp that limits escalations retrieved to those modified after the specified time. Specify 0 for this parameter to retrieve filters with any modification timestamp.
propsToSearch - A list of object properties to search for. Returns all escalations that match the object properties.
Throws:
ARException - if list is not returned

getListEscalationObjects

public List<Escalation> getListEscalationObjects(String formName,
                                                 long changedSince,
                                                 EscalationCriteria criteria)
                                          throws ARException
Returns detailed information for all (accessible) Escalation objects that match the given criteria.

Parameters:
formName - the name of the form that is associated with the escalation
changedSince - A timestamp that limits escalations retrieved to those modified after the specified time. Specify 0 for this parameter to retrieve filters with any modification timestamp.
criteria - the attribute returned for each escalation object
Throws:
ARException - if information is not returned

createEscalation

public void createEscalation(Escalation object)
                      throws ARException
Creates this Escalation object into AR System server.

Throws:
ARException - if object is not created

deleteEscalation

public void deleteEscalation(String name,
                             int deleteOption)
                      throws ARException
Deletes this escalation from AR System server.

Parameters:
deleteOption - deleteOption is a bitmask value indicating the action to take. The values are:
Throws:
ARException - if object is not deleted

setEscalation

public void setEscalation(Escalation object)
                   throws ARException
Updates this Escalation object on ARSystem server

Parameters:
object - the escalation to be updated
Throws:
ARException - if object is not saved

getListEntryPoint

public List<EntryPointInfo> getListEntryPoint(long changedSince,
                                              List<String> applicationKeys,
                                              int[] refTypes,
                                              int viewType,
                                              String displayTag,
                                              boolean hiddenFlag)
                                       throws ARException
Retrieves all application entry points that match with the given criteria. These entry points include active link guide entry points and default entry points of a form.

Parameters:
changedSince - A timestamp that limits entry pointer retrieved to those modified after the specified time. Specify 0 for this parameter to retrieve filters with any modification timestamp.
applicationKeys - the names of a list of application that contains the entry point
refTypes - a list of reference type
viewType - the type of view to retrieve. Specify null for this parameter if you do not want to retrieve the view name. the type can be:
displayTag - the name of the form view to use for the entry point label. if the specified view does not exist or you specify null for this parameter, the ARSystem uses default view instead.
hiddenFlag - a flag indicate if retrieve both visible and hidden entry point.
Throws:
ARException

getServerInfo

public ServerInfoMap getServerInfo(int[] requestList)
                            throws ARException
Returns the requested configuration information for the specified server. This operation can be performed by all users.

Server Options Whose Values Can Be Retrieved

  • The AR_SERVER_INFO_EXPORT_VERSION integer indicates the server's export version number. This setting allows you to set the export version for object definitions of the server to ensure compatibility with older clients.
    • 8 indicates the export version of AR System 6.3
    • 8 indicates the export version of AR System 6.0
    • 7 indicates the export version of AR System 5.1
    • 6 indicates the export version of AR System 5.0
    • 5 indicates the export version of AR System 4.5
    • 4 indicates the export version of AR System 4.0.3
    • 3 indicates the export version of AR System 3.x
  • The AR_SERVER_INFO_ALLOW_GUESTS flag indicates whether the server accepts guest users. Guest users are users not registered with the AR System. If allowed, guest users have no permissions but are allowed to perform some basic operations. Guest users can submit entries to forms for which permission has been given to the Public group and enter data in fields that have been defined as allowing any user to submit. If not allowed, unregistered users have no access to the system. Valid values for this option are 1 (TRUE) and 0 (FALSE). The default value is 1 (allow guest users).
  • The AR_SERVER_INFO_USE_ETC_PASSWD flag indicates whether the /etc/passwd file is used to validate users not registered with the AR System (UNIX® only). If so, users in /etc/passwd are considered valid users of the AR System and are assigned to a group identified by the UNIX group ID. Valid values for this option are 1 (TRUE) and 0 (FALSE). The default value is 1 (use password file).
  • The AR_SERVER_INFO_XREF_PASSWORDS flag indicates whether the /etc/passwd file is cross-referenced if an AR System user has no password (UNIX only). This option enables you to manage group membership and other support information by using the AR System but still manage passwords using the /etc/passwd file. Valid values for this option are 1 (TRUE) and 0 (FALSE). The default value is 0 (blank passwords are not cross referenced).
  • The AR_SERVER_INFO_DEBUG_MODE mask indicates the server debug modes.
  • AR_SERVER_INFO_DB_PASSWORD is the database password associated with the AR System database or tablespace (applicable to Sybase and Oracle® databases only). The password is stored in encrypted form.
  • AR_SERVER_INFO_ACTLINK_DIR is the name of a directory where all external processes to be run by active links must reside. If the value is NULL, active links can run processes located anywhere.
  • AR_SERVER_INFO_ACTLINK_SHELL is the name of a shell to use when running external processes from an active link. If the value is NULL, processes are run from /bin/sh (UNIX) or without a shell (Windows).
  • AR_SERVER_INFO_USER_CACHE_UTILS is the flag indicating whether the ARCACHE and ARRELOAD utilities are enabled. Valid values for this option are 0 (disabled) and 1 (enabled).
  • AR_SERVER_INFO_SET_PROC_TIME is the number of seconds the server waits before ending a set fields process that has not completed. Valid values for this option are 1 through 20. The default value is five seconds.
  • AR_SERVER_INFO_EMAIL_FROM is the sender name to use for filter-generated email notifications where no subject is specified. Only "trusted" email users can use this name (see the Remedy Email Engine Guide for more information about trusted email users).
  • AR_SERVER_INFO_SQL_LOG_FILE is the The name of the file to use if SQL tracing is turned on (see AR_SERVER_INFO_DEBUG_MODE).
  • AR_SERVER_INFO_FLOAT_TIMEOUT is the number of hours the server waits before disconnecting inactive users. If a user is holding a floating write license token, the system also frees the token at this time.
  • AR_SERVER_INFO_UNQUAL_QUERIES is the flag indicating whether the server allows unqualified queries. Unqualified queries are calls in which the qualifier parameter is either NULL or has an operation value of 0 (AR_COND_OP_NONE). These queries can cause performance problems, especially for large forms, because they return all entries for a given form. If not allowed, you can return all form entries by specifying a "dummy" qualification such as 1 = 1. Valid values for this option are 1 (TRUE) and 0 (FALSE). The default value is 1 (allow unqualified queries).
  • AR_SERVER_INFO_UNQUAL_QUERIES is the name of the file to use if filter tracing is turned on (see AR_SERVER_INFO_DEBUG_MODE).
  • AR_SERVER_INFO_USER_LOG_FILE is the name of the file to use if user tracing is turned on (see AR_SERVER_INFO_DEBUG_MODE).
  • AR_SERVER_INFO_MAX_ENTRIES is the maximum number of entries returned by a single query. Because users can also specify the maximum number of entries returned (in query preferences), the actual maximum is the lower of these two values. The default value is no (server-defined) maximum.
  • AR_SERVER_INFO_ESCALATION_LOG_FILE is the name of the file to use if escalation tracing is turned on (see AR_SERVER_INFO_DEBUG_MODE).
  • AR_SERVER_INFO_SUBMITTER_MODE is the value indicating whether the Submitter field can be changed and whether the submitter of an entry must have a license to modify it. In locked mode, the Submitter field cannot be changed after submit, and the submitter with or a read or a write license, but not with a restricted read license, can modify the entry (if the Submitter group has Change permission). In changeable mode, the Submitter field can be changed after submit, but the submitter must have a write license to modify the entry (if the Submitter group has Change permission). Valid values for this option are 1 (locked) and 2 (changeable). The default value is 2 (changeable).
  • AR_SERVER_INFO_API_LOG_FILE is the name of the file to use if API tracing is turned on (see AR_SERVER_INFO_DEBUG_MODE).
  • AR_SERVER_INFO_FTEXT_TIMEOUT is the number of hours the server waits before disconnecting inactive users with Full Text Search licenses. If a user is holding a floating Full Text Search license token, the system also frees the token at this time.
  • AR_SERVER_INFO_DS_RPC_SOCKET is the specific server socket to use for the distributed server. Valid values for this option are 390600 and 390680 through 390694. Any other value causes the distributed server to use the default server.
  • AR_SERVER_INFO_DS_LOG_FILE is the name of the file to use if distributed server tracing is turned on (see AR_SERVER_INFO_DEBUG_MODE).
  • AR_SERVER_INFO_SUPPRESS_WARN is a series of zero or more message numbers (separated by spaces) that identify the informational or warning messages that the system suppresses.
  • AR_SERVER_INFO_SAVE_LOGIN is a value indicating whether users must log in to client tools.
    • 0 is controlled by user (default setting).
    • 1 forces no login (controlled by the administrator).
    • 2 forces login (controlled by the administrator).
  • AR_SERVER_INFO_ADMIN_ONLY is a flag indicating whether the server is in Administrator Only mode (1) or not (0). When not in Administrator Only mode, subadministrators can also perform administrator duties. The default value is 0 (Not in Administrator Only mode).
  • AR_SERVER_INFO_FLASH_DAEMON is a flag indicating whether Flashboards is installed (1) or not (0). The default value is 1 if the server has one or more Flashboards licenses, and 0 if the server has no licenses.
  • AR_SERVER_INFO_THREAD_LOG_FILE is the name of the file to use if thread tracing is turned on (see AR_SERVER_INFO_DEBUG_MODE) (Windows only).
  • AR_SERVER_INFO_TCD_TCP_PORT is the TCP port that the AR System server will use.
  • AR_SERVER_INFO_DSO_DEST_PORT is the TCP port that the distributed server option uses to communicate with the AR System server.
  • AR_SERVER_INFO_NFY_TCP_PORT is the TCP port that the Notifier server will use.
  • AR_SERVER_INFO_FILT_MAX_TOTAL is the maximum number of filters that the server will execute for a given operation. The default value is 10000.
  • AR_SERVER_INFO_FILT_MAX_STACK is the maximum number of levels of recursion allowed for a given operation. The data modification performed by an AR_FILTER_ACTION_FIELDP filter action could trigger a second set, or level, of filters, one of which could trigger filters a third level down and so on. This option limits the number of times such recursion can happen, preventing the server crash that would occur if the recursion continued indefinitely. The default value is 25.
  • AR_SERVER_INFO_DEFAULT_ORDER_BY is an integer (1 or 0) indicating the default order of requests in a form when issuing getListEntry calls, so that the sorting is done on the database and before the results are returned. Valid values for this option are 0 (no sort order) or 1 (use EntryId order). The default value is 1.
  • AR_SERVER_INFO_DELAYED_CACHE is a flag indicating whether to disable recacheing of the shared cache after a time-out (1) or not (0). The default value is 0 (delayed recache not disabled).
  • AR_SERVER_INFO_DSO_MERGE_STYLE is an integer (1 or 0) indicating the merge style to use for the Distributed Server Option. A 0 indicates the new style; 1 indicates the old style. The default is 0. For a 1 value (old style), the merge style overwrites entries; for a 0 value (new style), a true merge is performed according to the rules of the Distributed Server Option setup. For backward compatibility, this server option can be set to 1.
  • AR_SERVER_INFO_EMAIL_LINE_LEN is the maximum line length of email messages.
  • AR_SERVER_INFO_EMAIL_SYSTEM is a character string that indicates the email system on UNIX.
  • AR_SERVER_INFO_INFORMIX_RELAY_MOD is a character string that indicates the Informix relay module.
  • AR_SERVER_INFO_EMAIL_LINE_LEN is the RPC program number and port pairs the Private Servers will use. A value of 0 for the port means no port was specified.
  • AR_SERVER_INFO_REGISTER_PORTMAPPER is a flag indicating whether to register with the portmapper (1) or not (0). The default value is 1.
  • AR_SERVER_INFO_SERVER_NAME is an alias server name that is always interpreted as the current server. The name is not fully qualified. For example, the server alpha.bmc.com would have the value alpha. See also "Server-Name" in ar.conf.
  • AR_SERVER_INFO_DBCONF is the complete contents of the db.conf (ardb.cfg) file.
  • AR_SERVER_INFO_AP_RPC_SOCKET is the RPC program number the approval server will use when contacting the AR System. This allows you to define a specific AR System server for private use by the approval server.
  • AR_SERVER_INFO_AP_LOG_FILE is the name of the file to use if approval tracing is turned on (see AR_SERVER_INFO_DEBUG_MODE).
  • AR_SERVER_INFO_AP_DEFN_CHECK is the length of time in seconds between checks by an application service to verify that definitions it is using from the AR System are correct. The value can be from 0 to 3600 seconds (1 hour). A value of 0 means to check definitions with each command. A larger value means a slight delay in recognizing changes to some definition, while a smaller value means the significant overhead of checking the definitions often. The default value is 300 seconds (5 minutes).
  • AR_SERVER_INFO_MAX_LOG_FILE_SIZE is the maximum size for system log files. The default value is 0 (no limit).
  • AR_SERVER_INFO_CLUSTERED_INDEX is a value that indicates whether a clustered index is created on the Entry-Id field when a new form is created. Valid values for this option are 1 (create a clustered index) and 0 (create a unique index). The default value is 1 (clustered), but you can override this in the ar.cfg/ar.conf file.
  • (UNIX only) AR_SERVER_INFO_EMAIL_TIMEOUT is the length of time in seconds before the system closes the pipe to sendmail to unblock the AR System server. Valid values for this option are from 1 to 300. The default value is 10.
  • AR_SERVER_INFO_SCC_ENABLED is a value indicating whether a source code control system is being used with the AR System. A 0 value (default) means a source code control system is not present.
  • AR_SERVER_INFO_SCC_PROVIDER_NAME is a character string for the source code control system provider name. If none is present, this value is NULL. This string is limited to 255 characters.
  • AR_SERVER_INFO_SCC_TARGET_DIR is a character string for the source code control system target directory. If none is present, this value is NULL. This string is limited to 255 characters.
  • AR_SERVER_INFO_SCC_COMMENT_CHECKIN is an integer (0 or 1) value indicating whether or not a source code control integration requires you to entire a comment at checkin time. A 0 value means no comment is required.
  • AR_SERVER_INFO_SCC_COMMENT_CHECKOUT is an integer (0 or 1) value indicating whether or not a source code control integration requires you to entire a comment at checkout time. A 0 value means no comment is required.
  • AR_SERVER_INFO_SCC_INTEGRATION_MODE is an integer (0 or 1) value indicating the level of source code control integration. A 0 (the default) value indicates an advisory level of integration, which means you can modify and save an object without having it checked out from the source code control application. A 1 value means enforced integration, which has strict rules for controlling source files (for example, enforced integration means that other administrators will not be able to modify and save changes on an object that you have checked out).integration, which has strict rules for controlling source files (for example, enforced integration means that other administrators will not be able to modify and save changes on an object that you have checked out).
  • AR_SERVER_INFO_EA_RPC_SOCKET is the RPC socket number on which an external authentication server awaits requests for authentication. A 0 value means external authentication will not be used. This attribute persists in the ar.cfg/ar.conf file. The default value is 0.
  • AR_SERVER_INFO_EA_RPC_TIMEOUT is the RPC timeout (seconds) used when making calls to the authentication (AREA) server (for example, 30 seconds). This attribute persists in the ar.cfg/ ar.conf file. The default value is 30 seconds.
  • AR_SERVER_INFO_EA_SYNC_TIMEOUT is the internal (seconds) the AR System server uses to periodically invoke the external authentication server's AREANeedToSyncCallback() function, which instructs the AR System server to renew its internally stored user information in the event there are changes made to the source used to authenticate users. A 0 value means that the AR System server will not invoke the call to the external authentication (AREA) server. This attribute persists in the ar.cfg/ ar.conf file. The default value is 300 seconds.
  • AR_SERVER_INFO_LOGFILE_APPEND is an integer (0/1) value that indicates whether to create a separate*.bak file or to append to the existing log file. A 0 value creates a *.bak file; 1 indicates that new log information be appended to the existing file.
  • AR_SERVER_INFO_MINIMUM_API_VER is a value indicating the minimum API version that the server supports. The API versions are:
    • 11 is the API version of AR System 6.3
    • 10 is the API version of AR System 6.0
    • 9 is the API version of AR System 5.1
    • 8 is the API version of AR System 5.0
    • 7 is the API version of AR System 4.5
    • 6 is the API version of AR System 4.0.3
    • 5 is the API version of AR System 3.x

Server Options Whose Values Can Be Read But Not Set

Throws:
ARException - if configuration information is not returned

setServerInfo

public void setServerInfo(ServerInfoMap serverInfoMap)
                   throws ARException
Updates the indicated configuration information for the specified server. This operation can be performed by users with AR System administrator privileges.

Server Options Whose Values Can Be Retrieved

  • The AR_SERVER_INFO_EXPORT_VERSION integer indicates the server's export version number. This setting allows you to set the export version for object definitions of the server to ensure compatibility with older clients.
    • 8 indicates the export version of AR System 6.0
    • 7 indicates the export version of AR System 5.1
    • 6 indicates the export version of AR System 5.0
    • 5 indicates the export version of AR System 4.5
    • 4 indicates the export version of AR System 4.0.3
    • 3 indicates the export version of AR System 3.x
  • The AR_SERVER_INFO_ALLOW_GUESTS flag indicates whether the server accepts guest users. Guest users are users not registered with the AR System. If allowed, guest users have no permissions but are allowed to perform some basic operations. Guest users can submit entries to forms for which permission has been given to the Public group and enter data in fields that have been defined as allowing any user to submit. If not allowed, unregistered users have no access to the system. Valid values for this option are 1 (TRUE) and 0 (FALSE). The default value is 1 (allow guest users).
  • The AR_SERVER_INFO_USE_ETC_PASSWD flag indicates whether the /etc/passwd file is used to validate users not registered with the AR System (UNIX only). If so, users in /etc/passwd are considered valid users of the AR System and are assigned to a group identified by the UNIX group ID. Valid values for this option are 1 (TRUE) and 0 (FALSE). The default value is 1 (use password file).
  • The AR_SERVER_INFO_XREF_PASSWORDS flag indicates whether the /etc/passwd file is cross-referenced if an AR System user has no password (UNIX only). This option enables you to manage group membership and other support information by using the AR System but still manage passwords using the /etc/passwd file. Valid values for this option are 1 (TRUE) and 0 (FALSE). The default value is 0 (blank passwords are not cross referenced).
  • The AR_SERVER_INFO_DEBUG_MODE mask indicates the server debug modes.
  • AR_SERVER_INFO_DB_PASSWORD is the database password associated with the AR System database or tablespace (applicable to Sybase and Oracle databases only). The password is stored in encrypted form.
  • AR_SERVER_INFO_ACTLINK_DIR is the name of a directory where all external processes to be run by active links must reside. If the value is NULL, active links can run processes located anywhere.
  • AR_SERVER_INFO_ACTLINK_SHELL is the name of a shell to use when running external processes from an active link. If the value is NULL, processes are run from /bin/sh (UNIX) or without a shell (Windows).
  • AR_SERVER_INFO_USER_CACHE_UTILS is the flag indicating whether the ARCACHE and ARRELOAD utilities are enabled. Valid values for this option are 0 (disabled) and 1 (enabled).
  • AR_SERVER_INFO_SET_PROC_TIME is the number of seconds the server waits before ending a set fields process that has not completed. Valid values for this option are 1 through 20. The default value is five seconds.
  • AR_SERVER_INFO_EMAIL_FROM is the sender name to use for filter-generated email notifications where no subject is specified. Only "trusted" email users can use this name (see the Remedy Email Engine Guide for more information about trusted email users).
  • AR_SERVER_INFO_SQL_LOG_FILE is the The name of the file to use if SQL tracing is turned on (see AR_SERVER_INFO_DEBUG_MODE).
  • AR_SERVER_INFO_FLOAT_TIMEOUT is the number of hours the server waits before disconnecting inactive users. If a user is holding a floating write license token, the system also frees the token at this time.
  • AR_SERVER_INFO_UNQUAL_QUERIES is the flag indicating whether the server allows unqualified queries. Unqualified queries are calls in which the qualifier parameter is either NULL or has an operation value of 0 (AR_COND_OP_NONE). These queries can cause performance problems, especially for large forms, because they return all entries for a given form. If not allowed, you can return all form entries by specifying a "dummy" qualification such as 1 = 1. Valid values for this option are 1 (TRUE) and 0 (FALSE). The default value is 1 (allow unqualified queries).
  • AR_SERVER_INFO_UNQUAL_QUERIES is the name of the file to use if filter tracing is turned on (see AR_SERVER_INFO_DEBUG_MODE).
  • AR_SERVER_INFO_USER_LOG_FILE is the name of the file to use if user tracing is turned on (see AR_SERVER_INFO_DEBUG_MODE).
  • AR_SERVER_INFO_MAX_ENTRIES is the maximum number of entries returned by a single query. Because users can also specify the maximum number of entries returned (in query preferences), the actual maximum is the lower of these two values. The default value is no (server-defined) maximum.
  • AR_SERVER_INFO_ESCALATION_LOG_FILE is the name of the file to use if escalation tracing is turned on (see AR_SERVER_INFO_DEBUG_MODE).
  • AR_SERVER_INFO_SUBMITTER_MODE is the value indicating whether the Submitter field can be changed and whether the submitter of an entry must have a license to modify it. In locked mode, the Submitter field cannot be changed after submit, and the submitter with or a read or a write license, but not with a restricted read license, can modify the entry (if the Submitter group has Change permission). In changeable mode, the Submitter field can be changed after submit, but the submitter must have a write license to modify the entry (if the Submitter group has Change permission). Valid values for this option are 1 (locked) and 2 (changeable). The default value is 2 (changeable).
  • AR_SERVER_INFO_API_LOG_FILE is the name of the file to use if API tracing is turned on (see AR_SERVER_INFO_DEBUG_MODE).
  • AR_SERVER_INFO_FTEXT_TIMEOUT is the number of hours the server waits before disconnecting inactive users with Full Text Search licenses. If a user is holding a floating Full Text Search license token, the system also frees the token at this time.
  • AR_SERVER_INFO_DS_RPC_SOCKET is the specific server socket to use for the distributed server. Valid values for this option are 390600 and 390680 through 390694. Any other value causes the distributed server to use the default server.
  • AR_SERVER_INFO_DS_LOG_FILE is the name of the file to use if distributed server tracing is turned on (see AR_SERVER_INFO_DEBUG_MODE).
  • AR_SERVER_INFO_SUPPRESS_WARN is a series of zero or more message numbers (separated by spaces) that identify the informational or warning messages that the system suppresses.
  • AR_SERVER_INFO_SAVE_LOGIN is a value indicating whether users must log in to client tools.
    • 0 is controlled by user (default setting).
    • 1 forces no login (controlled by the administrator).
    • 2 forces login (controlled by the administrator).
  • AR_SERVER_INFO_ADMIN_ONLY is a flag indicating whether the server is in Administrator Only mode (1) or not (0). When not in Administrator Only mode, subadministrators can also perform administrator duties. The default value is 0 (Not in Administrator Only mode).
  • AR_SERVER_INFO_THREAD_LOG_FILE is the name of the file to use if thread tracing is turned on (see AR_SERVER_INFO_DEBUG_MODE) (Windows only).
  • AR_SERVER_INFO_TCD_TCP_PORT is the TCP port that the AR System server will use.
  • AR_SERVER_INFO_DSO_DEST_PORT is the TCP port that the distributed server option uses to communicate with the AR System server.
  • AR_SERVER_INFO_NFY_TCP_PORT is the TCP port that the Notifier server will use.
  • AR_SERVER_INFO_FILT_MAX_TOTAL is the maximum number of filters that the server will execute for a given operation. The default value is 10000.
  • AR_SERVER_INFO_FILT_MAX_STACK is the maximum number of levels of recursion allowed for a given operation. The data modification performed by an AR_FILTER_ACTION_FIELDP filter action could trigger a second set, or level, of filters, one of which could trigger filters a third level down and so on. This option limits the number of times such recursion can happen, preventing the server crash that would occur if the recursion continued indefinitely. The default value is 25.
  • AR_SERVER_INFO_DEFAULT_ORDER_BY is an integer (1 or 0) indicating the default order of requests in a form when issuing getListEntry calls, so that the sorting is done on the database and before the results are returned. Valid values for this option are 0 (no sort order) or 1 (use EntryId order). The default value is 1.
  • AR_SERVER_INFO_DELAYED_CACHE is a flag indicating whether to disable recacheing of the shared cache after a time-out (1) or not (0). The default value is 0 (delayed recache not disabled).
  • AR_SERVER_INFO_DSO_MERGE_STYLE is an integer (1 or 0) indicating the merge style to use for the Distributed Server Option. A 0 indicates the new style; 1 indicates the old style. The default is 0. For a 1 value (old style), the merge style overwrites entries; for a 0 value (new style), a true merge is performed according to the rules of the Distributed Server Option setup. For backward compatibility, this server option can be set to 1.
  • AR_SERVER_INFO_EMAIL_LINE_LEN is the maximum line length of email messages.
  • AR_SERVER_INFO_EMAIL_SYSTEM is a character string that indicates the email system on UNIX.
  • AR_SERVER_INFO_INFORMIX_RELAY_MOD is a character string that indicates the Informix relay module.
  • AR_SERVER_INFO_EMAIL_LINE_LEN is the RPC program number and port pairs the Private Servers will use. A value of 0 for the port means no port was specified.
  • AR_SERVER_INFO_REGISTER_PORTMAPPER is a flag indicating whether to register with the portmapper (1) or not (0). The default value is 1.
  • AR_SERVER_INFO_SERVER_NAME is an alias server name that is always interpreted as the current server. The name is not fully qualified. For example, the server alpha.bmc.com would have the value alpha. See also "Server-Name" in ar.conf.
  • AR_SERVER_INFO_DBCONF is the complete contents of the db.conf (ardb.cfg) file.
  • AR_SERVER_INFO_AP_RPC_SOCKET is the RPC program number the approval server will use when contacting the AR System. This allows you to define a specific AR System server for private use by the approval server.
  • AR_SERVER_INFO_AP_LOG_FILE is the name of the file to use if approval tracing is turned on (see AR_SERVER_INFO_DEBUG_MODE).
  • AR_SERVER_INFO_AP_DEFN_CHECK is the length of time in seconds between checks by an application service to verify that definitions it is using from the AR System are correct. The value can be from 0 to 3600 seconds (1 hour). A value of 0 means to check definitions with each command. A larger value means a slight delay in recognizing changes to some definition, while a smaller value means the significant overhead of checking the definitions often. The default value is 300 seconds (5 minutes).
  • AR_SERVER_INFO_MAX_LOG_FILE_SIZE is the maximum size for system log files. The default value is 0 (no limit).
  • AR_SERVER_INFO_CLUSTERED_INDEX is a value that indicates whether a clustered index is created on the Entry-Id field when a new form is created. Valid values for this option are 1 (create a clustered index) and 0 (create a unique index). The default value is 1 (clustered), but you can override this in the ar.cfg/ar.conf file.
  • (UNIX only) AR_SERVER_INFO_EMAIL_TIMEOUT is the length of time in seconds before the system closes the pipe to sendmail to unblock the AR System server. Valid values for this option are from 1 to 300. The default value is 10.
  • AR_SERVER_INFO_SCC_ENABLED is a value indicating whether a source code control system is being used with the AR System. A 0 value (default) means a source code control system is not present.
  • AR_SERVER_INFO_SCC_PROVIDER_NAME is a character string for the source code control system provider name. If none is present, this value is NULL. This string is limited to 255 characters.
  • AR_SERVER_INFO_SCC_TARGET_DIR is a character string for the source code control system target directory. If none is present, this value is NULL. This string is limited to 255 characters.
  • AR_SERVER_INFO_SCC_COMMENT_CHECKIN is an integer (0 or 1) value indicating whether or not a source code control integration requires you to entire a comment at checkin time. A 0 value means no comment is required.
  • AR_SERVER_INFO_SCC_COMMENT_CHECKOUT is an integer (0 or 1) value indicating whether or not a source code control integration requires you to entire a comment at checkout time. A 0 value means no comment is required.
  • AR_SERVER_INFO_SCC_INTEGRATION_MODE is an integer (0 or 1) value indicating the level of source code control integration. A 0 (the default) value indicates an advisory level of integration, which means you can modify and save an object without having it checked out from the source code control application. A 1 value means enforced integration, which has strict rules for controlling source files (for example, enforced integration means that other administrators will not be able to modify and save changes on an object that you have checked out).integration, which has strict rules for controlling source files (for example, enforced integration means that other administrators will not be able to modify and save changes on an object that you have checked out).
  • AR_SERVER_INFO_EA_RPC_SOCKET is the RPC socket number on which an external authentication server awaits requests for authentication. A 0 value means external authentication will not be used. This attribute persists in the ar.cfg/ar.conf file. The default value is 0.
  • AR_SERVER_INFO_EA_RPC_TIMEOUT is the RPC timeout (seconds) used when making calls to the authentication (AREA) server (for example, 30 seconds). This attribute persists in the ar.cfg/ ar.conf file. The default value is 30 seconds.
  • AR_SERVER_INFO_EA_SYNC_TIMEOUT is the internal (seconds) the AR server uses to periodically invoke the external authentication server's AREANeedToSyncCallback() function, which instructs the AR System server to renew its internally stored user information in the event there are changes made to the source used to authenticate users. A 0 value means that the AR System server will not invoke the call to the external authentication (AREA) server. This attribute persists in the ar.cfg/ ar.conf file. The default value is 300 seconds.
  • AR_SERVER_INFO_LOGFILE_APPEND is an integer (0/1) value that indicates whether to create a separate*.bak file or to append to the existing log file. A 0 value creates a *.bak file; 1 indicates that new log information be appended to the existing file.
  • AR_SERVER_INFO_MINIMUM_API_VER is a value indicating the minimum API version that the server supports. The API versions are:
    • 10 is the API version of AR System 6.0
    • 9 is the API version of AR System 5.1
    • 8 is the API version of AR System 5.0
    • 7 is the API version of AR System 4.5
    • 6 is the API version of AR System 4.0.3
    • 5 is the API version of AR System 3.x

Server Options Whose Values Can Be Read But Not Set

Throws:
ARException - if configuration information is not updated

getServerStatistics

public ServerInfoMap getServerStatistics(int[] requestList)
                                  throws ARException
Returns the requested statistics for the specified server. The counts returned generally represent the number of occurrences since starting the server. If a statistic reaches the maximum value for a long integer, the system resets the counter and begins incrementing again.

Can be performed by all users.

Parameters:
requestList - Returns a list of one or more statistics.
  • (integer) AR_SERVER_STAT_API_REQUESTS is the total number of API requests received.
  • (integer) AR_SERVER_STAT_API_TIME is the total processor time spent performing API function calls.
  • (integer) AR_SERVER_STAT_BAD_PASSWORD is the total number of times an incorrect password was specified during login.
  • (integer) AR_SERVER_STAT_CACHE_TIME is the total processor time spent loading the internal cache to improve performance.
  • (integer) AR_SERVER_STAT_CPU is the total CPU time used by the server.
  • (integer) AR_SERVER_STAT_CREATE_E_COUNT is the total number of calls made to the ARCreateEntry function.
  • (integer) AR_SERVER_STAT_CREATE_E_TIME is the total processor time spent performing the ARCreateEntry function.
  • (integer) AR_SERVER_STAT_CURRENT_USERS is the total number of users currently accessing the system.
  • (integer) AR_SERVER_STAT_DELETE_E_COUNT is the total number of calls made to the ARDeleteEntry function.
  • (integer) AR_SERVER_STAT_DELETE_E_TIME is the total processor time spent performing the ARDeleteEntry function.
  • (integer) AR_SERVER_STAT_ENTRY_TIME is the total processor time spent performing API function calls that manipulate entries.
  • (integer) AR_SERVER_STAT_ESCL_DISABLE is the total number of escalations that were evaluated but skipped because they were marked disabled.
  • (integer) AR_SERVER_STAT_ESCL_FAILED is the total number of escalations that were skipped (qualification criteria not met).
  • (integer) AR_SERVER_STAT_ESCL_FIELDP is the total number of push fields escalation actions performed.
  • (integer) AR_SERVER_STAT_ESCL_FIELDS is the total number of set fields escalation actions performed.
  • (integer) AR_SERVER_STAT_ESCL_LOG is the total number of log escalation actions performed.
  • (integer) AR_SERVER_STAT_ESCL_NOTIFY is the total number of notify escalation actions performed.
  • (integer) AR_SERVER_STAT_ESCL_PASSED is the total number of escalations that were executed (qualification criteria met).
  • (integer) AR_SERVER_STAT_ESCL_PROCESS is the total number of run process escalation actions performed.
  • (integer) AR_SERVER_STAT_ESCL_SQL is the total number of direct SQL escalation actions performed.
  • (integer) AR_SERVER_STAT_ESCL_TIME is the total processor time spent checking and processing escalations.
  • (integer) AR_SERVER_STAT_E_STATS_COUNT is the total number of calls made to the getEntryStatistics function.
  • (integer) AR_SERVER_STAT_E_STATS_TIME is the total processor time spent performing the getEntryStatistics function.
  • (integer) AR_SERVER_STAT_FILTER_DISABLE is the total number of filters that were evaluated but skipped because they were marked disabled.
  • (integer) AR_SERVER_STAT_FILTER_FAILED is the total number of filters that were skipped (qualification criteria not met).
  • (integer) AR_SERVER_STAT_FILTER_FIELDP is the total number of push fields filter actions performed.
  • (integer) AR_SERVER_STAT_FILTER_FIELDS is the total number of set fields filter actions performed.
  • (integer) AR_SERVER_STAT_FILTER_LOG is the total number of log filter actions performed.
  • (integer) AR_SERVER_STAT_FILTER_MESSAGE is the total number of message filter actions performed.
  • (integer) AR_SERVER_STAT_FILTER_NOTIFY is the total number of notify filter actions performed.
  • (integer) AR_SERVER_STAT_FILTER_PASSED is the total number of filters that were executed (qualification criteria met).
  • (integer) AR_SERVER_STAT_FILTER_PROCESS is the total number of run process filter actions performed.
  • (integer) AR_SERVER_STAT_FILTER_SQL is the total number of direct SQL filter actions performed.
  • (integer) AR_SERVER_STAT_FILTER_TIME is the total processor time spent checking and processing filters.
  • (integer) AR_SERVER_STAT_FTS_SRCH_COUNT is the total number of Full Text Search operations performed.
  • (integer) AR_SERVER_STAT_FTS_SRCH_TIME is the total processor time spent performing Full Text Search operations.
  • (integer) AR_SERVER_STAT_FULL_FIXED is the total number of connected users with fixed Full Text Search licenses.
  • (integer) AR_SERVER_STAT_FULL_FLOATING is the total number of connected users with floating Full Text Search licenses.
  • (integer) AR_SERVER_STAT_FULL_NONE is the total number of connected users with no Full Text Search license.
  • (integer) AR_SERVER_STAT_GETLIST_E_COUNT is the total number of calls made to the getListEntry function.
  • (integer) AR_SERVER_STAT_GETLIST_E_TIME is the total processor time spent performing the getListEntry function.
  • (integer) AR_SERVER_STAT_GET_E_COUNT is the total number of calls made to the getEntry function.
  • (integer) AR_SERVER_STAT_GET_E_TIME is the total processor time spent performing the getEntry function.
  • (integer) AR_SERVER_STAT_IDLE_TIME is the total idle time when the server is not processing any requests.
  • (integer) AR_SERVER_STAT_MERGE_E_COUNT is the total number of calls made to the ARMergeEntry function.
  • (integer) AR_SERVER_STAT_MERGE_E_TIME is the total processor time spent performing the ARMergeEntry function.
  • (integer) AR_SERVER_STAT_NET_RESP_TIME is the total time spent on the network responding to the client.
  • (integer) AR_SERVER_STAT_NO_FULL_TOKEN is the total number of times a user tried to connect and no floating Full Text Search token was available.
  • (integer) AR_SERVER_STAT_NO_WRITE_TOKEN is the total number of times a user tried to connect and no floating write token was available.
  • (integer) AR_SERVER_STAT_NUMBER_BLOCKED is the total number of blocked processes. This statistic, in conjunction with the AR_SERVER_STAT_TIMES_BLOCKED statistic, enables you to determine the approximate number of processes being blocked per instance. For example, if AR_SERVER_STAT_TIMES_BLOCKED is three and AR_SERVER_STAT_NUMBER_BLOCKED is six, the six blocked processes could be distributed in three possible ways: In this example, the blocked processes could not be distributed as five in one instance, one in one instance, and none in one instance because, by definition, the number of instances represents those times when at least one process is blocked.
  • (integer) AR_SERVER_STAT_OTHER_TIME is the total processor time spent performing API function calls that do not manipulate entries or restructure the database.
  • (integer) AR_SERVER_STAT_RESTRUCT_TIME is the total processor time spent performing API function calls that restructure the database.
  • (integer) AR_SERVER_STAT_SET_E_COUNT is the total number of calls made to the setEntry function.
  • (integer) AR_SERVER_STAT_SET_E_TIME is the total processor time spent performing the setEntry function.
  • (integer) AR_SERVER_STAT_SINCE_START is the number of seconds since the server was started (i.e. the total real time that the server process has been running).
  • (integer) AR_SERVER_STAT_SQL_DB_COUNT is the total number of SQL commands sent to the database.
  • (integer) AR_SERVER_STAT_SQL_DB_TIME is the total processor time spent performing SQL commands.
  • (time stamp) AR_SERVER_STAT_START_TIME is the UNIX® time at which this server was started.
  • (integer) AR_SERVER_STAT_TIMES_BLOCKED is the total number of instances in which at least one process was blocked by the current process. This statistic, in conjunction with the AR_SERVER_STAT_NUMBER_BLOCKED statistic enables you to determine the approximate number of processes being blocked per instance.
  • (integer) AR_SERVER_STAT_WRITE_FIXED is the total number of connected users with fixed write licenses.
  • (integer) AR_SERVER_STAT_WRITE_FLOATING is the total number of connected users with floating write licenses.
  • (integer) AR_SERVER_STAT_WRITE_READ is the total number of connected users with no write license.
    Throws:
    ARException - if statistics are not returned

  • createSupportFile

    public int createSupportFile(SupportFile supportFile)
                          throws ARException,
                                 IOException
    Creates a new support file with the indicated information on the specified server. This operation can be performed by users with AR System administrator privileges only.

    Throws:
    ARException - if support file is not created
    IOException

    deleteSupportFile

    public void deleteSupportFile(SupportFileKey supportFileKey)
                           throws ARException
    Deletes the given support file from the server. It deletes any references to the support file from other containers. However, objects referenced by the support file are not deleted. This operation can only be performed by users with AR System administrator privileges only.

    Parameters:
    supportFileKey - the key info to locate a support file in ARSystem server
    Throws:
    ARException - if support file is not deleted

    getSupportFile

    public SupportFile getSupportFile(String associatedObjName,
                                      int fileId)
                               throws ARException
    Retrieves the property of the support file that is associated with the given object and with a specific file id

    Parameters:
    associatedObjName - the name of the associated activelink object
    fileId - the internal id of the support file
    Throws:
    ARException - if support file is not loaded

    getSupportFile

    public SupportFile getSupportFile(String associatedObjName,
                                      int fileId,
                                      String filePath)
                               throws ARException
    Retrieves the content of the support file indicated by the key information into a local file identified by the filePath.

    Parameters:
    associatedObjName - the name of the associated activelink object
    fileId - the internal id of the support file
    filePath - the path of the local file that stores the support file
    Throws:
    ARException - if support file is not loaded

    getSupportFile

    public SupportFile getSupportFile(String associatedObjName,
                                      int fileId,
                                      int fileType,
                                      int supportingId,
                                      String filePath)
                               throws ARException
    Retrieves the content of the support file indicated by the key information into a local file identified by the filePath.

    Parameters:
    associatedObjName - the name of the associated object. It can be a form or activelink.
    fileId - the internal id of the support file
    fileType - the type of the file. The value can be Constants.AR_SUPPORT_FILE_EXTERNAL_REPORT for an external report file that is associated with an active links
    supportingId - the id of the file or view if the associated object is a form. If it is not a form, set this parameter to 0.
    filePath - the path of the local file that stores the support file
    Throws:
    ARException - if support file is not loaded

    setSupportFile

    public void setSupportFile(SupportFile supportFile)
                        throws ARException
    Updates this support file onto ARSystem server

    Parameters:
    supportFile - the supportFile to be updated
    Throws:
    ARException - if support file is not saved

    getListSupportFile

    public List<Integer> getListSupportFile(int fileType,
                                            String associatedObjName,
                                            int supportingId,
                                            long changedSince)
                                     throws ARException
    Returns the ids of all support files that match the given criteria, and the current user has privilege to the specified objects

    Parameters:
    fileType - the type of the file. The value can be Constants.AR_SUPPORT_FILE_EXTERNAL_REPORT for an external report file that is associated with an active links
    associatedObjName - the name of the associated object. It can be a form or activelink.
    supportingId - the id of the file or view if the associated object is a form. If it is not a form, set this parameter to 0.
    changedSince - A timestamp that limits support files retrieved to those modified after the specified time. Specify 0 for this parameter to retrieve support files with any modification timestamp.
    Returns:
    ids of all qualified support files
    Throws:
    ARException

    getListSupportFileObjects

    public List<SupportFile> getListSupportFileObjects(int fileType,
                                                       String associatedObjName,
                                                       int supportingId,
                                                       long changedSince)
                                                throws ARException
    Returns all SupportFile objects that match the given criteria, and the current user has privilege to the specified objects

    Parameters:
    fileType - the type of the file. The value can be Constants.AR_SUPPORT_FILE_EXTERNAL_REPORT for an external report file that is associated with an active links
    associatedObjName - the name of the associated object. It can be a form or activelink.
    supportingId - the id of the file or view if the associated object is a form. If it is not a form, set this parameter to 0.
    changedSince - A timestamp that limits support files retrieved to those modified after the specified time. Specify 0 for this parameter to retrieve support files with any modification timestamp.
    Returns:
    list of qualified support files
    Throws:
    ARException

    getMultipleCurrencyRatioSets

    public List<String> getMultipleCurrencyRatioSets(List<Timestamp> ratioTimestamps)
                                              throws ARException
    Retrieves a list of formatted currency ratio sets valid for the time specified in the argument. You can use getCurrencyRatio to extract a specific currency ratio from a ratio set that this call returns.

    Parameters:
    ratioTimestamps - a set of timestamps that represent times to retrieve sets of ratios. Specify Constants.AR_CURRENT_CURRENCY_RATIOS as a timestamp to retrieve a set of current ratios for each conversion combination.
    Throws:
    ARException

    getListGroup

    public List<GroupInfo> getListGroup(String user,
                                        String password)
                                 throws ARException
    Returns a list of access control groups on the specified server. You can retrieve all groups or limit the list to groups associated with a particular user.

    Group information for the current user can be retrieved by all users. Access to group information for other users is limited to users with AR System administrator privileges only.

    Parameters:
    user - the name of the user for which the system retrieves group information
    password - the password of the user for which the system retrieves group infomation.
    Throws:
    ARException - if list is not returned

    getListRole

    public List<RoleInfo> getListRole(String application,
                                      String user,
                                      String password)
                               throws ARException
    Returns a list of roles for a user for a deployable application on the specified server. You can retrieve all roles for an application or limit the list to roles associated with a particular user.

    Role information for the current user can be retrieved by all users. Access to role information for other users is limited to users with AR System administrator privileges only.

    Parameters:
    application - the name of the specific application to get roles from
    user - the name of the user for whom the system retrieves role information. Specify null to retrieve all roles for the application.
    password - the password of the user for whom the system retrieves role information.
    Throws:
    ARException - if list is not returned

    getListUser

    public List<UserInfo> getListUser()
                               throws ARException
    Returns a list of users currently accessing the specified AR System server.

    Information about the current user can be retrieved by all users. Access to information about other users is limited to users with AR System administrator privileges only.

    Returns:
    List of users currently accessing the specified AR System server
    Throws:
    ARException - if list of users cannot be returned

    getListUser

    public List<UserInfo> getListUser(int type)
                               throws ARException
    Returns a list of users on the specified AR System server. You can retrieve information about the current user, all registered users, or all users currently accessing the server.

    Information about the current user can be retrieved by all users. Access to information about other users is limited to users with AR System administrator privileges only.

    Parameters:
    type - a value indicates the type of users to retrieve. The value can be:
    Returns:
    List of users currently accessing the specified AR System server
    Throws:
    ARException - if list of users cannot be returned

    getListUser

    public List<UserInfo> getListUser(int type,
                                      long changedSince)
                               throws ARException
    Returns a list of users on the specified AR System server. You can retrieve information about the current user, all registered users, or all users currently accessing the server.

    Information about the current user can be retrieved by all users. Access to information about other users is limited to users with AR System administrator privileges only.

    Parameters:
    type - a value indicates the type of users to retrieve. The value can be:
    changedSince - A time stamp that limits the users retrieved to those modified after the specified time. Specify 0 for this parameter to retrieve users with any modification time stamp. This parameter is applicable only when retrieving registered users (i.e. type parameter is specified as AR_USER_LIST_REGISTERED).
    Throws:
    ARException - if list is not returned

    getAllLocalHostIDs

    public List<String> getAllLocalHostIDs()
                                    throws ARException
    Get all local host ID's. It will return a list of all hostId's.

    Throws:
    ARException

    getListApplicationState

    public List<String> getListApplicationState()
                                         throws ARException
    Retrieves the list of possible application state (maintenance, test or production) that an application on this AR System server.

    Throws:
    ARException - if information is not retrieved

    getApplicationState

    public String getApplicationState(String applicationName)
                               throws ARException
    Retrieves the current state of a given application. The state can be maintenance, test or production

    Parameters:
    applicationName - The name of the application
    Returns:
    State of the application
    Throws:
    ARException - (subclass ARBulkException) if an error occurs

    setApplicationState

    public void setApplicationState(String applicationName,
                                    String newState)
                             throws ARException
    Sets the state of a given application

    Parameters:
    applicationName - the name of the application
    newState - Statet of the application. The value can be maintenance, test or production
    Throws:
    ARException - (subclass ARBulkException) if an error occurs

    getListLicense

    public List<LicenseInfo> getListLicense(String licenseType)
                                     throws ARException
    Returns list of license info LicenseInfo for the specified type.

    Parameters:
    licenseType - the type of licenses to retrieve. If the value of this argument is null, this method returns all type of licenses that are available.
    Throws:
    ARException - if list is not returned

    getListAlertUser

    public List<String> getListAlertUser()
                                  throws ARException
    Gets list of registered Alert users.

    Throws:
    ARException - if list is not returned

    getTextForErrorMessage

    public String getTextForErrorMessage(int msgId)
                                  throws ARException
    Returns the message text for the specified error from the local catalog (in the local language). The length of the text is limited by AR_MAX_MESSAGE_SIZE (255 bytes). This operation can be performed by all users.

    Parameters:
    msgId - Error number whose message text you want to retrieve.
    Throws:
    ARException - if message text is not returned

    getServerCharSet

    public String getServerCharSet()
                            throws ARException
    Returns the servers char set as a string.

    Throws:
    ARException - for any error in this operation

    impersonateUser

    public void impersonateUser(String impersonatedUser)
                         throws ARException
    Enables plug-ins, midtier or other program to run as an administrator in this session, but to perform operations as a specific user (with that user's permission and licensing in effect).

    Parameters:
    impersonatedUser - the name of the user that the API is impersonating. Specify null if you want to stop impersonating.
    Throws:
    ARException - if impersonation failed.

    getImpersonatedUser

    public String getImpersonatedUser()
    get the name of the impersonated user

    Returns:
    the name of the impersonated user

    getImpersonatedCacheId

    public long getImpersonatedCacheId()
    get the cache id of the impersonated user. The cache ID is the cache area allocated by the server to store user information. This value is assigned by the server and should not be changed

    Returns:
    the cache id of the impersonated user.

    getEntryStatistics

    public List<StatisticsResultInfo> getEntryStatistics(String formKey,
                                                         QualifierInfo qual,
                                                         ArithmeticOrRelationalOperand target,
                                                         int statistic,
                                                         int[] groupByList)
                                                  throws ARException
    Computes the indicated statistic for the form entries that match the conditions specified by the qualifier parameter. The system returns information based on the access privileges of the user you specify for the ARServerUser. All statistics, therefore, are limited to entries the user can access (users must have permission for the field to access and retrieve entries).

    Parameters:
    formKey - the name of the form to compute entry statistics for
    qual - the query that determines the set of entries to use.
    target - the arithmetic operation that defines the statistics to compute.
    statistic - a value indicate statistic type. the value can be:
    groupByList - a list of fields to group the result by.
    Throws:
    ARException - if statistic is not computed

    getListSQL

    public SQLResult getListSQL(String sqlCommand,
                                int maxRetrieve,
                                boolean retrieveTotalMatches)
                         throws ARException
    Returns a list of rows from the underlying SQL database on the specified server. The server executes the SQL command you specify and returns the matching rows. A list with zero items and a warning message are returned if no SQL database resides on the server. The system returns information based on the access privileges of the user who launched the AR System server.

    Can be performed by users with AR System administrator privileges only.

    Parameters:
    sqlCommand - SQL command to execute (following the syntax rules for the underlying database). The owner of the AR System server process must have permission to perform the specified SQL operation.
    maxRetrieve - Enter a boolean value of TRUE to retrieve the maximum number of rows.
    retrieveTotalMatches - Enter an integer value to limit the number of rows retrieved.
    Throws:
    ARException - if list is not returned

    registerForAlerts

    public void registerForAlerts(int clientPort,
                                  int registrationFlags)
                           throws ARException
    Register a client with the server to receive alert signals. Note that this function performs an intentional disconnect from the server upon completion of the RPC call.

    Parameters:
    clientPort - The client port number.
    registrationFlags - This value is reserved for future use and should be set to zero.
    Throws:
    ARException

    deregisterForAlerts

    public void deregisterForAlerts(int clientPort)
                             throws ARException
    Deregister a client with the server so they no longer receive alert indicators.

    Parameters:
    clientPort - The client port number.
    Throws:
    ARException - if client is not deregistered

    createAlertEvent

    public String createAlertEvent(String user,
                                   String alertText,
                                   int priority,
                                   String sourceTag,
                                   String server,
                                   String formName,
                                   String objectId)
                            throws ARException
    Enters an alert event into the system. When an entry is made into the Alert Events form, an indicator of that alert is sent to the specified user if that user is registered to receive them.

    Parameters:
    user - The user who receives the alert. Specify * (AR_REGISTERED_BROADCAST) to create an alert event for all users that are currently registered to receive alerts with the AR System server. You cannot specify a group name for this argument.
    alertText - The text that the alert contains.
    priority - A relative value that represents the priority for this alert. The range of acceptable values is between 0 and 10.
    sourceTag - A string that identifies the source of the alert. The AR System provides two predefined values for this string: AR - alert originated from the AR System FB - alert originated from Flashboards
    server - The name of the server that is the source of the alert. Use @ to specify the current server. Specify NULL for this parameter if the parameter is not applicable to the type of alert that this call creates.
    formName - The name of the form that is the source of the alert. For Flashboards, this is the name of the Flashboard that generated the alert. Specify NULL for this parameter if the parameter is not applicable to the type of alert that this call creates.
    objectId - For AR System, this value is the Entry ID of the originating request. For Flashboards, this value is the name of the Flashboard event that the user provides. Specify NULL for this parameter if the parameter is not applicable to the type of alert that this call creates.
    Returns:
    Id of the just created alert event
    Throws:
    ARException

    getAlertCount

    public int getAlertCount(QualifierInfo qual)
                      throws ARException
    Gets number of alert events that meet the specified qualification.

    Parameters:
    qual - the query criteria that determines the alert count
    Throws:
    ARException - if alert count is not returned

    encodeARQualifierStruct

    @Deprecated
    public String encodeARQualifierStruct(QualifierInfo qual)
                                   throws ARException
    Deprecated. as of AR System 7.1, replaced by encodeQualification(com.bmc.arsys.api.QualifierInfo)

    Encode of QualifierInfo. Converts QualifierInfo to serialized qualification string.

    Parameters:
    qual - the QualifierInfo object to encode
    Throws:
    ARException - if QualifierInfo is not encoded

    decodeARQualifierStruct

    @Deprecated
    public QualifierInfo decodeARQualifierStruct(String queryString)
                                          throws ARException
    Deprecated. as of AR System 7.1, replaced by decodeQualification(java.lang.String)

    Decode of QualifierInfo. Converts serialized qualifier string to QualifierInfo.

    Parameters:
    queryString - the qualifier string to decode from
    Throws:
    ARException - if QualifierInfo is not decoded

    encodeARAssignStruct

    @Deprecated
    public String encodeARAssignStruct(AssignInfo assign)
                                throws ARException
    Deprecated. as of AR System 7.1, replaced by encodeAssignment(com.bmc.arsys.api.AssignInfo)

    Encode of AssignInfo. Converts AssignInfo to serialized qualification string.

    Parameters:
    assign - the AssignInfo object to encode
    Throws:
    ARException

    decodeARAssignStruct

    @Deprecated
    public AssignInfo decodeARAssignStruct(String assignString)
                                    throws ARException
    Deprecated. as of AR System 7.1, replaced by decodeAssignment(java.lang.String)

    Decode of AssignInfo. Converts serialized Assign string to AssignInfo.

    Parameters:
    assignString - the assignment string to decode from
    Throws:
    ARException - if AssignInfo is not decoded

    decodeAlertMessage

    public AlertMessageInfo decodeAlertMessage(AlertMessageCriteria criteria,
                                               Object message,
                                               int length)
                                        throws ARException
    Decode supplied alert message and return component parts.

    Interface Change: The data supplied for the message parameter should be a byte array containing binary data received from the server. In previous versions the message parameter was a String. It was changed to an Object to facilitate the transition from String to byte array.

    Throws:
    ARException - if message is not decoded

    getLocalHostID

    public String getLocalHostID()
                          throws ARException
    Get License host ID. It will return a String that holds host ID.

    Throws:
    ARException - if host ID is not returned

    convertStringToListMenu

    public List<MenuItem> convertStringToListMenu(String menuString)
                                           throws ARException
    Converts a string to a list of MenuItem objects

    Throws:
    ARException - if string is not converted

    xmlCreateEntry

    public String xmlCreateEntry(String inputMapping,
                                 String inputDoc,
                                 String outputMapping,
                                 String optionDoc)
                          throws ARException
    AR System internal use only.

    Throws:
    ARException

    xmlSetEntry

    public String xmlSetEntry(String queryMapping,
                              String queryDoc,
                              String inputMapping,
                              String inputDoc,
                              String outputMapping,
                              String optionDoc)
                       throws ARException
    AR System internal use only.

    Throws:
    ARException

    xmlGetEntry

    public String xmlGetEntry(String queryMapping,
                              String queryDoc,
                              String outputMapping,
                              String optionDoc)
                       throws ARException
    AR System internal use only.

    Throws:
    ARException

    beginBulkEntryTransaction

    public void beginBulkEntryTransaction()
                                   throws ARException
    Marks the beginning of a bulk entry transaction.

    Throws:
    ARException

    endBulkEntryTransaction

    public List<BulkEntryReturn> endBulkEntryTransaction(int actionType)
                                                  throws ARException
    Marks the ending of a bulk entry transaction.

    Parameters:
    actionType - the action to take when the bulk transaction ends. The values are:
    Throws:
    ARException

    getCurrencyRatio

    public BigDecimal getCurrencyRatio(String currencyRatioSet,
                                       String fromCurrencyCode,
                                       String toCurrencyCode)
                                throws ARException
    Search through a supplied currency ratios string to find an entry that matches the requested currency codes. The ratios string is in a format like USDCAD.987/USDEUR1.09/ and the currency code portion is in sorted order. If the requested currency code combination cannot be found, the return value is null.

    Parameters:
    currencyRatioSet - the currency ratio set that we search the currency ratio from
    fromCurrencyCode - the source currency code for the conversion ratio
    toCurrencyCode - the target currency code for the conversion ratio
    Throws:
    ARException

    getLocalizedValue

    public LocalizedValueInfo getLocalizedValue(LocalizedValueCriteria criteria,
                                                LocalizedRequestInfo request)
                                         throws ARException
    Gets a localized text string from the message catalog form. Return an appropriate string along with a code for how the string was found or a NULL return if there was nothing found -- not even a default.

    Parameters:
    criteria - The localized value to be retrieved. The value can be a character value or an attachment. Specify NULL for this argument if you do not want to retrieve this value.
    request - Identification for the localized value to be retrieved from the AR System Message Catalog. It contains the type of value, , value name, and, for some types of values, unique identification numbers.
    Throws:
    ARException - if string is not returned

    getMultipleLocalizedValues

    public List<LocalizedValueInfo> getMultipleLocalizedValues(LocalizedValueCriteria criteria,
                                                               List<LocalizedRequestInfo> requests)
                                                        throws ARException
    Gets multiple localized texts from the catalog file. It will return a blank return struct if nothing found. This call retrieves multiple localized text strings from the AR System Message Catalog. The messages that the server retrieves depend on the user locale. This function is easier to use and more efficient than retrieving multiple values one by one.

    Parameters:
    criteria - A list of the localized values to be retrieved. The values can be a character value or an attachment. Specify NULL for this argument if you do not want to retrieve a value.
    requests - A list of identifications for the localized value to be retrieved. The list contains the type of value, value name, and, for some types of values, unique identification numbers.
    Throws:
    ARException - if localized texts are are not returned

    exportDef

    @Deprecated
    public String exportDef(List<StructItemInfo> items)
                     throws ARException
    Deprecated. as of AR System 7.5, replaced by exportDefToFile(java.util.List, boolean, java.lang.String, boolean) that takes care of file encoding.

    Exports the specified structure from the server to a buffer in ARS def format. We check the first item type to determin if the export format is set to XML, then set the rest of the items be the same setting.

    This operation can be performed by users with AR System administrator privileges.

    Parameters:
    items - This is a raw type list that can be a collection of IARPersistentObject or StructItemInfo objects.
    Throws:
    ARException - if structure definition is not exported

    exportDef

    @Deprecated
    public String exportDef(List<StructItemInfo> items,
                                       boolean asXml)
                     throws ARException
    Deprecated. as of AR System 7.5, replaced by exportDefToFile(java.util.List, boolean, java.lang.String, boolean) that takes care of file encoding.

    Exports the provided structure from the server to a buffer in the specified format.

    This operation can be performed by users with AR System administrator privileges.

    Parameters:
    items - This is a raw type list that can be a collection of IARPersistentObject or StructItemInfo objects.
    asXml - if export the structure in XML format
    Throws:
    ARException - if structure definition is not exported

    exportDef

    @Deprecated
    public String exportDef(List items,
                                       boolean asXml,
                                       WorkflowLockInfo lockInfo)
                     throws ARException
    Deprecated. as of AR System 7.5, replaced by exportDefToFile(java.util.List, boolean, java.lang.String, boolean) that takes care of file encoding.

    Exports the specified structure from the server to a buffer in the specified format. The objects exported by this method are locked. The "locking" feature is for protecting intellectual property. You can export the workflow as locked and deliver it to your customers. When your customer imports the workflow, the system will seamlessly run the workflow but restrict the clients from getting the definition data. Thus, it prevents the definition to be viewed or modified.

    This operation can be performed by users with AR System administrator privileges.

    Parameters:
    items - the structure items to be exported. This is a raw type list that can be a collection of IARPersistentObject or StructItemInfo objects.
    asXml - if export the structure in XML format
    lockInfo - the lock info to enable export locked objects.
    Throws:
    ARException - if structure definition is not exported

    exportDef

    @Deprecated
    public String exportDef(List<StructItemInfo> items,
                                       WorkflowLockInfo lockInfo)
                     throws ARException
    Deprecated. as of AR System 7.5, replaced by exportDefToFile(java.util.List, boolean, java.lang.String, boolean) that takes care of file encoding.

    Exports the specified structure from the server to a buffer in ARSystem def format. We check the first item type to determin if the export format is set to XML, then set the rest of the items be the same setting. The objects exported by this method are locked. The "locking" feature is for protecting intellectual property. You can export the workflow as locked and deliver it to your customers. When your customer imports the workflow, the system will seamlessly run the workflow but restrict the clients from getting the definition data. Thus, it prevents the definition to be viewed or modified.

    This operation can be performed by users with AR System administrator privileges.

    Parameters:
    items - the structure items to be exported.
    lockInfo - the lock info to enable export locked objects.
    Throws:
    ARException - if structure definition is not exported

    exportDef

    @Deprecated
    public String exportDef(List<StructItemInfo> items,
                                       String displayTag,
                                       int vuiType,
                                       WorkflowLockInfo lockInfo)
                     throws ARException
    Deprecated. as of AR System 7.5, replaced by exportDefToFile(java.util.List, boolean, java.lang.String, boolean) that takes care of file encoding.

    Exports the specified structure from the server to a buffer in ARSystem def format. We check the first item type to determin if the export format is set to XML, then set the rest of the items be the same setting. The objects exported by this method are locked. The "locking" feature is for protecting intellectual property. You can export the workflow as locked and deliver it to your customers. When your customer imports the workflow, the system will seamlessly run the workflow but restrict the clients from getting the definition data. Thus, it prevents the definition to be viewed or modified.

    This operation can be performed by users with AR System administrator privileges.

    Parameters:
    items - the structure items to be exported.
    displayTag - the label of the form view to export. This parameter is used along with structure items type Constants.AR_STRUCT_ITEM_SCHEMA_VIEW. If the specified view does not exist or null is specified for this parameter, the system exports the default view.
    vuiType - the type of view to export. The value can be:
    lockInfo - the lock info to enable export locked objects.
    Throws:
    ARException - if structure definition is not exported

    exportDef

    @Deprecated
    public String exportDef(List<StructItemInfo> items,
                                       boolean asXml,
                                       String displayTag,
                                       int vuiType,
                                       WorkflowLockInfo lockInfo)
                     throws ARException
    Deprecated. as of AR System 7.5, replaced by exportDefToFile(java.util.List, boolean, java.lang.String, boolean) that takes care of file encoding.

    Exports the specified structure from the server to a buffer in ARSystem def or xml format. The objects exported by this method are locked. The "locking" feature is for protecting intellectual property. You can export the workflow as locked and deliver it to your customers. When your customer imports the workflow, the system will seamlessly run the workflow but restrict the clients from getting the definition data. Thus, it prevents the definition to be viewed or modified.

    This operation can be performed by users with AR System administrator privileges.

    Parameters:
    items - the structure items to be exported.
    asXml - if export the structure in XML format
    displayTag - the label of the form view to export. This parameter is used along with structure items type Constants.AR_STRUCT_ITEM_SCHEMA_VIEW. If the specified view does not exist or null is specified for this parameter, the system exports the default view.
    vuiType - the type of view to export. The value can be:
    lockInfo - the lock info to enable export locked objects.
    Throws:
    ARException - if structure definition is not exported

    exportDefToFile

    public void exportDefToFile(List<StructItemInfo> items,
                                boolean asXml,
                                String filePath,
                                boolean overwrite)
                         throws ARException,
                                IOException
    Exports the specified structure from the server to a file in ARSystem def or xml format.

    This operation can be performed by users with AR System administrator privileges.

    Parameters:
    items - the structure items to be exported. This is a raw type list that can be a collection of IARPersistentObject or StructItemInfo objects.
    asXml - if export the structure in XML format
    filePath - the full name of the file that stores the exported definition.
    overwrite - a flag that decides if we overwrite the file if the file already exists.
    Throws:
    ARException - if structure definition is not exported
    IOException

    exportDefToFile

    public void exportDefToFile(List<StructItemInfo> items,
                                boolean asXml,
                                WorkflowLockInfo lockInfo,
                                String filePath,
                                boolean overwrite)
                         throws ARException,
                                IOException
    Exports the specified structure from the server to a file in ARSystem def or xml format. The objects exported by this method are locked. The "locking" feature is for protecting intellectual property. You can export the workflow as locked and deliver it to your customers. When your customer imports the workflow, the system will seamlessly run the workflow but restrict the clients from getting the definition data. Thus, it prevents the definition to be viewed or modified.

    This operation can be performed by users with AR System administrator privileges.

    Parameters:
    items - the structure items to be exported. This is a raw type list that can be a collection of IARPersistentObject or StructItemInfo objects.
    asXml - if export the structure in XML format
    lockInfo - the lock info to enable export locked objects.
    filePath - the full name of the file that stores the exported definition.
    overwrite - a flag that decides if we overwrite the file if the file already exists.
    Throws:
    ARException - if structure definition is not exported
    IOException

    exportDefToFile

    public void exportDefToFile(List items,
                                boolean asXml,
                                String displayTag,
                                int vuiType,
                                WorkflowLockInfo lockInfo,
                                String filePath,
                                boolean overwrite)
                         throws ARException,
                                IOException
    Exports the specified structure from the server to a file in ARSystem def or xml format. The objects exported by this method are locked. The "locking" feature is for protecting intellectual property. You can export the workflow as locked and deliver it to your customers. When your customer imports the workflow, the system will seamlessly run the workflow but restrict the clients from getting the definition data. Thus, it prevents the definition to be viewed or modified.

    This operation can be performed by users with AR System administrator privileges.

    Parameters:
    items - the structure items to be exported. This is a raw type list that can be a collection of IARPersistentObject or StructItemInfo objects.
    asXml - if export the structure in XML format
    displayTag - the label of the form view to export. This parameter is used along with structure items type Constants.AR_STRUCT_ITEM_SCHEMA_VIEW. If the specified view does not exist or null is specified for this parameter, the system exports the default view.
    vuiType - the type of view to export. The value can be:
    lockInfo - the lock info to enable export locked objects.
    filePath - the full name of the file that stores the exported definition.
    overwrite - a flag that decides if we overwrite the file if the file already exists.
    lockInfo - the lock info to enable export locked objects.
    filePath - the full name of the file that stores the exported definition.
    overwrite - a flag that decides if we overwrite the file if the file already exists.
    Throws:
    ARException - if structure definition is not exported
    IOException

    importDefFromFile

    public void importDefFromFile(String filePath)
                           throws ARException,
                                  IOException
    Import all definitions into the server from given file. If objects defined in the file has already exist in the server, the object definition in the server is replaced. This operation can be performed by users with AR System administrator privileges only.

    Parameters:
    filePath - File path
    Throws:
    IOException - if file could not be read
    ARException

    importDefFromFile

    public void importDefFromFile(String filePath,
                                  int optionMask)
                           throws ARException,
                                  IOException
    Import all definitions, using the given import option, into the server from given file This operation can be performed by users with AR System administrator privileges only.

    Parameters:
    filePath - File path
    optionMask - Import option mask is one (or bit-wise OR of multiple) Constants.AR_IMPORT_OPT_* constants.
    Throws:
    ARException - if structure definition is not imported
    IOException - if file could not be read

    importDefFromFile

    public void importDefFromFile(String filePath,
                                  List<StructItemInfo> items)
                           throws ARException,
                                  IOException
    Import given object definitions into the server from given file. If objects defined in the file has already exist in the server, the object definition in the server is replaced. This operation can be performed by users with AR System administrator privileges only.

    Parameters:
    filePath - File path
    items - list of items to import
    Throws:
    ARException - if structure definition is not imported
    IOException - if file could not be read

    importDefFromFile

    public void importDefFromFile(String filePath,
                                  int optionMask,
                                  List<StructItemInfo> items)
                           throws ARException,
                                  IOException
    Import the provided object definitions into the server using the specified import option. This operation can be performed by users with AR System administrator privileges only.

    Parameters:
    filePath - File path
    optionMask - Import option mask is one (or bit-wise OR of multiple) Constants.AR_IMPORT_OPT_* constants.
    items - list of items to import
    Throws:
    ARException - if structure definition is not imported
    IOException - if file could not be read

    importDefFromBuffer

    @Deprecated
    public void importDefFromBuffer(String importBuffer)
                             throws ARException
    Deprecated. as of AR System 7.5, replaced by importDefFromFile(java.lang.String) that takes care of file encoding.

    Import all definitions into the server from a given buffer. If objects defined in the buffer has already exist in the server, the object definition in the server is replaced. This operation can be performed by users with AR System administrator privileges only.

    Parameters:
    importBuffer - Buffer containing the definitions
    Throws:
    ARException - if structure definition is not imported

    importDefFromBuffer

    @Deprecated
    public void importDefFromBuffer(String importBuffer,
                                               int optionMask)
                             throws ARException
    Deprecated. as of AR System 7.5, replaced by importDefFromFile(java.lang.String) that takes care of file encoding.

    Using the given import option, this method imports all definitions into the server from the provided buffer This operation can be performed by users with AR System administrator privileges only.

    Parameters:
    importBuffer - Buffer containing the definitions
    optionMask - Import option mask is one (or bit-wise OR of multiple) Constants.AR_IMPORT_OPT_* constants.
    Throws:
    ARException - if structure definition is not imported

    importDefFromBuffer

    @Deprecated
    public void importDefFromBuffer(String importBuffer,
                                               List<StructItemInfo> items)
                             throws ARException
    Deprecated. as of AR System 7.5, replaced by importDefFromFile(java.lang.String) that takes care of file encoding.

    Import the specified object definitions into the server from the given buffer. If objects defined in the buffer has already exist in the server, the object definition in the server is replaced. This operation can be performed by users with AR System administrator privileges only.

    Parameters:
    importBuffer - Buffer containing the definitions
    items - list of items to import
    Throws:
    ARException - if structure definition is not imported

    importDefFromBuffer

    @Deprecated
    public void importDefFromBuffer(String importBuffer,
                                               int optionMask,
                                               List<StructItemInfo> items)
                             throws ARException
    Deprecated. as of AR System 7.5, replaced by importDefFromFile(java.lang.String) that takes care of file encoding.

    Using the given import option, this method imports specified definitions into the server from the provided buffer This operation can be performed by users with AR System administrator privileges only.

    Parameters:
    importBuffer - Buffer containing the definitions
    optionMask - Import option mask is one (or bit-wise OR of multiple) Constants.AR_IMPORT_OPT_* constants.
    items - list of items to import
    Throws:
    ARException - if structure definition is not imported

    validateLicense

    public LicenseValidInfo validateLicense(String licenseType)
                                     throws ARException
    Validates license info. Returns LicenseValidInfo.

    Throws:
    ARException - if information is not validated

    validateMultipleLicense

    public List<LicenseValidInfo> validateMultipleLicense(List<String> licenseTypes)
                                                   throws ARException
    Validates multiple license info. Returns list of LicenseValidInfo.

    Throws:
    ARException - if information is not validated

    signalServer

    public void signalServer(Map<SignalType,String> signals)
                      throws ARException
    send a signal to the server to perform the indicated op, i.e. recache, reload license information and etc

    Parameters:
    signals - signals sent to the server.
    Throws:
    ARException

    setChunkResponseSize

    public void setChunkResponseSize(int chunkResponseSize)
    Set the chunk response size


    getChunkResponseSize

    public int getChunkResponseSize()
    Get the chunk response size


    setTimeoutNormal

    public void setTimeoutNormal(int timeoutNormal)
    Set the normal timeout


    getTimeoutNormal

    public int getTimeoutNormal()
    Get the normal timeout


    setTimeoutLong

    public void setTimeoutLong(int timeoutLong)
    Set the long timeout


    getTimeoutLong

    public int getTimeoutLong()
    Get the long timeout


    setTimeoutXLong

    public void setTimeoutXLong(int timeoutXLong)
    Set the extra long timeout


    getTimeoutXLong

    public int getTimeoutXLong()
    Get the extra long timeout


    useAdminRpcQueue

    public void useAdminRpcQueue()
                          throws ARException
    Connect to the server using the admin queue. Use this whenever your application performs admin operations and always needs to retrieve the most up to date definitions from the server cache.

    Throws:
    ARException - if the session cannot use Admin Queue

    useDefaultRpcQueue

    public void useDefaultRpcQueue()
                            throws ARException
    Connect to the server using the default queue, which is either List or Fast queue

    Throws:
    ARException

    usePrivateRpcQueue

    public void usePrivateRpcQueue(int rpcProgramNum)
                            throws ARException
    Connect to the server using a private queue

    Parameters:
    rpcProgramNum - the rpc program number for the private queue
    Throws:
    ARException - if the rpc program number is not in the range. the range is from AR_RPC_SPEC_QUEUE_MIN to AR_RPC_SPEC_QUEUE_MAX and from AR_RPC_PRIVATE_QUEUE_MIN to AR_RPC_PRIVATE_QUEUE_MAX

    getServerRpcQueueNumber

    public int getServerRpcQueueNumber()

    setClientType

    public void setClientType(int clientType)
    Set the client type


    getClientType

    public int getClientType()
    Get the client type


    setVUIType

    public void setVUIType(int vuiType)
    Set the VUI type


    getVUIType

    public int getVUIType()
    Get the VUI type


    setOverridePrevIP

    public void setOverridePrevIP(boolean overridePrevIP)
    Set the override previous IP flag


    getOverridePrevIP

    public boolean getOverridePrevIP()
    Get the override previous IP flag


    getLastID

    public String getLastID()

    getLastCount

    public int getLastCount()

    setReservedParam1

    public void setReservedParam1(String pParam)
    CAUTION: For AR System internal Only


    getReservedParam1

    public String getReservedParam1()
    CAUTION: For AR System internal Only


    getExtendedClassRegistry

    public ExtendedClassRegistry getExtendedClassRegistry()
    Returns:
    Returns the class extension registry object (if set previously), otherwise null.

    setExtendedClassRegistry

    public void setExtendedClassRegistry(ExtendedClassRegistry ecr)
    Sets the class extension registry object. This registry object will be used by the Java API internal implementation for appropriately instantiating user extended types in place of usual Java API types.

    Parameters:
    ecr -

    getDefaultOutputDirectory

    public String getDefaultOutputDirectory()
    Returns:
    the default output directory (used while SupportFile retrieval)

    setDefaultOutputDirectory

    public void setDefaultOutputDirectory(String defaultOutputDirectory)
    Parameters:
    defaultOutputDirectory - the default output directory to set (used while SupportFile retrieval)

    toString

    public String toString()
    Returns a string description of the object.

    Overrides:
    toString in class Object

    hashCode

    public int hashCode()
    Returns the hash code value for this instance of the current class. This method is supported as required by the general contract of Object.hashCode, for the benefit of hash tables such as those provided by java.util.Hashtable.

    Overrides:
    hashCode in class Object
    Returns:
    returns the hash code for this instance

    equals

    public boolean equals(Object obj)
    Use this method for checking equality between the current object and the provided one. The result is true only if the argument is not null, is of the same type and represents the same content.

    Overrides:
    equals in class Object
    Parameters:
    obj - the object that we are comparing to
    Returns:
    returns a boolean that tells if the two objects equal

    getServerVersion

    public String getServerVersion()
    Return the version of the server


    getServerVersionMajor

    public int getServerVersionMajor()
    return the major version number of this server


    getServerVersionMinor

    public int getServerVersionMinor()
    return the minor version number of this server


    getServerVersionPatch

    public String getServerVersionPatch()
    return the patch/build number of this server


    decodeQualification

    public QualifierInfo decodeQualification(String encodedQualText)
                                      throws ARException
    Decodes an encoded qualification String into internal data strucuture representation used by Java API.

    Parameters:
    encodedQualText - the encoded qualification query string
    Throws:
    ARException - if the encoded string does not have a valid format

    encodeQualification

    public String encodeQualification(QualifierInfo qualifier)
                               throws ARException
    Encodes an internal data structure representation of qualification into String format

    Parameters:
    qualifier - the qualification object to be encoded
    Throws:
    ARException - if the given QualifierInfo object is invalid

    encodeAssignment

    public String encodeAssignment(AssignInfo assignment)
                            throws ARException
    Encodes an internal data structure representation of qualification into String format

    Parameters:
    assignment - the assignment object to be encoded
    Throws:
    ARException - if the given AssignInfo object is invalid

    decodeAssignment

    public AssignInfo decodeAssignment(String assignString)
                                throws ARException
    Decodes an encoded assignment String into internal data structure representation used by Java API

    Parameters:
    assignString - the encoded assignment string
    Throws:
    ARException - if the encoded string does not have a valid format

    encodeDSOPoolAssignment

    public String encodeDSOPoolAssignment(AssignInfo asgnInfo)
                                   throws ARException
    Encodes an internal data structure representation of Assignments into String format

    Parameters:
    asgnInfo - the assignment object to be encoded
    Returns:
    String Encoded String
    Throws:
    ARException - if the given AssignInfo object is invalid

    decodeDSOPoolAssignment

    public AssignInfo decodeDSOPoolAssignment(String encodedStr)
                                       throws ARException
    Decodes an encoded DSO Pool Mapping Assignment into internal structure representation used by AR Java API

    Parameters:
    encodedStr - the encoded assignment string
    Returns:
    AssignInfo Internal representation of assignment
    Throws:
    ARException - if the encoded string does not have a valid format

    generateGUID

    public String generateGUID()
                        throws ARException
    Generates a GUID by runninng a special AR System run process commands

    Returns:
    Genetated guid
    Throws:
    ARException - if the GUID could not be generated

    generateGUID

    public String generateGUID(String prefix)
                        throws ARException
    Generates a GUID by runninng a special AR System run process commands

    Parameters:
    prefix - The prefix desired for the generated GUID. It can be one of - null, empty string (these cases are defauld guid generation); or a non-empty string. The generated guid will have the suggested prefix (if less than or equal to two chars length) or its first two characters.
    Returns:
    Genetated guid
    Throws:
    ARException - if the GUID could not be generated

    isMemberOfGroup

    public boolean isMemberOfGroup(int groupId)
                            throws ARException
    Return is the current user member of the specified group

    Throws:
    ARException

    parseAssignment

    public AssignInfo parseAssignment(String toForm,
                                      int fieldId,
                                      String fromForm,
                                      String expression)
                               throws ARException
    Parses a given readable assignment into internal structure

    Parameters:
    toForm - Form containing the target field for this assignment
    fieldId - Target field
    fromForm - The assignment expression may include field references from this form
    expression - The readable assignment expression
    Returns:
    AssignInfo instance representing the parsed assignment
    Throws:
    ARException - denoting any parsing errors

    parseQualification

    public QualifierInfo parseQualification(String form,
                                            String qualification)
                                     throws ARException
    Parses a given readable qualification string into internal structure. This method parses qualification with fields refered to by their database field ids or database names only. If field display labels per a specific form view are involved, then prefer to use other overload that accepts vui label as well.

    Parameters:
    form - Form against which this qualification is defined
    qualification - Readable qualification string
    Returns:
    QualifierInfo parsed qualification
    Throws:
    ARException - denoting any parsing errors

    parseQualification

    public QualifierInfo parseQualification(String form,
                                            String vui,
                                            String qualification)
                                     throws ARException
    Parses a given qualification into internal structure. This overload allows specifying a vuiName so that qualification parsing can use field display labels per the given vui. Field database ids can always be used in qualifications.

    Parameters:
    form - Form against which this qualification is defined
    vui - One of the following values:
  • null - no display labels be considered;
  • "" - field display label per the default vui;
  • "SomeVuiLabelHere" - the field display labels per this vui
    qualification - Readable qualification string
    Returns:
    QualifierInfo parsed qualification
    Throws:
    ARException - denoting any parsing errors

  • parseFilterQualification

    public Object parseFilterQualification(String form,
                                           String qualification)
                                    throws ARException
    Parse a qualification that can be used with in a Filter Run If qualification

    Parameters:
    form - Form against which this qualification is defined
    qualification - Readable qualification string
    Returns:
    QualifierInfo parsed qualification
    Throws:
    ARException - denoting any parsing errors

    formatQualification

    public String formatQualification(String form,
                                      Object qualification)
                               throws ARException
    Formats an internal representation of a qualifier to a readable String

    Parameters:
    form - Form against which this qualification is defined
    qualification - given qualification - it can be an encoded qualification representation (String) or a QualifierInfo object
    Returns:
    Readable qualification string
    Throws:
    ARException - in case of formatting errors

    parseSetIfQualification

    public QualifierInfo parseSetIfQualification(String form1,
                                                 String form2,
                                                 String qualification)
                                          throws ARException
    Parses a given qualification (used as Set-If condition of a SetFields workflow action) into internal structure

    Parameters:
    form1 - Local form on which this Set If workflow action is defined
    form2 - Remote/secondary form involved in this workflow action
    qualification - Readable qualification string
    Returns:
    QualifierInfo parsed qualification
    Throws:
    ARException - denoting any parsing errors

    formatSetIfQualification

    public String formatSetIfQualification(String form1,
                                           String form2,
                                           Object qualification)
                                    throws ARException
    Formats internal structure of given qualification (used as Set-If condition of a SetFields workflow action)into a String representation

    Parameters:
    form1 - Local form on which this Set If workflow action is defined
    form2 - Remote/secondary form involved in this workflow action
    qualification - given qualification - it can be an encoded qualification representation (String) or a QualifierInfo object
    Returns:
    Readable qualification string
    Throws:
    ARException - in case of formatting errors

    formatAssignment

    public String formatAssignment(String form,
                                   int fieldId,
                                   String form2,
                                   Object assignment)
                            throws ARException
    Formats an internal representation of a assignment expression to a readable String

    Parameters:
    form - Form name that has the field against which this assignment is targetted at
    fieldId - Target field
    form2 - Remote/secondary form involved in this assignment expression (fields from this secondary form may appear in the assignment expression)
    assignment - Either an encoded assignment (String) or an AssignInfo
    Returns:
    Readable assignment string
    Throws:
    ARException - in case of formatting errors

    executeSpecialCommand

    public ProcessResult executeSpecialCommand(String cmd,
                                               Object... parameters)
                                        throws ARException
    Executes one of the special AR System run process commands

    Parameters:
    cmd - The command line
    parameters - Appropriate parameters for the given special command
    Returns:
    ProcessResult Result of running the special command
    Throws:
    ARException - if command is not performed

    getObjectChangeTimes

    public HashMap<Integer,ObjectOperationTimes> getObjectChangeTimes()
                                                               throws ARException
    Gets a HashMap of arserver objects and the timestamps for the last create, modify, or delete operation on each object.

    Returns:
    HashMap of server objects (AR_STRUCT_ITEM types) and ObjectOperationTimes containing timetamps for the last operations on each object
    Throws:
    ARException - if called with JNI version of Java API instead of pure Java implementation

    getImage

    public Image getImage(String imageName)
                   throws ARException
    return the requested Image object from AR System server.

    Parameters:
    imageName - the name of the image requested
    Throws:
    ARException - if object is not loaded

    getImage

    public Image getImage(String imageName,
                          ImageCriteria criteria)
                   throws ARException
    return the requested Image object from AR System server.

    Parameters:
    imageName - the name of the image requested
    criteria - the attribute returned for the Image object
    Throws:
    ARException - if object is not loaded

    getListImageObjects

    public List<Image> getListImageObjects(String formName)
                                    throws ARException
    Returns detailed information for all (accessible) Image objects that are associated with the specified form

    Parameters:
    formName - the name of the form that is associated with the image.
    Throws:
    ARException

    getListImageObjects

    public List<Image> getListImageObjects(String formName,
                                           long changedSince)
                                    throws ARException
    Returns detailed information for all Image objects that are associated with the specified form and modified after the given time.

    Parameters:
    formName - the name of the form that is associated with the image.
    changedSince - A timestamp that limits the images retrieved to those modified after the specified time. Specify 0 for this parameter to retrieve images with any modification timestamp.
    Throws:
    ARException

    getListImageObjects

    public List<Image> getListImageObjects(String formName,
                                           long changedSince,
                                           ImageCriteria criteria)
                                    throws ARException
    Returns detailed information for all Image objects specified by the criteria and ImageCriteria.

    Parameters:
    formName - the name of the form that is associated with the image.
    changedSince - A timestamp that limits the images retrieved to those modified after the specified time.
    criteria - the infomation (attributes) to retrieve
    Throws:
    ARException

    getListImageObjects

    public List<Image> getListImageObjects()
                                    throws ARException
    Returns detailed information for all Image objects

    Throws:
    ARException

    getListImageObjects

    public List<Image> getListImageObjects(List<String> names)
                                    throws ARException
    Returns detailed information for the requested Image objects

    Parameters:
    names - the names of images to retrieve
    Throws:
    ARException

    getListImageObjects

    public List<Image> getListImageObjects(List<String> names,
                                           ImageCriteria criteria)
                                    throws ARException
    Returns detailed information for the requested Image objects

    Parameters:
    names - the names of images to retrieve
    criteria - the attribute returned for each image object
    Throws:
    ARException

    getListImageObjects

    public List<Image> getListImageObjects(List<String> names,
                                           long changedSince,
                                           ImageCriteria criteria)
                                    throws ARException
    Returns detailed information for the requested Image objects and is modified after the give time

    Parameters:
    names - the names of images to retrieve
    changedSince - A timestamp that limits the images retrieved to those modified after the specified time. Specify 0 for this parameter to retrieve images with any modification timestamp.
    criteria - the attribute returned for each image object
    Throws:
    ARException

    setImage

    public void setImage(Image obj)
                  throws ARException
    Saves the changes made to the image object into AR System server

    Throws:
    ARException - if form is not updated

    createImage

    public void createImage(Image obj)
                     throws ARException
    Creates this image on the server specified in the ARServerUser.

    Throws:
    ARException - if form is not created

    deleteImage

    public void deleteImage(String imageName,
                            boolean updateRef)
                     throws ARException
    Deletes obj image from the server specified in the ARServerUser and optionally deletes any references to the image obj form, depending on the value of updateRef.

    Throws:
    ARException - if form is not deleted

    getListImage

    public List<String> getListImage()
                              throws ARException
    return the names of all Image objects

    Throws:
    ARException

    getListImage

    public List<String> getListImage(List<String> formList)
                              throws ARException
    return the names of all Image objects that are associated with the given list of forms

    Parameters:
    formList - a list of forms to check to determine whether any images are that is associated with the escalation
    Throws:
    ARException

    getListImage

    public List<String> getListImage(long changedSince)
                              throws ARException
    return the names of all Image objects that have been modified after the specified timestamp

    Parameters:
    changedSince - A timestamp that limits images retrieved to those modified after the specified time. Specify 0 for this parameter to retrieve images with any modification timestamp.
    Throws:
    ARException

    getListImage

    public List<String> getListImage(String imageType)
                              throws ARException
    return the names of all Image objects of a specified type (ie, "jpg")

    Parameters:
    imageType - A specific image type to retrieve from the server. Specify a null string to retrieve all image types.
    Throws:
    ARException

    getListImage

    public List<String> getListImage(List<String> formList,
                                     long changedSince,
                                     String imageType)
                              throws ARException
    return the names of all Image objects that match the given criteria

    Parameters:
    formList - the list of forms to retrieve image objects from Specify null to retrieve images from all forms
    changedSince - A timestamp that limits images retrieved to those modified after the specified time. Specify 0 for this parameter to retrieve images with any modification timestamp.
    imageType - A specific image type to retrieve from the server. Specify a null string to retrieve all image types.
    Throws:
    ARException - if list is not returned

    deleteAlert

    public void deleteAlert(String entryId)
                     throws ARException
    Deletes an alert event from the system.

    Parameters:
    entryId - This value is the Entry ID of the alert event returned at the time of creation.
    Throws:
    ARException

    getTransactionHandle

    public String getTransactionHandle()
    For ARSystem internal use only.


    beginClientManagedTransaction

    public String beginClientManagedTransaction()
                                         throws ARException
    Begin a client managed transaction. This will return a transaction handle at successful completion of the API.

    This call is reserved for future use.

    Parameters:
    transactionHandle - The parameter which will be filled with the transactionHandle
    Throws:
    ARException - if creating a transaction handle is not successful.

    endClientManagedTransaction

    public void endClientManagedTransaction(int transactionOption)
                                     throws ARException
    End a client managed transaction. The transaction handle in the user will set to null after this API is done.

    This call is reserved for future use.

    Parameters:
    transactionOption - The parameter which will be filled with the transactionHandle
    Throws:
    ARException - if commiting/rollback of the transaction is not successful

    setClientManagedTransaction

    public void setClientManagedTransaction(String transactionHandle)
                                     throws ARException
    Sets a client managed transaction. The transaction handle to be set is passed as an argument.

    This call is reserved for future use.

    Parameters:
    transactionHandle - The parameter which will be filled with the transactionHandle to be set.
    Throws:
    ARException

    removeClientManagedTransaction

    public void removeClientManagedTransaction()
                                        throws ARException
    Removes a client managed transaction handle from the ARServerUser

    This call is reserved for future use.

    Throws:
    ARException

    wfdExecute

    public int[] wfdExecute(int mode)
                     throws ARException
    Tell the debug worker thread to begin execution

    Parameters:
    mode - How to execute? single step, run to bp etc. 0 indicates single step.
    Throws:
    ARException

    wfdGetDebugLocation

    public WfdDebugLocation wfdGetDebugLocation(int depth)
                                         throws ARException
    returns the current location of the debug thread

    Parameters:
    depth - How far back on the stack to retrieve location info 0 indicates current.
    Throws:
    ARException

    wfdGetDebugMode

    public int wfdGetDebugMode()
                        throws ARException
    Get debug mode, indicating which stopping points are enforced

    Parameters:
    mode - Where to stop? Begin API, Pre-Qual, Phase1, etc. 0 indicates none.
    Throws:
    ARException

    wfdSetDebugMode

    public void wfdSetDebugMode(int mode)
                         throws ARException
    Set debug mode, indicating which stopping points to enforce

    Parameters:
    mode - Where to stop? Begin API, Pre-Qual, Phase1, etc. 0 indicates none.
    Throws:
    ARException

    wfdGetFieldValues

    public List<Entry> wfdGetFieldValues(int depth)
                                  throws ARException
    Get field values

    Parameters:
    depth - Stack depth for desired FV lists. 0 indicates current.
    Throws:
    ARException

    wfdSetFieldValues

    public void wfdSetFieldValues(List<Entry> fieldValues)
                           throws ARException
    Set field values

    Parameters:
    mode - Values to replace in existing transaction and database lists.
    Throws:
    ARException

    wfdGetFilterQual

    public QualifierInfo wfdGetFilterQual()
                                   throws ARException
    Get Filter qualifier

    Throws:
    ARException

    wfdSetQualifierResult

    public void wfdSetQualifierResult(boolean result)
                               throws ARException
    Set qualifier result

    Throws:
    ARException

    wfdTerminateAPI

    public void wfdTerminateAPI(int errorCode)
                         throws ARException
    Terminate API

    Throws:
    ARException

    wfdGetKeywordValue

    public Value wfdGetKeywordValue(int kwId)
                             throws ARException
    Get Keyword Value

    Throws:
    ARException

    wfdGetUserContext

    public WfdUserContext wfdGetUserContext(int mask)
                                     throws ARException
    Get User context

    Throws:
    ARException

    wfdSetBreakpoint

    public void wfdSetBreakpoint(int errorCode,
                                 WfdBreakpoint bp)
                          throws ARException
    Set Breakpoint

    Throws:
    ARException

    wfdClearBreakpoint

    public void wfdClearBreakpoint(int bpId)
                            throws ARException
    Clear Breakpoint

    Throws:
    ARException

    wfdListBreakpoints

    public List<WfdBreakpoint> wfdListBreakpoints()
                                           throws ARException
    List Breakpoints

    Throws:
    ARException

    wfdClearAllBreakpoints

    public void wfdClearAllBreakpoints()
                                throws ARException
    Clear All Breakpoints

    Throws:
    ARException

    getCacheEvent

    public List<Integer> getCacheEvent(int[] eventIdList,
                                       int returnOption,
                                       OutputInteger cacheCount)
                                throws ARException
    Returns cache event IDs that have occurred.

    Parameters:
    eventIdList - Events for which clients want to know the status. Values include: AR_CACHE_ADMINONLYCREATE_EVENT = 1, AR_CACHE_ADMINONLYPUBLIC_EVENT = 2, AR_CACHE_FREE_EVENT = 3.
    returnOption - This flag indicates whether client wants to wait(=1) for next event or wants to return immediately(=0). Default is to return immediately.
    cacheCount - It returns the total number of caches present at the time of call getting returned.
    Returns:
    Event IDs for those events that has occurred from the requested list after the request was made.
    Throws:
    ARException - If IDs are not loaded.

    runEscalation

    public void runEscalation(String escalation)
                       throws ARException
    Run Escalation

    Throws:
    ARException

    AR System Java API

    ? Copyright 2006, 2007 BMC Software, Inc.