|
|
Package com.matrixone.apps.domain |
Class DomainObject
|
Class Hierarchy |
java.lang.Object | +-matrix.db.ErrorObject | +-matrix.db.BusinessObject | +-com.matrixone.apps.domain.DomainObject
Class Location |
Class Description |
public class DomainObject
The DomainObject
class represents the top level class
for the AEF java classes. Each class represents an instantiated
type in the AEF.
All Implemented Interfaces: DomainConstants DomainSymbolicConstants ImageHolder
Field Summary |
protected static boolean | _debug
true if debugging info should be sent to System.out. |
public static final String | ATTRIBUTE_PRIMARY_IMAGE
|
public static final boolean | CHECK_HIDDEN
|
public static short | FILTER_ITEM
|
public static short | FILTER_STR_AND_ITEM
|
public static short | FILTER_STRUCTURE
|
public static final String | FORMAT_MX_IMAGE
|
public static final String | FORMAT_MX_LARGE_IMAGE
|
public static final String | FORMAT_MX_MEDIUM_IMAGE
|
public static final String | FORMAT_MX_SMALL_IMAGE
|
public static final String | FORMAT_MX_THUMBNAIL_IMAGE
|
public String[] | LICENSE_RESERVED_APPS
|
public static final boolean | LIST
|
public static final short | PAGE_SIZE
|
public static final String | POLICY_IMAGE_HOLDER
|
public static final boolean | PREVENT_DUPLICATES
|
public static final String | PROPERTY_DEBUG
|
public static final String | PROPERTY_SERVER_HOST
|
public static final String | PROPERTY_SERVER_NAME
|
public static final String | RELATIONSHIP_IMAGE_HOLDER
|
public static final String | SELECT_IMAGE_FILE_NAMES
|
public static final String | SELECT_IMAGE_FORMAT_NAMES
|
public static final String | SELECT_IMAGE_HOLDER_FILE_NAMES
|
public static final String | SELECT_IMAGE_HOLDER_FORMAT_NAMES
|
public static final String | SELECT_IMAGE_HOLDER_ID
|
public static final String | SELECT_IMAGE_HOLDER_MX_IMAGE_FILE_NAMES
|
public static final String | SELECT_IMAGE_HOLDER_MX_LARGE_IMAGE_FILE_NAMES
|
public static final String | SELECT_IMAGE_HOLDER_MX_MEDIUM_IMAGE_FILE_NAMES
|
public static final String | SELECT_IMAGE_HOLDER_MX_SMALL_IMAGE_FILE_NAMES
|
public static final String | SELECT_IMAGE_HOLDER_MX_THUMBNAIL_IMAGE_FILE_NAMES
|
public static final String | SELECT_IMAGE_HOLDER_PRIMARY_IMAGE_NAME
|
public static final String | SELECT_IMAGE_ID
|
public static final String | SELECT_IMAGE_PRIMARY_IMAGE_NAME
|
public static final String | SELECT_MX_IMAGE_FILE_NAMES
|
public static final String | SELECT_MX_LARGE_IMAGE_FILE_NAMES
|
public static final String | SELECT_MX_SMALL_IMAGE_FILE_NAMES
|
public static final String | SELECT_MX_THUMBNAIL_IMAGE_FILE_NAMES
|
public static final String | SELECT_PRIMARY_IMAGE
|
public static final String | SELECT_PRIMARY_IMAGE_ID
|
public static final String | TYPE_IMAGE_HOLDER
|
Constructor Summary |
DomainObject()
Construct a new DomainObject. |
DomainObject(String objectId)
Construct a new DomainObject. |
DomainObject(DecoratedOid objectId)
Construct a new DomainObject. |
DomainObject(BusinessObject object)
Construct a new DomainObject. |
Method Summary |
public static void | abortSavePoint(Context context, String savePoint)
Aborts a database transaction to a save point. Deprecated. AEF 9.5.1.0, use ContextUtil.abortSavePoint |
public void | abortTransaction(Context context)
Abort an existing database transaction. Deprecated. AEF 9.5.1.0, use ContextUtil.abortTransaction |
public DomainRelationship | addFromObject(Context context, RelationshipType relationshipType, String fromObjectId)
Connects this object from the given object. |
public Map | addFromObjects(Context context, RelationshipType relationshipType, String[] fromObjectIds)
Connects this object from the given objects. |
public DomainRelationship | addFromObjects(Context context, String relationshipType, DomainObject fromBO)
Connects this object from the given object. Deprecated. use addFromObject |
public DomainRelationship | addRelatedObject(Context context, RelationshipType relationshipType, boolean isFrom, String relatedObjectId)
Connects two business object instances. |
public Map | addRelatedObjects(Context context, RelationshipType relationshipType, boolean isFrom, String[] relatedObjectIds)
Connects this object with the given objects. |
public DomainRelationship | addRelatedObjects(Context context, String relationshipType, DomainObject bo, boolean isFrom)
Connects a business object instance linked to a parent. Deprecated. use addRelatedObject |
public DomainRelationship | addToObject(Context context, RelationshipType relationshipType, String toObjectId)
Connects this object to the given object. |
protected Map | addToObjects(Context context, RelationshipType relationshipType, String[] toObjectIds)
Connects this object to the given object. |
public DomainRelationship | addToObjects(Context context, String relationshipType, DomainObject toBO)
Connects this object to the given object. Deprecated. use addToObject |
protected void | backupFile(Context context, DomainObject toObject, String store)
Copies the current document checked in file to the version document |
public void | changeOwner(Context context, String owner)
Change the business object owner for this object. Deprecated. AEF 9.5.1.0, use setOwner |
public void | changePolicy(Context context, String policy)
Change the business object policy for this object. Deprecated. AEF 9.5.1.0, use setPolicy |
public void | changeVault(Context context, String vault)
Change the business object vault for this object. Deprecated. AEF 9.5.1.0, use setVault |
public void | checkinFromServer(Context context, boolean unlock, boolean append, String format, StringList fileList)
Checkin a files of the given format from server this method will checkin document into the Company specific store To checkin in policy defined store call another checkinFromServer method with store parameter as null |
public void | checkinFromServer(Context context, boolean unlock, boolean append, String format, String store, StringList fileList)
Checkin a file of the given format from server This method checkin document into given store if store is null it is going to use policy default store for checkin file. |
public void | clear()
Clear the bean object information as well as anything that has been cached. |
public BusinessObject | cloneObject(Context context, String name)
Clone an object in the database. |
public BusinessObject | cloneObject(Context context, String name, String revision, String vault)
Clone an object in the database. |
public BusinessObject | cloneObject(Context context, String name, String revision, String vault, boolean copyFiles)
Clone an object in the database. |
public BusinessObject | cloneObject(Context context, String name, String revision, String vault, boolean copyFiles, boolean useAutoNamer)
Clone an object in the database. |
public DomainObject | cloneWithFileMove(Context context, String type, String name, String revision, String policy, String vault, String store, Map attributesMap)
Clone and move file(s) from the current object(parent) to the new created object given information passed in. |
public void | closeObject(Context context, boolean close)
Close the object if the close parameter is true. |
public void | commitTransaction(Context context)
Commit and complete an existing database transaction. Deprecated. AEF 9.5.1.0, use ContextUtil.commitTransaction |
public void | confirmDelete(Context context, boolean force, BusinessObjectList objects)
Get a list of objects to be deleted. Deprecated. AEF 9.5.1.0, use delete trigger |
public DomainRelationship | connect(Context context, String relationshipType, DomainObject bo, boolean isFrom)
Connects a business object instance linked to a parent. Deprecated. AEF 9.5.1.0, use addRelatedObjects |
public DomainRelationship | connectFrom(Context context, String relationshipType, DomainObject fromBO)
Connects this object from the given object. Deprecated. AEF 9.5.1.0, use addFromObjects |
public DomainRelationship | connectTo(Context context, String relationshipType, DomainObject toBO)
Connects this object to the given object. Deprecated. AEF 9.5.1.0, use addToObjects |
public DomainRelationship | createAndConnect(Context context, String type, String relationshipType, DomainObject parentBO, boolean isFrom)
Creates an business object instance linked to a parent. |
public DomainRelationship | createAndConnect(Context context, String type, String name, String relationshipType, DomainObject parentBO, boolean isFrom)
Creates an business object instance linked to a parent. |
public DomainRelationship | createAndConnect(Context context, String type, String name, String revision, String policy, String vault, String relationshipType, DomainObject connectedBO, boolean isFrom)
Creates an business object instance linked to a parent. |
public void | createObject(Context context, String type, String name, String revision, String policy, String vault)
Add an object to the database. |
public void | createObject(Context context, String type, String name, String revision, String policy, String vault, Map requestMap)
Add an object to the database. |
public Map | createRevision(Context context)
Create a new revision of an object in the database based on it's last revision. Deprecated. AEF 9.5.1.0, use Part.createRevision |
protected void | debug(String message)
Send debug message to output stream. Deprecated. AEF 9.5.1.0, use DebugUtil.debug |
protected void | debug(String message1, String message2)
Send debug message to output stream. Deprecated. AEF 9.5.1.0, use DebugUtil.debug |
protected void | debug(String message1, String message2, String message3)
Send debug message to output stream. Deprecated. use DebugUtil.debug |
public void | delete(Context context)
Delete the current object - permanently removed. Deprecated. AEF 9.5.1.0, use deleteObject |
public void | delete(Context context, boolean force)
Delete the current object - permanently removed. Deprecated. AEF 9.5.1.0, use deleteObject |
public void | deleteObject(Context context)
Delete the current object - permanently removed. |
public void | deleteObject(Context context, boolean force)
Delete the current object - permanently removed. |
public static void | deleteObjects(Context context, String[] objectIds)
Deletes the objects specified by the ids. |
public void | editBasicInfo(Context context, Map map)
Edit the basic info for an object. Deprecated. AEF 9.5.1.0 |
public MapList | expandSelect(Context context, String relationshipPattern, String typePattern, StringList objectSelects, StringList relationshipSelects, boolean getTo, boolean getFrom, short recurseToLevel, String objectWhere, String relationshipWhere, MapList cachedList, boolean useCache)
Do an expand and select on a BusinessObject. Deprecated. as of AEF 9.5.1.0, use getRelatedObjects. |
public MapList | expandSelect(Context context, String relationshipPattern, String typePattern, StringList objectSelects, StringList relationshipSelects, boolean getTo, boolean getFrom, short recurseToLevel, String objectWhere, String relationshipWhere, MapList cachedList, boolean useCache, String relKeyPrefix)
Do an expand and select on a BusinessObject. Deprecated. AEF 9.5.1.0 - shouldn't be needed since relationship selects are appended with ".value" to keep them different. Still used by ECR, Part Definition, and Drawing Print. |
public MapList | expandSelect(Context context, String relationshipPattern, String typePattern, StringList objectSelects, StringList relationshipSelects, boolean getTo, boolean getFrom, short recurseToLevel, String objectWhere, String relationshipWhere, Pattern includeType, Pattern includeRelationship, Map includeMap, MapList cachedList, boolean useCache)
Do an expand and select on a BusinessObject. Deprecated. AEF 9.5.1.0, use getRelatedObjects |
public static MapList | findObjects(Context context, String typePattern, String vaultPattern, String whereExpression, StringList objectSelects)
Queries on the given criteria into a map list containing a mapping of selectable names to values. |
public static MapList | findObjects(Context context, String typePattern, String namePattern, String revPattern, String ownerPattern, String vaultPattern, String whereExpression, boolean expandType, StringList objectSelects)
Queries on the given criteria into a map list containing a mapping of selectable names to values. |
public static MapList | findObjects(Context context, String typePattern, String namePattern, String revPattern, String ownerPattern, String vaultPattern, String whereExpression, String queryName, boolean expandType, StringList objectSelects, short objectLimit)
Queries on the given criteria into a map list containing a mapping of selectable names to values. |
public static MapList | findObjects(Context context, String typePattern, String namePattern, String revPattern, String ownerPattern, String vaultPattern, String whereExpression, String queryName, boolean expandType, StringList objectSelects, short objectLimit, String searchFormat, String searchText)
Queries on the given criteria into a map list containing a mapping of selectable names to values. Deprecated. AEF V6R2012 |
public static MapList | findObjects(Context context, String typePattern, String namePattern, String revPattern, String ownerPattern, String vaultPattern, String whereExpression, String queryName, boolean expandType, StringList objectSelects, short objectLimit, String searchFormat, String searchText, Collection multiValueList)
Queries on the given criteria into a map list containing a mapping of selectable names to values. |
public static String | getAliasForName(Context context, String name, boolean useCache)
Get the schema alias for the given schema name. Deprecated. AEF 9.5.1.0, use FrameworkUtil.getAliasForAdmin |
public MapList | getAllFiles(Context context)
Get a list of Files in a MapList. |
public MapList | getAllFormatFiles(Context context)
Get a list of Files in a MapList. |
public MapList | getApprovalsInfo(Context context)
Get the approvals info for an object along with select data Deprecated. AEF 9.5.1.0, use Route.getApprovalsInfo |
public Attribute | getAttribute(Context context, String attributeName)
Get an Attribute for the attribute with the
passed attributeName .
Deprecated. AEF 9.5.1.0, use getInfo (hidden attrs do not appear) |
public Map | getAttributeDetails(Context context)
Returns all the business object attribute details in a Map of Maps. |
public Map | getAttributeMap(Context context)
Returns all the business object attribute values in a form of a map of attribute name and attribute value. |
public Map | getAttributeMap(Context context, boolean getHidden)
Returns all the business object attribute values in a form of a map of attribute name and attribute value. |
protected StringList | getAttributeNames(Context context)
Get the attribute names for this business object. |
public static String | getAttributeSelect(String attribute)
Defines the proper way to define attribute selectables for print and expand. |
public String | getAttributeValue(Context context, String attributeName)
Get the attribute value for the attribute with the passed attributeName . |
public static String | getAutoGeneratedName(Context context, String sObjectGeneratorName, String sObjectGeneratorRevision)
Generate a name based on Object Generator's name and revision |
public MapList | getBasicInfo(Context context)
Get the basic info for an object. Deprecated. AEF 9.5.1.0, see Ray |
public Hashtable | getBusinessObjectData(Context context, StringList busSelects)
Gets the businessobject selectable data |
public SelectList | getBusSelectList(int size)
Return the SelectList object for this instance. Deprecated. AEF 9.5.1.0, use getObjectSelectList |
protected Object | getCachedData(Object key)
Get the selected cached data. Deprecated. AEF 9.5.1.0, caching being removed |
public State | getCurrentState(Context context)
Return the current state for this object. Deprecated. AEF 9.5.1.0, use getInfo |
public DecoratedOid | getDecoratedOid(Context context)
Returns the DecoratedOid for this DomainObject |
protected String | getDefaultName(Context context)
Get the default name for new objects. |
public String | getDefaultPolicy(Context context, String type)
Get the default policy for new objects. |
public String | getDefaultRevision(Context context, String policyName)
Return the default revision for new objects. |
public String | getDefaultVault(Context context, BusinessObject bo)
Get the default vault for new objects. |
protected BusinessObject | getFirstRevision(Context context)
Get the first revision for this object. |
public String | getId()
Get the business object id for this object. Deprecated. use overloaded getId(Context) method |
public String | getId(Context context)
Get the business object id for this object. |
public Image | getImageObject(Context context)
|
public String | getInfo(Context context, String select)
Get information regarding this business object. |
public static MapList | getInfo(Context context, String[] objectIds, StringList objectSelects)
Get information regarding many business objects. |
public Map | getInfo(Context context, StringList objectSelects)
Get information regarding this business object. |
protected Map | getInfo(Context context, StringList objectSelects, Collection multiValueList)
Get information regarding this business object. |
public StringList | getInfoList(Context context, String select)
Get information regarding this business object. |
public BusinessObject | getLastRevision(Context context)
Get the last revision for this object. |
public String[] | getLicenseReservedAPPS()
|
public String | getName(Context context)
Return the name for this object. Deprecated. AEF 9.5.1.0, use getInfo |
public static DomainObject | getObject(Context context, BusinessObject bo)
Returns a fully contstructed DomainObject derivative given the Object ID. Deprecated. AEF 9.5.1.0, use newInstance |
public static DomainObject | getObject(Context context, DecoratedOid oid)
Returns a fully contstructed DomainObject derivative given the DecoaretdObject ID. Deprecated. AEF 9.5.1.0, use newInstance |
public static DomainObject | getObject(Context context, String oid)
Returns a fully contstructed DomainObject derivative given the Object ID. Deprecated. AEF 9.5.1.0, use newInstance |
public MapList | getObjects(Context context, String relPattern, String typePattern, boolean getTo, boolean getFrom, int recursionLevel, StringList objectSelects, StringList relationshipSelects, String busWhereClause, String relWhereClause, String postRelPattern, String postTypePattern, Map postPatterns, MapList cacheList, boolean useCache)
Expand business objects based on App Lib Expand function. Deprecated. AEF 9.5.1.0, use getRelatedObjects |
public SelectList | getObjectSelectList(int size)
Return the SelectList object for this instance. |
protected MapList | getParentInfo(Context context, int level, StringList objectSelects, String relationship)
Get the parent for this business object. Deprecated. AEF 9.5.1.0, use getRelatedObjects |
public MapList | getPolicies(Context context)
Get the policies for this object. Deprecated. AEF 9.5.1.0 use TypeUtils.getPolicies |
public BusinessObject | getPreviousRevision(Context context)
Get the Previous revision for this object. |
public Map | getRelatedObject(Context context, String relationship, boolean from, StringList busSelects, StringList relSelects)
Retrieves information by traversing one level on a given reationship. |
public MapList | getRelatedObjects(Context context, String relationshipPattern, String typePattern, boolean getTo, boolean getFrom, int recurseToLevel, StringList objectSelects, StringList relationshipSelects, String objectWhereClause, String relationshipWhereClause, int limit, String postRelPattern, String postTypePattern, Map postPatterns)
Expand business objects based on App Lib Expand function. |
public MapList | getRelatedObjects(Context context, String relationshipPattern, String typePattern, boolean getTo, boolean getFrom, int recurseToLevel, StringList objectSelects, StringList relationshipSelects, String objectWhereClause, String relationshipWhereClause, String postRelPattern, String postTypePattern, Map postPatterns)
Expand business objects based on App Lib Expand function. Deprecated. Use getRelatedObjects with limit |
public MapList | getRelatedObjects(Context context, String relationshipPattern, String typePattern, StringList objectSelects, StringList relationshipSelects, boolean getTo, boolean getFrom, short recurseToLevel, String objectWhere, String relationshipWhere)
Do an expand and select on a BusinessObject. Deprecated. Use getRelatedObjects with limit |
public MapList | getRelatedObjects(Context context, String relationshipPattern, String typePattern, StringList objectSelects, StringList relationshipSelects, boolean getTo, boolean getFrom, short recurseToLevel, String objectWhere, String relationshipWhere, int limit)
Do an expand and select on a BusinessObject. |
public MapList | getRelatedObjects(Context context, String relationshipPattern, String typePattern, StringList objectSelects, StringList relationshipSelects, boolean getTo, boolean getFrom, short recurseToLevel, String objectWhere, String relationshipWhere, int limit, Pattern includeType, Pattern includeRelationship, Map includeMap)
Do an expand and select on a BusinessObject. |
public MapList | getRelatedObjects(Context context, String relationshipPattern, String typePattern, StringList objectSelects, StringList relationshipSelects, boolean getTo, boolean getFrom, short recurseToLevel, String objectWhere, String relationshipWhere, Pattern includeType, Pattern includeRelationship, Map includeMap)
Do an expand and select on a BusinessObject. Deprecated. Use getRelatedObjects with limit |
public MapList | getRelatedObjects(Context context, String relationshipPattern, String typePattern, StringList objectSelects, StringList relationshipSelects, boolean getTo, boolean getFrom, short recurseToLevel, String objectWhereClause, String relationshipWhereClause, short limit, boolean checkHidden, boolean preventDuplicates, short pageSize, Pattern includeType, Pattern includeRelationship, Map includeMap, String relKeyPrefix)
|
public MapList | getRelatedObjects(Context context, String relationshipPattern, String typePattern, StringList objectSelects, StringList relationshipSelects, boolean getTo, boolean getFrom, short recurseToLevel, String objectWhereClause, String relationshipWhereClause, short limit, boolean checkHidden, boolean preventDuplicates, short pageSize, Pattern includeType, Pattern includeRelationship, Map includeMap, String relKeyPrefix, String filterExpression)
Do an expand and select on a BusinessObject. |
public MapList | getRelatedObjects(Context context, String relationshipPattern, String typePattern, StringList objectSelects, StringList relationshipSelects, boolean getTo, boolean getFrom, short recurseToLevel, String objectWhereClause, String relationshipWhereClause, short limit, boolean checkHidden, boolean preventDuplicates, short pageSize, Pattern includeType, Pattern includeRelationship, Map includeMap, String relKeyPrefix, String filterExpression, short filterFlag)
Do an expand and select on a BusinessObject. |
protected Map | getRelationship(Context context, String relationship, boolean from, StringList busSelects, StringList relSelects)
Retrieves information by traversing one level on a given reationship. Deprecated. AEF 9.5.1.0, use getRelatedObject |
public SelectList | getRelationshipSelectList(int size)
Return the relationship SelectList object for this instance. |
public String | getRevision(Context context)
Get the business object revision for this object. Deprecated. AEF 9.5.1.0, use getInfo |
public MapList | getRevisions(Context context, StringList objectSelects, boolean useCache)
Get selectables from each revision of this object. Deprecated. AEF 9.5.1.0, use getRevisionsInfo |
public MapList | getRevisionsInfo(Context context, StringList singleValueSelects, StringList multiValueSelects)
Get the revisions for an object along with select data |
public Map | getRouteInfoForStates(Context context, String sAdHoc)
Get map of State/Route info Deprecated. AEF 9.5.1.0, use Route.getRouteInfoForStates |
public String | getSchemaProperty(Context context, String type, String name, String property)
Get the schema property of an administrative object. Deprecated. AEF 9.5.1.0, use PropertyUtil.getSchemaProperty |
public static String | getSchemaProperty(String property)
Get the AEF schema property reference through this property, actual schema names are returned. Deprecated. AEF 9.5.1.0, use PropertyUtil.getSchemaProperty |
protected static String | getSchemaProperty(String type, String name, String property)
Get the schema property of an administrative object. Deprecated. AEF 9.5.1.0, use PropertyUtil.getSchemaProperty |
public String | getShortUniqueName()
Generate a unique name for an object. |
public String | getShortUniqueName(String prefix)
Generate a unique name for an object. |
public MapList | getSignaturesDetails(Context context, State fromState, State toState)
Get the Signatures details info for an object between the states |
public MapList | getSignaturesDetails(Context context, String fromState, String toState)
Get the Signatures details info for an object between the states |
protected State | getState(Context context, String name)
Get the named state for this object. Deprecated. AEF 9.5.1.0, use getInfo |
public String | getType(Context context)
Return the business object type for this object. Deprecated. AEF 9.5.1.0, use getInfo |
protected static StringList | getTypeAttributeNames(Context context, String typeName)
Get the attribute names for the specified type. |
protected static MapList | getTypeAttributes(Context context, String type)
Get the business type attributes - type specific attributes. |
public String | getUniqueName()
Generate a unique name for an object. Deprecated. since V6R2011 - Always use this method with Context |
public String | getUniqueName(Context context)
Generate a unique name for an object. |
public String | getUniqueName(String prefix)
Generate a unique name for an object. |
public synchronized String | getUniqueName(String prefix, int noOfDigits)
Generate a unique name for an object. |
public void | gotoState(Context context, String stateName)
Set the state of the object to the given state. Deprecated. AEF 9.5.1.0, use setState |
protected boolean | hasObjects(Context context, String relationshipType, boolean from)
Checks whether the current object has relationships of a certain type. Deprecated. AEF 9.5.1.0, use hasRelatedObjects |
public boolean | hasRelatedObjects(Context context, String relationshipType, boolean from)
Checks whether the current object has relationships of a certain type. |
public boolean | isKindOf(Context context, String type)
Returns true if this object's type inherits from the type passed in. |
public boolean | isLastRevision(Context context)
Check to see if this is the last revision of the object. |
public static String | mqlCommand(Context context, MQLCommand mql, String command)
Executes an mql command. Deprecated. AEF 9.5.1.0, use MqlUtil.mqlCommand |
protected static String | mqlCommand(Context context, MQLCommand mql, String command, boolean runAsSuperUser)
Executes an mql command. Deprecated. AEF 9.5.1.0, use MqlUtil.mqlCommand |
protected String | mqlCommand(Context context, String command)
Executes an mql command. Deprecated. AEF 9.5.1.0, use MqlUtil.mqlCommand |
protected String | mqlCommand(Context context, String command, boolean runAsSuperUser)
Executes an mql command. Deprecated. AEF 9.5.1.0, use MqlUtil.mqlCommand |
public static boolean | multiLevelRecursionCheck(Context context, String fromObjectId, String toObjectId, String relType, boolean includeRevisionsCheck)
|
public static DomainObject | newInstance(Context context)
Returns DomainObject given context this is prefered method to call instead of newing up DomainObject |
public static DomainObject | newInstance(Context context, BusinessObject bo)
Returns a fully contstructed DomainObject derivative given the BusinessObject. |
public static DomainObject | newInstance(Context context, BusinessObject bo, String applicationName)
Returns a fully contstructed DomainObject derivative given the BusinessObject. |
public static DomainObject | newInstance(Context context, DecoratedOid oid)
Returns a fully contstructed DomainObject derivative given the DecoaretdObject ID. |
public static DomainObject | newInstance(Context context, DecoratedOid oid, String applicationName)
Returns a fully contstructed DomainObject derivative given the DecoaretdObject ID. |
public static DomainObject | newInstance(Context context, String idORtype)
Returns a fully contstructed DomainObject derivative given the object ID or object Type. |
public static DomainObject | newInstance(Context context, String idORtype, String applicationName)
Returns a fully contstructed DomainObject derivative given the object ID or object Type. |
public static DomainObject | newInstance(Context context, String idORtype, String applicationName, String interfaceName)
Returns a fully contstructed DomainObject derivative given the object ID or object Type/interface. |
public boolean | openObject(Context context)
Assure the object is open. |
protected static void | popContext(Context context)
Restore the original context, can only be called after the call to a corresponding push. Deprecated. AEF 9.5.1.0, use ContextUtil.popContext |
protected static void | pushContext(Context context)
Get the super user context. Deprecated. AEF 9.5.1.0, use ContextUtil.pushContext |
protected static void | pushContext(Context context, String name, String password, String vault)
Get the super user context. Deprecated. AEF 9.5.1.0, use ContextUtil.pushContext |
public static MapList | querySelect(Context context, String typePattern, String vaultPattern, String whereExpression, StringList objectSelects, MapList cachedList, boolean useCache)
Queries on the given criteria into a map list containing a mapping of selectable names to values. Deprecated. AEF 9.5.1.0, use findObjects |
public static MapList | querySelect(Context context, String typePattern, String namePattern, String revPattern, String ownerPattern, String vaultPattern, String whereExpression, boolean expandType, StringList objectSelects, MapList cachedList, boolean useCache)
Queries on the given criteria into a map list containing a mapping of selectable names to values. Deprecated. AEF 9.5.1.0, use findObjects |
public void | resetAttributes(Context context)
Reset all attribute values for this object. |
public BusinessObject | reviseObject(Context context, boolean copyFiles)
Create a new revision of an object in the database based on it's last revision. |
public BusinessObject | reviseObject(Context context, String nextRev, boolean copyFiles)
Create a new revision of an object in the database based on it's last revision. |
public void | revokeAccess(Context context, String grantor, String grantee)
Revoke access rights for a grantor and grantee combination. |
public void | setAttributeValue(Context context, String name, String value)
Set an attribute value for this object. |
public void | setAttributeValues(Context context, Map map)
Set the business object attributes for this object. |
protected void | setCachedData(Object key, Object value)
Set the selected cached data. Deprecated. AEF 9.5.1.0, caching is being removed. |
public static void | setDebug(boolean mode)
Sets the debug mode for this bean. Deprecated. use DebugUtil.setDebug |
public void | setDescription(Context context, String description)
Modifies the business object description for this object. |
public void | setId(String id)
Sets the id for this object. |
public void | setLicenseReservedAPPS(String[] lICENSE_RESERVED_APPS)
|
public void | setName(Context context, String name)
Set the business object name for this object. |
public void | setOwner(Context context, String owner)
Set the business object owner for this object. |
public void | setPolicy(Context context, String policy)
Change the business object policy for this object. |
public DomainRelationship | setRelatedObject(Context context, String relationshipType, boolean isFrom, String newTargetId)
Connects the current object to/from the id specified using the relationship type provided. |
protected DomainRelationship | setRelationship(Context context, String relationship, boolean from, String newId)
Connects the current object to/from the id specified using the relationship type provided. Deprecated. AEF 9.5.1.0, use setRelatedObject |
public static void | setSavePoint(Context context, String savePoint)
Updates an existing database transaction with a database save point. Deprecated. AEF 9.5.1.0, use ContextUtil.setSavePoint |
public int | setState(Context context, String stateName)
Set the state of the object to the given state. |
public void | setVault(Context context, String vault)
Change the business object vault for this object. |
public boolean | startTransaction(Context context, boolean update)
Starts a database transaction. Deprecated. AEF 9.5.1.0, use ContextUtil.startTransaction |
public List | validateSelectedAttributes(Context context, List currentAttributeList, String attributeToSaveName, String typeName)
Returns a StringList of valid attributes. |
public StringList | validateSelectedAttributes(Context context, StringList currentAttributeList, String attributeToSaveName, String typeName)
Returns a StringList of valid attributes. |
Field Detail |
protected static boolean _debugtrue if debugging info should be sent to System.out.
public static final String ATTRIBUTE_PRIMARY_IMAGE
public static final boolean CHECK_HIDDEN
public static short FILTER_ITEM
public static short FILTER_STR_AND_ITEM
public static short FILTER_STRUCTURE
public static final String FORMAT_MX_IMAGE
public static final String FORMAT_MX_LARGE_IMAGE
public static final String FORMAT_MX_MEDIUM_IMAGE
public static final String FORMAT_MX_SMALL_IMAGE
public static final String FORMAT_MX_THUMBNAIL_IMAGE
public String[] LICENSE_RESERVED_APPS
public static final boolean LIST
public static final short PAGE_SIZE
public static final String POLICY_IMAGE_HOLDER
public static final boolean PREVENT_DUPLICATES
public static final String PROPERTY_DEBUG
public static final String PROPERTY_SERVER_HOST
public static final String PROPERTY_SERVER_NAME
public static final String RELATIONSHIP_IMAGE_HOLDER
public static final String SELECT_IMAGE_FILE_NAMES
public static final String SELECT_IMAGE_FORMAT_NAMES
public static final String SELECT_IMAGE_HOLDER_FILE_NAMES
public static final String SELECT_IMAGE_HOLDER_FORMAT_NAMES
public static final String SELECT_IMAGE_HOLDER_ID
public static final String SELECT_IMAGE_HOLDER_MX_IMAGE_FILE_NAMES
public static final String SELECT_IMAGE_HOLDER_MX_LARGE_IMAGE_FILE_NAMES
public static final String SELECT_IMAGE_HOLDER_MX_MEDIUM_IMAGE_FILE_NAMES
public static final String SELECT_IMAGE_HOLDER_MX_SMALL_IMAGE_FILE_NAMES
public static final String SELECT_IMAGE_HOLDER_MX_THUMBNAIL_IMAGE_FILE_NAMES
public static final String SELECT_IMAGE_HOLDER_PRIMARY_IMAGE_NAME
public static final String SELECT_IMAGE_ID
public static final String SELECT_IMAGE_PRIMARY_IMAGE_NAME
public static final String SELECT_MX_IMAGE_FILE_NAMES
public static final String SELECT_MX_LARGE_IMAGE_FILE_NAMES
public static final String SELECT_MX_SMALL_IMAGE_FILE_NAMES
public static final String SELECT_MX_THUMBNAIL_IMAGE_FILE_NAMES
public static final String SELECT_PRIMARY_IMAGE
public static final String SELECT_PRIMARY_IMAGE_ID
public static final String TYPE_IMAGE_HOLDER
Constructor Detail |
DomainObject()Construct a new DomainObject.
DomainObject(String objectId)Construct a new DomainObject.
objectId
DomainObject(DecoratedOid objectId)Construct a new DomainObject.
objectId
DomainObject(BusinessObject object)Construct a new DomainObject.
object
Method Detail |
public static void abortSavePoint(Context context, String savePoint)Aborts a database transaction to a save point.
Deprecated. AEF 9.5.1.0, use ContextUtil.abortSavePoint
context
Context
objectsavePoint
public void abortTransaction(Context context)Abort an existing database transaction.
Deprecated. AEF 9.5.1.0, use ContextUtil.abortTransaction
context
Context
objectpublic DomainRelationship addFromObject(Context context, RelationshipType relationshipType, String fromObjectId)Connects this object from the given object.
context
Context
objectrelationshipType
fromObjectId
public Map addFromObjects(Context context, RelationshipType relationshipType, String[] fromObjectIds)Connects this object from the given objects.
context
Context
objectrelationshipType
fromObjectIds
public DomainRelationship addFromObjects(Context context, String relationshipType, DomainObject fromBO)Connects this object from the given object.
Deprecated. use addFromObject
context
Context
objectrelationshipType
fromBO
public DomainRelationship addRelatedObject(Context context, RelationshipType relationshipType, boolean isFrom, String relatedObjectId)Connects two business object instances.
context
Context
objectrelationshipType
isFrom
relatedObjectId
public Map addRelatedObjects(Context context, RelationshipType relationshipType, boolean isFrom, String[] relatedObjectIds)Connects this object with the given objects.
context
Context
objectrelationshipType
isFrom
relatedObjectIds
public DomainRelationship addRelatedObjects(Context context, String relationshipType, DomainObject bo, boolean isFrom)Connects a business object instance linked to a parent.
Deprecated. use addRelatedObject
context
Context
objectrelationshipType
bo
isFrom
public DomainRelationship addToObject(Context context, RelationshipType relationshipType, String toObjectId)Connects this object to the given object.
context
Context
objectrelationshipType
toObjectId
protected Map addToObjects(Context context, RelationshipType relationshipType, String[] toObjectIds)Connects this object to the given object.
context
Context
objectrelationshipType
toObjectIds
public DomainRelationship addToObjects(Context context, String relationshipType, DomainObject toBO)Connects this object to the given object.
Deprecated. use addToObject
context
Context
objectrelationshipType
toBO
protected void backupFile(Context context, DomainObject toObject, String store)Copies the current document checked in file to the version document
context
Context
objecttoObject
store
public void changeOwner(Context context, String owner)Change the business object owner for this object. This must be a valid Matrix User.
Deprecated. AEF 9.5.1.0, use setOwner
context
Context
objectowner
public void changePolicy(Context context, String policy)Change the business object policy for this object. This must be a valid policy in Matrix, that can govern the type of this object.
Deprecated. AEF 9.5.1.0, use setPolicy
context
Context
objectpolicy
public void changeVault(Context context, String vault)Change the business object vault for this object. This must be a valid vault in Matrix.
Deprecated. AEF 9.5.1.0, use setVault
context
Context
objectvault
public void checkinFromServer(Context context, boolean unlock, boolean append, String format, StringList fileList)Checkin a files of the given format from server this method will checkin document into the Company specific store To checkin in policy defined store call another checkinFromServer method with store parameter as null
context
Context
objectunlock
append
format
fileList
StringList
object that holds the list of files to checkinpublic void checkinFromServer(Context context, boolean unlock, boolean append, String format, String store, StringList fileList)Checkin a file of the given format from server This method checkin document into given store if store is null it is going to use policy default store for checkin file.
context
Context
objectunlock
append
format
store
fileList
StringList
object that holds the list of files to checkinpublic void clear()Clear the bean object information as well as anything that has been cached. This is only necessary and recommended when switching to a different id while using the same bean instance.
public BusinessObject cloneObject(Context context, String name)Clone an object in the database.
context
Context
objectname
public BusinessObject cloneObject(Context context, String name, String revision, String vault)Clone an object in the database.
context
Context
objectname
revision
vault
public BusinessObject cloneObject(Context context, String name, String revision, String vault, boolean copyFiles)Clone an object in the database.
context
Context
objectname
revision
vault
copyFiles
public BusinessObject cloneObject(Context context, String name, String revision, String vault, boolean copyFiles, boolean useAutoNamer)Clone an object in the database.
context
Context
objectname
revision
vault
copyFiles
useAutoNamer
public DomainObject cloneWithFileMove(Context context, String type, String name, String revision, String policy, String vault, String store, Map attributesMap)Clone and move file(s) from the current object(parent) to the new created object given information passed in.
context
Context
objecttype
name
revision
policy
vault
store
attributesMap
DomainObject
to which files are cloned and movedpublic void closeObject(Context context, boolean close)Close the object if the close parameter is true. Use this method is used in conjunction with
openObject
. This method
is used as a wrapper so that we can change the functionality when
objects don't need to be opened and closed any more.
boolean closeBO = openObject(context); try { .... } finally { closeObject(context, closeBO); }
context
Context
objectclose
public void commitTransaction(Context context)Commit and complete an existing database transaction.
Deprecated. AEF 9.5.1.0, use ContextUtil.commitTransaction
context
Context
objectpublic void confirmDelete(Context context, boolean force, BusinessObjectList objects)Get a list of objects to be deleted.
Deprecated. AEF 9.5.1.0, use delete trigger
context
Context
object.force
objects
public DomainRelationship connect(Context context, String relationshipType, DomainObject bo, boolean isFrom)Connects a business object instance linked to a parent.
Deprecated. AEF 9.5.1.0, use addRelatedObjects
context
Context
objectrelationshipType
bo
isFrom
public DomainRelationship connectFrom(Context context, String relationshipType, DomainObject fromBO)Connects this object from the given object.
Deprecated. AEF 9.5.1.0, use addFromObjects
context
Context
objectrelationshipType
fromBO
public DomainRelationship connectTo(Context context, String relationshipType, DomainObject toBO)Connects this object to the given object.
Deprecated. AEF 9.5.1.0, use addToObjects
context
Context
objectrelationshipType
toBO
public DomainRelationship createAndConnect(Context context, String type, String relationshipType, DomainObject parentBO, boolean isFrom)Creates an business object instance linked to a parent.
context
Context
objecttype
relationshipType
parentBO
isFrom
public DomainRelationship createAndConnect(Context context, String type, String name, String relationshipType, DomainObject parentBO, boolean isFrom)Creates an business object instance linked to a parent.
context
Context
objecttype
name
relationshipType
parentBO
isFrom
public DomainRelationship createAndConnect(Context context, String type, String name, String revision, String policy, String vault, String relationshipType, DomainObject connectedBO, boolean isFrom)Creates an business object instance linked to a parent.
context
Context
objecttype
name
revision
policy
vault
relationshipType
connectedBO
isFrom
public void createObject(Context context, String type, String name, String revision, String policy, String vault)Add an object to the database.
context
Context
objecttype
name
revision
policy
vault
public void createObject(Context context, String type, String name, String revision, String policy, String vault, Map requestMap)Add an object to the database.
context
Context
objecttype
name
revision
policy
vault
requestMap
public Map createRevision(Context context)Create a new revision of an object in the database based on it's last revision.
Deprecated. AEF 9.5.1.0, use Part.createRevision
context
Context
objectprotected void debug(String message)Send debug message to output stream.
Deprecated. AEF 9.5.1.0, use DebugUtil.debug
message
protected void debug(String message1, String message2)Send debug message to output stream.
Deprecated. AEF 9.5.1.0, use DebugUtil.debug
message1
message2
protected void debug(String message1, String message2, String message3)Send debug message to output stream.
Deprecated. use DebugUtil.debug
message1
message2
message3
public void delete(Context context)Delete the current object - permanently removed. Object should have no references
Deprecated. AEF 9.5.1.0, use deleteObject
context
Context
objectpublic void delete(Context context, boolean force)Delete the current object - permanently removed.
Deprecated. AEF 9.5.1.0, use deleteObject
context
Context
objectforce
public void deleteObject(Context context)Delete the current object - permanently removed. Object should have no references
context
Context
objectpublic void deleteObject(Context context, boolean force)Delete the current object - permanently removed.
context
Context
objectforce
public static void deleteObjects(Context context, String[] objectIds)Deletes the objects specified by the ids.
context
Context
objectobjectIds
public void editBasicInfo(Context context, Map map)Edit the basic info for an object. Description All attributes
Deprecated. AEF 9.5.1.0
context
Context
objectmap
Map
of the attribute values and description to change.public MapList expandSelect(Context context, String relationshipPattern, String typePattern, StringList objectSelects, StringList relationshipSelects, boolean getTo, boolean getFrom, short recurseToLevel, String objectWhere, String relationshipWhere, MapList cachedList, boolean useCache)Do an expand and select on a BusinessObject.
Deprecated. as of AEF 9.5.1.0, use getRelatedObjects.
context
Context
objectrelationshipPattern
typePattern
objectSelects
StringList
object that holds the list of select statement pertaining to Business Obejcts.relationshipSelects
StringList
object that holds the list of select statement pertaining to Relationships.getTo
getFrom
recurseToLevel
objectWhere
relationshipWhere
cachedList
MapList
object that holds the list to return if useCache is trueuseCache
public MapList expandSelect(Context context, String relationshipPattern, String typePattern, StringList objectSelects, StringList relationshipSelects, boolean getTo, boolean getFrom, short recurseToLevel, String objectWhere, String relationshipWhere, MapList cachedList, boolean useCache, String relKeyPrefix)Do an expand and select on a BusinessObject.
Deprecated. AEF 9.5.1.0 - shouldn't be needed since relationship
selects are appended with ".value" to keep them different.
Still used by ECR, Part Definition, and Drawing Print.
context
Context
objectrelationshipPattern
typePattern
objectSelects
StringList
object that holds the list of select statement pertaining to
Business Obejcts.relationshipSelects
StringList
object that holds the list of select statement pertaining to
Relationships.getTo
getFrom
recurseToLevel
objectWhere
relationshipWhere
cachedList
MapList
object that holds the list to return if useCache is trueuseCache
relKeyPrefix
public MapList expandSelect(Context context, String relationshipPattern, String typePattern, StringList objectSelects, StringList relationshipSelects, boolean getTo, boolean getFrom, short recurseToLevel, String objectWhere, String relationshipWhere, Pattern includeType, Pattern includeRelationship, Map includeMap, MapList cachedList, boolean useCache)Do an expand and select on a BusinessObject.
Deprecated. AEF 9.5.1.0, use getRelatedObjects
context
Context
objectrelationshipPattern
StringList
object that holds the list of pattern to match relationshipstypePattern
objectSelects
StringList
object that holds the list of select statement pertaining to Business Obejcts.relationshipSelects
getTo
getFrom
recurseToLevel
objectWhere
relationshipWhere
includeType
includeRelationship
includeMap
cachedList
MapList
object that holds the list to return if useCache is trueuseCache
public static MapList findObjects(Context context, String typePattern, String vaultPattern, String whereExpression, StringList objectSelects)Queries on the given criteria into a map list containing a mapping of selectable names to values.
context
Context
objecttypePattern
vaultPattern
whereExpression
objectSelects
StringList
object that holds the list of query select clause.public static MapList findObjects(Context context, String typePattern, String namePattern, String revPattern, String ownerPattern, String vaultPattern, String whereExpression, boolean expandType, StringList objectSelects)Queries on the given criteria into a map list containing a mapping of selectable names to values.
context
Context
objecttypePattern
namePattern
revPattern
ownerPattern
vaultPattern
whereExpression
expandType
objectSelects
StringList
object that holds the list of query select clause.public static MapList findObjects(Context context, String typePattern, String namePattern, String revPattern, String ownerPattern, String vaultPattern, String whereExpression, String queryName, boolean expandType, StringList objectSelects, short objectLimit)Queries on the given criteria into a map list containing a mapping of selectable names to values.
context
Context
objecttypePattern
namePattern
revPattern
ownerPattern
vaultPattern
whereExpression
queryName
expandType
objectSelects
StringList
object that holds the list of query select clausesobjectLimit
public static MapList findObjects(Context context, String typePattern, String namePattern, String revPattern, String ownerPattern, String vaultPattern, String whereExpression, String queryName, boolean expandType, StringList objectSelects, short objectLimit, String searchFormat, String searchText)Queries on the given criteria into a map list containing a mapping of selectable names to values.
Deprecated. AEF V6R2012
context
Context
objecttypePattern
namePattern
revPattern
ownerPattern
vaultPattern
whereExpression
queryName
expandType
objectSelects
StringList
object that holds the list query select clausesobjectLimit
searchFormat
searchText
public static MapList findObjects(Context context, String typePattern, String namePattern, String revPattern, String ownerPattern, String vaultPattern, String whereExpression, String queryName, boolean expandType, StringList objectSelects, short objectLimit, String searchFormat, String searchText, Collection multiValueList)Queries on the given criteria into a map list containing a mapping of selectable names to values.
context
Context
objecttypePattern
namePattern
revPattern
ownerPattern
vaultPattern
whereExpression
queryName
expandType
objectSelects
StringList
object that holds the list query select clausesobjectLimit
searchFormat
searchText
public static String getAliasForName(Context context, String name, boolean useCache)Get the schema alias for the given schema name.
Deprecated. AEF 9.5.1.0, use FrameworkUtil.getAliasForAdmin
context
Context
objectname
useCache
public MapList getAllFiles(Context context)Get a list of Files in a MapList. Map format key value "format" file format "1" first file name "2" second file name : :
context
public MapList getAllFormatFiles(Context context)Get a list of Files in a MapList. Map format key value "format" format "filename" file name
context
public MapList getApprovalsInfo(Context context)Get the approvals info for an object along with select data
Deprecated. AEF 9.5.1.0, use Route.getApprovalsInfo
context
Context
objectpublic Attribute getAttribute(Context context, String attributeName)Get an
Attribute
for the attribute with the
passed attributeName
.
Deprecated. AEF 9.5.1.0, use getInfo (hidden attrs do not appear)
context
Context
objectattributeName
Attribute
with the passed namepublic Map getAttributeDetails(Context context)Returns all the business object attribute details in a Map of Maps.
context
Context
objectpublic Map getAttributeMap(Context context)Returns all the business object attribute values in a form of a map of attribute name and attribute value.
context
Context
objectpublic Map getAttributeMap(Context context, boolean getHidden)Returns all the business object attribute values in a form of a map of attribute name and attribute value.
context
Context
objectgetHidden
protected StringList getAttributeNames(Context context)Get the attribute names for this business object.
context
Context
objectpublic static String getAttributeSelect(String attribute)Defines the proper way to define attribute selectables for print and expand.
attribute
public String getAttributeValue(Context context, String attributeName)Get the attribute value for the attribute with the passed
attributeName
.
context
Context
objectattributeName
public static String getAutoGeneratedName(Context context, String sObjectGeneratorName, String sObjectGeneratorRevision)Generate a name based on Object Generator's name and revision
context
Context
objectsObjectGeneratorName
sObjectGeneratorRevision
public MapList getBasicInfo(Context context)Get the basic info for an object. Type, Name, Revision - for use in printer friendly page. Owner, Description All attributes
Deprecated. AEF 9.5.1.0, see Ray
context
Context
objectpublic Hashtable getBusinessObjectData(Context context, StringList busSelects)Gets the businessobject selectable data
context
Context
objectbusSelects
public SelectList getBusSelectList(int size)Return the SelectList object for this instance. These objects may need to be used across multiple functions; this allows reuse
Deprecated. AEF 9.5.1.0, use getObjectSelectList
size
protected Object getCachedData(Object key)Get the selected cached data.
Deprecated. AEF 9.5.1.0, caching being removed
key
public State getCurrentState(Context context)Return the current state for this object.
Deprecated. AEF 9.5.1.0, use getInfo
context
Context
objectpublic DecoratedOid getDecoratedOid(Context context)Returns the DecoratedOid for this DomainObject
context
Context
objectprotected String getDefaultName(Context context)Get the default name for new objects.
context
Context
objectpublic String getDefaultPolicy(Context context, String type)Get the default policy for new objects.
context
Context
objecttype
public String getDefaultRevision(Context context, String policyName)Return the default revision for new objects.
context
Context
objectpolicyName
public String getDefaultVault(Context context, BusinessObject bo)Get the default vault for new objects. If a business object is given, the default vault is the same vault as the business object. Otherwise, the default vault is the default of the current user.
context
Context
objectbo
protected BusinessObject getFirstRevision(Context context)Get the first revision for this object.
context
Context
objectpublic String getId()Get the business object id for this object.
Deprecated. use overloaded getId(Context) method
public String getId(Context context)Get the business object id for this object.
public Image getImageObject(Context context)
public String getInfo(Context context, String select)Get information regarding this business object.
context
Context
objectselect
public static MapList getInfo(Context context, String[] objectIds, StringList objectSelects)Get information regarding many business objects.
context
Context
objectobjectIds
objectSelects
StringList
object that holds the optional list of selectables - can be nullpublic Map getInfo(Context context, StringList objectSelects)Get information regarding this business object.
context
Context
objectobjectSelects
StringList
object that holds the list of object selectablesprotected Map getInfo(Context context, StringList objectSelects, Collection multiValueList)Get information regarding this business object.
context
Context
objectobjectSelects
StringList
object that holds the optional list of selectables - can be null.multiValueList
public StringList getInfoList(Context context, String select)Get information regarding this business object.
context
Context
objectselect
public BusinessObject getLastRevision(Context context)Get the last revision for this object.
context
Context
objectpublic String[] getLicenseReservedAPPS()
public String getName(Context context)Return the name for this object.
Deprecated. AEF 9.5.1.0, use getInfo
context
Context
objectpublic static DomainObject getObject(Context context, BusinessObject bo)Returns a fully contstructed DomainObject derivative given the Object ID. The method lookups up and constructs the appropriate bean given the type.
Deprecated. AEF 9.5.1.0, use newInstance
context
Context
objectbo
public static DomainObject getObject(Context context, DecoratedOid oid)Returns a fully contstructed DomainObject derivative given the DecoaretdObject ID. The method lookups up and constructs the appropriate bean given the type. This is the prefered flavor of the methods since it avoids the lookup of the type in the DataBase.
Deprecated. AEF 9.5.1.0, use newInstance
context
Context
objectoid
public static DomainObject getObject(Context context, String oid)Returns a fully contstructed DomainObject derivative given the Object ID. The method lookups up and constructs the appropriate bean given the type.
Deprecated. AEF 9.5.1.0, use newInstance
context
Context
objectoid
public MapList getObjects(Context context, String relPattern, String typePattern, boolean getTo, boolean getFrom, int recursionLevel, StringList objectSelects, StringList relationshipSelects, String busWhereClause, String relWhereClause, String postRelPattern, String postTypePattern, Map postPatterns, MapList cacheList, boolean useCache)Expand business objects based on App Lib Expand function.
Deprecated. AEF 9.5.1.0, use getRelatedObjects
context
Context
objectrelPattern
typePattern
getTo
getFrom
recursionLevel
objectSelects
StringList
object that holds the list of expand select clause - may be null or empty.relationshipSelects
StringList
object that holds the list of expand select clause - may be null or empty.busWhereClause
relWhereClause
postRelPattern
postTypePattern
postPatterns
cacheList
MapList
object that holds the list of private class cache list variable.useCache
public SelectList getObjectSelectList(int size)Return the SelectList object for this instance. These objects may need to be used across multiple functions; this allows reuse
size
protected MapList getParentInfo(Context context, int level, StringList objectSelects, String relationship)Get the parent for this business object.
Deprecated. AEF 9.5.1.0, use getRelatedObjects
context
Context
objectlevel
objectSelects
StringList
object that holds the optional list of selectables - can be nullrelationship
public MapList getPolicies(Context context)Get the policies for this object.
Deprecated. AEF 9.5.1.0 use TypeUtils.getPolicies
context
Context
objectpublic BusinessObject getPreviousRevision(Context context)Get the Previous revision for this object.
context
Context
objectpublic Map getRelatedObject(Context context, String relationship, boolean from, StringList busSelects, StringList relSelects)Retrieves information by traversing one level on a given reationship. The name getRelationship implies only object would exist at most.
context
Context
objectrelationship
from
busSelects
StringList
object that holds the list of selectables to retrieve;
only one object at most is expected (cardinality one).relSelects
StringList
object that holds the list of selectables to retrieve;public MapList getRelatedObjects(Context context, String relationshipPattern, String typePattern, boolean getTo, boolean getFrom, int recurseToLevel, StringList objectSelects, StringList relationshipSelects, String objectWhereClause, String relationshipWhereClause, int limit, String postRelPattern, String postTypePattern, Map postPatterns)Expand business objects based on App Lib Expand function.
context
Context
objectrelPattern
typePattern
getTo
getFrom
recursionLevel
objectSelects
StringList
object that holds the list of expand select clause - may be null or empty.relationshipSelects
StringList
object that holds the list of expand select clause -
may be null or empty.busWhereClause
relWhereClause
limit
postRelPattern
postTypePattern
postPatterns
public MapList getRelatedObjects(Context context, String relationshipPattern, String typePattern, boolean getTo, boolean getFrom, int recurseToLevel, StringList objectSelects, StringList relationshipSelects, String objectWhereClause, String relationshipWhereClause, String postRelPattern, String postTypePattern, Map postPatterns)Expand business objects based on App Lib Expand function.
Deprecated. Use getRelatedObjects with limit
context
Context
objectrelPattern
typePattern
getTo
getFrom
recursionLevel
objectSelects
StringList
object that holds the list of expand select clause - may be null or empty.relationshipSelects
StringList
object that holds the list of expand select clause -
may be null or empty.busWhereClause
relWhereClause
postRelPattern
postTypePattern
postPatterns
public MapList getRelatedObjects(Context context, String relationshipPattern, String typePattern, StringList objectSelects, StringList relationshipSelects, boolean getTo, boolean getFrom, short recurseToLevel, String objectWhere, String relationshipWhere)Do an expand and select on a BusinessObject.
Deprecated. Use getRelatedObjects with limit
context
Context
objectrelationshipPattern
typePattern
objectSelects
StringList
object that holds the list of select statement pertaining to Business Obejcts.relationshipSelects
StringList
object that holds the list of select statement pertaining to Relationships.getTo
getFrom
recurseToLevel
objectWhere
relationshipWhere
public MapList getRelatedObjects(Context context, String relationshipPattern, String typePattern, StringList objectSelects, StringList relationshipSelects, boolean getTo, boolean getFrom, short recurseToLevel, String objectWhere, String relationshipWhere, int limit)Do an expand and select on a BusinessObject.
context
Context
objectrelationshipPattern
typePattern
objectSelects
StringList
object that holds the list of select statement pertaining to Business Obejcts.relationshipSelects
StringList
object that holds the list of select statement pertaining to Relationships.getTo
getFrom
recurseToLevel
objectWhere
relationshipWhere
limit
public MapList getRelatedObjects(Context context, String relationshipPattern, String typePattern, StringList objectSelects, StringList relationshipSelects, boolean getTo, boolean getFrom, short recurseToLevel, String objectWhere, String relationshipWhere, int limit, Pattern includeType, Pattern includeRelationship, Map includeMap)Do an expand and select on a BusinessObject.
context
Context
objectrelationshipPattern
typePattern
objectSelects
StringList
object that holds the list of select statement pertaining to Business Obejcts.relationshipSelects
StringList
object that holds the list of select statement pertaining to Relationships.getTo
getFrom
recurseToLevel
objectWhere
relationshipWhere
limit
includeType
includeRelationship
includeMap
public MapList getRelatedObjects(Context context, String relationshipPattern, String typePattern, StringList objectSelects, StringList relationshipSelects, boolean getTo, boolean getFrom, short recurseToLevel, String objectWhere, String relationshipWhere, Pattern includeType, Pattern includeRelationship, Map includeMap)Do an expand and select on a BusinessObject.
Deprecated. Use getRelatedObjects with limit
context
Context
objectrelationshipPattern
typePattern
objectSelects
StringList
object that holds the list of select statement pertaining to Business Obejcts.relationshipSelects
StringList
object that holds the list of select statement pertaining to Relationships.getTo
getFrom
recurseToLevel
objectWhere
relationshipWhere
includeType
includeRelationship
includeMap
public MapList getRelatedObjects(Context context, String relationshipPattern, String typePattern, StringList objectSelects, StringList relationshipSelects, boolean getTo, boolean getFrom, short recurseToLevel, String objectWhereClause, String relationshipWhereClause, short limit, boolean checkHidden, boolean preventDuplicates, short pageSize, Pattern includeType, Pattern includeRelationship, Map includeMap, String relKeyPrefix)
context
relationshipPattern
typePattern
objectSelects
relationshipSelects
getTo
getFrom
recurseToLevel
objectWhereClause
relationshipWhereClause
limit
checkHidden
preventDuplicates
pageSize
includeType
includeRelationship
includeMap
relKeyPrefix
public MapList getRelatedObjects(Context context, String relationshipPattern, String typePattern, StringList objectSelects, StringList relationshipSelects, boolean getTo, boolean getFrom, short recurseToLevel, String objectWhereClause, String relationshipWhereClause, short limit, boolean checkHidden, boolean preventDuplicates, short pageSize, Pattern includeType, Pattern includeRelationship, Map includeMap, String relKeyPrefix, String filterExpression)Do an expand and select on a BusinessObject.
context
Context
objectrelationshipPattern
typePattern
objectSelects
StringList
object that holds the list of select statement pertaining to Business Obejcts.relationshipSelects
StringList
object that holds the list of select statement pertaining to Relationships.getTo
getFrom
recurseToLevel
objectWhere
relationshipWhere
limit
checkHidden
preventDuplicates
pageSize
includeType
includeRelationship
includeMap
relKeyPrefix
filterExpression
public MapList getRelatedObjects(Context context, String relationshipPattern, String typePattern, StringList objectSelects, StringList relationshipSelects, boolean getTo, boolean getFrom, short recurseToLevel, String objectWhereClause, String relationshipWhereClause, short limit, boolean checkHidden, boolean preventDuplicates, short pageSize, Pattern includeType, Pattern includeRelationship, Map includeMap, String relKeyPrefix, String filterExpression, short filterFlag)Do an expand and select on a BusinessObject.
context
Context
objectrelationshipPattern
typePattern
objectSelects
StringList
object that holds the list of select statement pertaining to Business Obejcts.relationshipSelects
StringList
object that holds the list of select statement pertaining to Relationships.getTo
getFrom
recurseToLevel
objectWhere
relationshipWhere
limit
checkHidden
preventDuplicates
pageSize
includeType
includeRelationship
includeMap
relKeyPrefix
filterExpression
filterflag
protected Map getRelationship(Context context, String relationship, boolean from, StringList busSelects, StringList relSelects)Retrieves information by traversing one level on a given reationship. The name getRelationship implies only object would exist at most.
Deprecated. AEF 9.5.1.0, use getRelatedObject
context
Context
objectrelationship
from
busSelects
StringList
object that holds the list of selectables to retrieve;
only one object at most is expected (cardinality one).relSelects
StringList
object that holds the list of selectables to retrieve;public SelectList getRelationshipSelectList(int size)Return the relationship SelectList object for this instance. These objects may need to be used across multiple functions. This allows reuse.
size
public String getRevision(Context context)Get the business object revision for this object.
Deprecated. AEF 9.5.1.0, use getInfo
context
Context
objectpublic MapList getRevisions(Context context, StringList objectSelects, boolean useCache)Get selectables from each revision of this object. The given selectables are extracted from each revision of this business object and returned as a
MapList
.
Deprecated. AEF 9.5.1.0, use getRevisionsInfo
context
Context
objectobjectSelects
StringList
object that holds the list of selectables for each revision - may be nulluseCache
public MapList getRevisionsInfo(Context context, StringList singleValueSelects, StringList multiValueSelects)Get the revisions for an object along with select data
context
Context
objectsingleValueSelects
StringList
object that holds the list of selects that return a single value, for example ownermultiValueSelects
StringList
object that holds the list of selects that return multiple values, for example revisions[]public Map getRouteInfoForStates(Context context, String sAdHoc)Get map of State/Route info
Deprecated. AEF 9.5.1.0, use Route.getRouteInfoForStates
context
Context
objectsAdHoc
public String getSchemaProperty(Context context, String type, String name, String property)Get the schema property of an administrative object. The property must be on the admin object.
Deprecated. AEF 9.5.1.0, use PropertyUtil.getSchemaProperty
context
Context
objecttype
name
property
public static String getSchemaProperty(String property)Get the AEF schema property reference through this property, actual schema names are returned.
Deprecated. AEF 9.5.1.0, use PropertyUtil.getSchemaProperty
property
protected static String getSchemaProperty(String type, String name, String property)Get the schema property of an administrative object. The property must be on the admin object.
Deprecated. AEF 9.5.1.0, use PropertyUtil.getSchemaProperty
type
name
property
public String getShortUniqueName()Generate a unique name for an object. Many application objects allow their names to be auto generated. This method is typically called from object
create
methods. The name is generated
using a prefix plus the number of milliseconds since 1/1/1970.
public String getShortUniqueName(String prefix)Generate a unique name for an object. Many application objects allow their names to be auto generated. This method is typically called from object
create
methods. The name is generated
using a prefix plus the number of milliseconds since 1/1/1970.
prefix
public MapList getSignaturesDetails(Context context, State fromState, State toState)Get the Signatures details info for an object between the states
context
Context
objectfromState
toState
public MapList getSignaturesDetails(Context context, String fromState, String toState)Get the Signatures details info for an object between the states
context
Context
objectfromState
toState
protected State getState(Context context, String name)Get the named state for this object.
Deprecated. AEF 9.5.1.0, use getInfo
context
Context
objectname
public String getType(Context context)Return the business object type for this object.
Deprecated. AEF 9.5.1.0, use getInfo
context
Context
objectprotected static StringList getTypeAttributeNames(Context context, String typeName)Get the attribute names for the specified type.
context
Context
objecttypeName
protected static MapList getTypeAttributes(Context context, String type)Get the business type attributes - type specific attributes. This function returns extra attribute information that describes each attribute in terms of: name, type, multiline, default, and range
context
Context
objecttype
public String getUniqueName()Generate a unique name for an object. Many application objects allow their names to be auto generated. This method is typically called from object
create
methods. The name is generated
using a prefix plus the number of milliseconds since 1/1/1970.
Deprecated. since V6R2011 - Always use this method with Context
public String getUniqueName(Context context)Generate a unique name for an object. Many application objects allow their names to be auto generated. This method is typically called from object
create
methods. The name is generated
using a prefix plus the number of milliseconds since 1/1/1970.
public String getUniqueName(String prefix)Generate a unique name for an object. Many application objects allow their names to be auto generated. This method is typically called from object
create
methods. The name is generated
using a prefix plus the number of milliseconds since 1/1/1970.
prefix
public synchronized String getUniqueName(String prefix, int noOfDigits)Generate a unique name for an object. Many application objects allow their names to be auto generated. This method is typically called from object
create
methods. The name is generated
using a prefix plus the number of milliseconds since 1/1/1970.
prefix
noOfDigits
public void gotoState(Context context, String stateName)Set the state of the object to the given state. Promote or demote the object until the request state is obtained.
Deprecated. AEF 9.5.1.0, use setState
context
Context
objectstateName
protected boolean hasObjects(Context context, String relationshipType, boolean from)Checks whether the current object has relationships of a certain type.
Deprecated. AEF 9.5.1.0, use hasRelatedObjects
context
Context
objectrelationshipType
from
public boolean hasRelatedObjects(Context context, String relationshipType, boolean from)Checks whether the current object has relationships of a certain type.
context
Context
objectrelationshipType
from
public boolean isKindOf(Context context, String type)Returns true if this object's type inherits from the type passed in.
context
Context
objecttype
public boolean isLastRevision(Context context)Check to see if this is the last revision of the object.
context
Context
objectpublic static String mqlCommand(Context context, MQLCommand mql, String command)Executes an mql command.
Deprecated. AEF 9.5.1.0, use MqlUtil.mqlCommand
context
Context
objectmql
command
protected static String mqlCommand(Context context, MQLCommand mql, String command, boolean runAsSuperUser)Executes an mql command.
Deprecated. AEF 9.5.1.0, use MqlUtil.mqlCommand
context
Context
objectmql
command
runAsSuperUser
protected String mqlCommand(Context context, String command)Executes an mql command.
Deprecated. AEF 9.5.1.0, use MqlUtil.mqlCommand
context
Context
objectcommand
protected String mqlCommand(Context context, String command, boolean runAsSuperUser)Executes an mql command.
Deprecated. AEF 9.5.1.0, use MqlUtil.mqlCommand
context
Context
objectcommand
runAsSuperUser
public static boolean multiLevelRecursionCheck(Context context, String fromObjectId, String toObjectId, String relType, boolean includeRevisionsCheck)
public static DomainObject newInstance(Context context)Returns DomainObject given context this is prefered method to call instead of newing up DomainObject
context
Context
objectpublic static DomainObject newInstance(Context context, BusinessObject bo)Returns a fully contstructed DomainObject derivative given the BusinessObject. The method lookups up and constructs the appropriate bean given the BusinessObject.
context
Context
objectbo
public static DomainObject newInstance(Context context, BusinessObject bo, String applicationName)Returns a fully contstructed DomainObject derivative given the BusinessObject. The method lookups up and constructs the appropriate bean given the BusinessObject.
context
Context
objectbo
applicationName,
public static DomainObject newInstance(Context context, DecoratedOid oid)Returns a fully contstructed DomainObject derivative given the DecoaretdObject ID. The method lookups up and constructs the appropriate bean given the object type. This is the prefered flavor of the methods since it avoids the lookup of the type in the DataBase.
context
Context
objectoid
public static DomainObject newInstance(Context context, DecoratedOid oid, String applicationName)Returns a fully contstructed DomainObject derivative given the DecoaretdObject ID. The method lookups up and constructs the appropriate bean given the object type. This is the prefered flavor of the methods since it avoids the lookup of the type in the DataBase.
context
Context
objectoid
applicationName,
public static DomainObject newInstance(Context context, String idORtype)Returns a fully contstructed DomainObject derivative given the object ID or object Type. The method lookups up and constructs the appropriate bean given the object ID or object Type.
context
Context
objectidORtype
public static DomainObject newInstance(Context context, String idORtype, String applicationName)Returns a fully contstructed DomainObject derivative given the object ID or object Type. The method lookups up and constructs the appropriate bean given the object ID or object Type.
context
Context
objectidORtype
applicationName,
public static DomainObject newInstance(Context context, String idORtype, String applicationName, String interfaceName)Returns a fully contstructed DomainObject derivative given the object ID or object Type/interface. The method lookups up and constructs the appropriate bean given the object ID or object Type.
context
Context
objectidORtype
applicationName,
interfaceName,
public boolean openObject(Context context)Assure the object is open. If the object is already open then return false. If the object is not open then open it and return true. This method is used as a wrapper so that we can change the functionality when objects don't need to be opened and closed anymore.
boolean closeBO = openObject(context); try { .... } finally { closeObject(context, closeBO); }
context
Context
objectprotected static void popContext(Context context)Restore the original context, can only be called after the call to a corresponding push.
Deprecated. AEF 9.5.1.0, use ContextUtil.popContext
context
Context
objectprotected static void pushContext(Context context)Get the super user context. The context must be poped to go back to the original context.
Deprecated. AEF 9.5.1.0, use ContextUtil.pushContext
context
Context
objectprotected static void pushContext(Context context, String name, String password, String vault)Get the super user context. Package protected to prevent missues by non inherrited classes. The context must be poped to go back to the original context.
Deprecated. AEF 9.5.1.0, use ContextUtil.pushContext
context
Context
objectname
password
vault
public static MapList querySelect(Context context, String typePattern, String vaultPattern, String whereExpression, StringList objectSelects, MapList cachedList, boolean useCache)Queries on the given criteria into a map list containing a mapping of selectable names to values.
Deprecated. AEF 9.5.1.0, use findObjects
context
Context
objecttypePattern
vaultPattern
whereExpression
objectSelects
StringList
object that holds the list query select clause.cachedList
MapList
object that holds the list to return if useCache is trueuseCache
public static MapList querySelect(Context context, String typePattern, String namePattern, String revPattern, String ownerPattern, String vaultPattern, String whereExpression, boolean expandType, StringList objectSelects, MapList cachedList, boolean useCache)Queries on the given criteria into a map list containing a mapping of selectable names to values.
Deprecated. AEF 9.5.1.0, use findObjects
context
Context
objecttypePattern
namePattern
revPattern
ownerPattern
vaultPattern
whereExpression
expandType
objectSelects
StringList
object that holds the list of query select clause.cachedList
MapList
object that holds the list to return if useCache is trueuseCache
public void resetAttributes(Context context)Reset all attribute values for this object. Set all attributes with its default value.
context
Context
objectpublic BusinessObject reviseObject(Context context, boolean copyFiles)Create a new revision of an object in the database based on it's last revision.
context
Context
objectcopyFiles
public BusinessObject reviseObject(Context context, String nextRev, boolean copyFiles)Create a new revision of an object in the database based on it's last revision.
context
Context
objectnextRev
copyFiles
public void revokeAccess(Context context, String grantor, String grantee)Revoke access rights for a grantor and grantee combination. If both grantee and grantor are specified, then only the grants from the grantor to the grantee are revoked. If only the grantor is specified, then all the grants from the grantor are revoked. If only the grantee is specified, then all the grants to the grantee are revoked. If neither is specified, then all grants are revoked.
context
Context
objectgrantor
grantee
public void setAttributeValue(Context context, String name, String value)Set an attribute value for this object. Set the attribute with the given
name
to the passed value
.
context
Context
objectname
value
public void setAttributeValues(Context context, Map map)Set the business object attributes for this object.
context
Context
objectmap
protected void setCachedData(Object key, Object value)Set the selected cached data.
Deprecated. AEF 9.5.1.0, caching is being removed.
key
value
public static void setDebug(boolean mode)Sets the debug mode for this bean.
Deprecated. use DebugUtil.setDebug
mode
public void setDescription(Context context, String description)Modifies the business object description for this object.
context
Context
objectdescription
public void setId(String id)Sets the id for this object.
id
public void setLicenseReservedAPPS(String[] lICENSE_RESERVED_APPS)
public void setName(Context context, String name)Set the business object name for this object.
context
Context
objectname
public void setOwner(Context context, String owner)Set the business object owner for this object. This must be a valid Matrix User.
context
Context
objectowner
public void setPolicy(Context context, String policy)Change the business object policy for this object. This must be a valid policy in Matrix, that can govern the type of this object.
context
Context
objectpolicy
public DomainRelationship setRelatedObject(Context context, String relationshipType, boolean isFrom, String newTargetId)Connects the current object to/from the id specified using the relationship type provided. If a relationship does not exist yet between the two objects, one is created if newId is not null. If one is already there, then the current target object is comapred to the newId and upated as needed. Use this function only if relationship can constantly change to another object.
context
Context
objectrelationshipType
isFrom
newTargetId
protected DomainRelationship setRelationship(Context context, String relationship, boolean from, String newId)Connects the current object to/from the id specified using the relationship type provided. If a relationship does not exist yet between the two objects, one is created. If one is already there, then the other end is comapred to the new id and upated as needed. If multiple connections exist, an exception is returned as this function assumes only one end of type id.
Deprecated. AEF 9.5.1.0, use setRelatedObject
context
Context
objectrelationship
from
newId
public static void setSavePoint(Context context, String savePoint)Updates an existing database transaction with a database save point.
Deprecated. AEF 9.5.1.0, use ContextUtil.setSavePoint
context
Context
objectsavePoint
public int setState(Context context, String stateName)Set the state of the object to the given state. Promote or demote the object until the request state is obtained.
context
Context
objectstateName
public void setVault(Context context, String vault)Change the business object vault for this object. This must be a valid vault in Matrix.
context
Context
objectvault
public boolean startTransaction(Context context, boolean update)Starts a database transaction.
Deprecated. AEF 9.5.1.0, use ContextUtil.startTransaction
context
Context
objectupdate
public List validateSelectedAttributes(Context context, List currentAttributeList, String attributeToSaveName, String typeName)Returns a StringList of valid attributes. An object can have an attribute that is a list of attributes. This function takes the Stringlist of attributes for the object, the name of the attribute and what Type it is. We then get the list of attributes that are now valid for the given Type passed in. We then check the Types list against the list passed in, creating a new list of attributes. If we find the list passed in differs from the new list we created, then we need to save the attribute using the new list we created. The list being returned will now be a list of attributes that are valid for the given Type.
context
Context
objectcurrentAttributeList
attributeToSaveName
typeName
public StringList validateSelectedAttributes(Context context, StringList currentAttributeList, String attributeToSaveName, String typeName)Returns a StringList of valid attributes. An object can have an attribute that is a list of attributes. This function takes the Stringlist of attributes for the object, the name of the attribute and what Type it is. We then get the list of attributes that are now valid for the given Type passed in. We then check the Types list against the list passed in, creating a new list of attributes. If we find the list passed in differs from the new list we created, then we need to save the attribute using the new list we created. The list being returned will now be a list of attributes that are valid for the given Type.
context
Context
objectcurrentAttributeList
StringList
object that holds the list of attributes for a given attributeattributeToSaveName
typeName