|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--com.matrixone.apps.domain.util.FrameworkUtil
The FrameworkUtil class implements utility methods used by other
classes in the AEF.
| Constructor Summary | |
FrameworkUtil()
|
|
| Method Summary | |
static boolean |
attributeHasChoicesOnly(matrix.db.Context context,
java.lang.String attributeName)
Method to determine if attribute should display a dropdown or edit field Look at all the Range values for this attribute. |
static java.lang.String |
autoName(matrix.db.Context context,
java.lang.String type,
java.lang.String policy)
Creates object and returns object ID created with Autonamer |
static java.lang.String |
autoName(matrix.db.Context context,
java.lang.String type,
java.lang.String policy,
boolean navigate)
Creates object and returns object ID created with Autonamer |
static java.lang.String |
autoName(matrix.db.Context context,
java.lang.String type,
java.lang.String revision,
java.lang.String policy)
Creates object and returns object ID created with Autonamer Accepts Revision as a parameter |
static java.lang.String |
autoName(matrix.db.Context context,
java.lang.String type,
java.lang.String revision,
java.lang.String policy,
boolean navigate)
Creates object and returns object ID created with Autonamer |
static java.lang.String |
autoName(matrix.db.Context context,
java.lang.String type,
java.lang.String revision,
java.lang.String policy,
java.lang.String vault)
Creates object and returns object ID created with Autonamer Accepts Vault as a parameter |
static java.lang.String |
autoName(matrix.db.Context context,
java.lang.String type,
java.lang.String revision,
java.lang.String policy,
java.lang.String vault,
boolean navigate)
Creates object and returns object ID created with Autonamer Accepts Vault as a parameter |
static java.lang.String |
autoName(matrix.db.Context context,
java.lang.String type,
java.lang.String revision,
java.lang.String policy,
java.lang.String vault,
java.lang.String customRev)
Creates object and returns object ID created with Autonamer Accepts Vault as a parameter |
static java.lang.String |
autoName(matrix.db.Context context,
java.lang.String type,
java.lang.String revision,
java.lang.String policy,
java.lang.String vault,
java.lang.String customRev,
boolean navigate)
Creates object and returns object ID created with Autonamer Accepts Vault as a parameter |
static java.lang.String |
autoRevision(matrix.db.Context context,
java.lang.String type,
java.lang.String name,
java.lang.String policy)
Creates object and returns object ID created with Auto revision |
static java.lang.String |
autoRevision(matrix.db.Context context,
java.lang.String type,
java.lang.String name,
java.lang.String policy,
java.lang.String vault)
Creates object and returns object ID created with Auto revision |
static java.lang.String |
buttonFooterURLOff(java.lang.String text,
java.lang.String languageStr,
java.lang.String iconName,
java.lang.String suiteDir)
Method to call "Off" Button |
static java.lang.String |
buttonFooterURLOn(java.lang.String text,
java.lang.String languageStr,
java.lang.String iconName,
java.lang.String suiteDir)
Method to call "On" Button |
static java.lang.String |
buttonGenericURL(java.lang.String text,
java.lang.String languageStr,
java.lang.String iconName,
java.lang.String backgroundName,
int width,
int height)
Method to call "IconButtonServlet" to build Button |
static boolean |
comparePattern(java.lang.String pattern,
java.lang.String string)
Test whether a string matches a search pattern |
static java.lang.String |
createNextRevision(matrix.db.Context context,
matrix.db.BusinessObject businessObject,
java.lang.String vaultName)
Helper method to create Next Revisions Returns "New|'BusID'", "Exists|'BusID'", "Invalid| " - Based on results returned by getNextRevision() |
static java.lang.String |
encodeHref(javax.servlet.http.HttpServletRequest request,
java.lang.String strHref)
Encodes a url to pass to a HREF. |
static java.lang.String |
encodeURL(java.lang.String url)
Encodes the entire URL passed in, including all parameter names, values and all ? & = and any other symbols, Spaces will be converted to + |
static java.lang.String |
encodeURLParamValues(java.lang.String url)
Take a url encode all the parameter values, |
static java.lang.String |
findAndReplace(java.lang.String sourceString,
java.lang.String findString,
java.lang.String replaceString)
Find and Replace the String in a string |
static matrix.util.StringList |
getAbsUserApplications(matrix.db.Context context,
java.lang.String argSuiteName)
Gets a list of available applications in the database |
static matrix.util.StringList |
getAbsUserFeatures(matrix.db.Context context,
java.lang.String argSuite,
java.lang.String argApp)
Gets a list of available features in the database |
static matrix.util.StringList |
getAbsUserSuites(matrix.db.Context context)
Gets a list of available suites in the database for this user |
static java.lang.String |
getAliasForAdmin(matrix.db.Context context,
java.lang.String type,
java.lang.String name,
boolean useCache)
Get the schema alias for the schema object defined by the given type and name from the cache. |
static matrix.db.BusinessObjectItr |
getAllBusinessObjects(matrix.db.Context context,
java.lang.String typePattern,
java.lang.String namePattern,
java.lang.String vaultName,
java.lang.String queryLimit)
This method retrieves all the Business Objects with all the revisions of all states. |
static java.lang.String |
getAttribute(matrix.db.Context context,
matrix.db.BusinessObject businessObject,
java.lang.String attributeName)
Get the requested attribute value from BusinessObject |
static java.lang.String |
getAverage(matrix.db.Context context,
java.util.Locale localeObj,
matrix.util.StringList valueList)
Get the Average value for the given input. |
static java.lang.String |
getBaseType(matrix.db.Context context,
java.lang.String sType,
matrix.db.Vault vault)
Get the Topmost Parent type |
static matrix.db.BusinessObjectList |
getBusinessObjectRevisions(matrix.db.Context context,
java.lang.String typePattern,
java.lang.String namePattern,
java.lang.String reqPolicyState,
java.lang.String searchCriteria,
java.lang.String queryLimit)
This method retrieves all the Business Objects with all the revisions with the given state. |
static matrix.db.BusinessObjectList |
getBusinessObjectRevisions(matrix.db.Context context,
java.lang.String typePattern,
java.lang.String namePattern,
java.lang.String reqPolicyState,
java.lang.String searchCriteria,
java.lang.String vault,
java.lang.String queryLimit)
This method retrieves all the Business Objects with all the revisions with the given state. |
static java.util.Vector[] |
getConnectionsFromObj(matrix.db.Context context,
matrix.db.BusinessObject businessObject,
java.lang.String sRelPattern,
java.lang.String sTypePattern,
boolean boolGetTo,
boolean boolGetFrom,
short iLevel)
Method to get all possible connections for a Business Object for a given: rel pattern, type pattern, from/to directions and expand level Returns a row for each connection (rel) with rel id, from/to connected objects The columns appear in the following order: From Id, From Type, From Name, From Rev, Rel Id, Rel Name, To Id, To Type, To Name, To Rev which will be returned as follows: v[0].elementAt(j), v[1].elementAt(j), v[2].elementAt(j), v[3].elementAt(j), v[4].elementAt(j), v[5].elementAt(j), v[6].elementAt(j), v[7].elementAt(j), v[8].elementAt(j), v[9].elementAt(j) where 'v' is the vector array that stored the result from this helper method and 'j' represents a connection. |
static matrix.db.State |
getCurrentState(matrix.db.Context context,
matrix.db.BusinessObject businessObject)
Get the current state for this object. |
static java.lang.String |
getCurrentStateName(matrix.db.Context context,
java.lang.String businessObjectID)
Get the current state name for this object. |
static int |
getCurrentStateOfBusObj(matrix.db.Context context,
matrix.db.BusinessObject businessObject)
This method retrieves the current state of the Business Object. |
static java.lang.String |
getFirstRevision(matrix.db.Context context,
java.lang.String objectId)
Get the first revision of a businessobject |
static matrix.util.StringList |
getGroupNames(matrix.db.Context context,
boolean showHidden,
boolean useCache)
Get list of all group names |
static java.util.Vector |
getIntersection(java.util.Vector firstVector,
java.util.Vector secondVector)
This method returns a vector of the common elements in two vectors. |
static java.lang.String |
getLastRevision(matrix.db.Context context,
java.lang.String objectId)
Get the last revision of a businessobject |
static java.lang.String |
getMaximum(matrix.db.Context context,
java.util.Locale localeObj,
matrix.util.StringList valueList)
Get the Maximum value for the given input. |
static java.lang.String |
getMedian(matrix.db.Context context,
java.util.Locale localeObj,
matrix.util.StringList valueList)
Get the Median value for the given input. |
static java.lang.String |
getMinimum(matrix.db.Context context,
java.util.Locale localeObj,
matrix.util.StringList valueList)
Get the Minimum value for the given input. |
static matrix.util.StringList |
getNonHiddenAttributeNames(matrix.db.Context context,
boolean useCache)
Get the names of all the non-hidden attributes in the database. |
static matrix.db.BusinessObject |
getOrganization(matrix.db.Context context,
matrix.db.BusinessObject person,
java.lang.String relationshipPattern)
Get the organization associated with this person. |
static matrix.util.StringList |
getPersonNames(matrix.db.Context context,
boolean showHidden,
boolean useCache)
Get list of all person names |
static java.lang.String |
getPolicyClassification(matrix.db.Context context,
java.lang.String policyName)
Method to get the Policy Classification for a policy The value will be either 'Development', 'Production', or 'Other' |
static matrix.util.StringList |
getRanges(matrix.db.Context context,
java.lang.String attributeName)
Get the possible ranges for a given attribute. |
static matrix.db.BusinessTypeList |
getRelationshipBaseTypes(matrix.db.Context context,
java.lang.String relationshipType,
boolean boolFromTypes,
boolean boolToTypes,
matrix.db.Vault vault)
For a given relationship it finds the highest possible level of types that can be connected by using that relationship and returns the list. |
static java.lang.String |
getRelAttribute(matrix.db.Context context,
matrix.db.Relationship relationship,
java.lang.String attrName)
Get the requested attribute value from Relationship |
static matrix.util.StringList |
getRoleNames(matrix.db.Context context,
boolean showHidden,
boolean useCache)
Get list of all role names |
static matrix.db.State |
getSpecificState(matrix.db.Context context,
matrix.db.BusinessObject busObj,
java.lang.String sStateName)
Get the state reference for this object. |
static java.lang.String |
getSum(matrix.db.Context context,
java.util.Locale localeObj,
matrix.util.StringList valueList)
Get the Sum value for the given input. |
static java.util.Hashtable |
getSystemData(matrix.db.Context context)
Get the System Data output |
static matrix.util.StringList |
getTopLevelGroupNames(matrix.db.Context context,
boolean showHidden,
boolean useCache)
Get list of all top level group names |
static matrix.util.StringList |
getTopLevelRoleNames(matrix.db.Context context,
boolean showHidden,
boolean useCache)
Get list of all top level role names |
static java.lang.String |
getType(matrix.db.Context context,
matrix.db.BusinessObject businessObject)
Return the object type. |
static java.lang.String |
getTypeRegistrationName(matrix.db.Context context,
java.lang.String typeName,
javax.servlet.ServletContext application)
Get the registration name for a type. |
static java.lang.String |
getTypeRegistrationName(matrix.db.Context context,
java.lang.String regularName,
javax.servlet.ServletContext application,
java.lang.String lookupGroupName)
Method is overloaded to handle different registration names other than "type_" For example "policy_ECRRejected" returns "ECR Rejected". |
static matrix.util.StringList |
getVaultNames(matrix.db.Context context,
boolean showHidden,
boolean useCache)
Get list of all vault names |
static boolean |
hasAccess(matrix.db.Context context,
matrix.db.BusinessObject busObj,
java.lang.String access)
Test whether the business object has the access rights for the specified Access and CurrentState. |
static boolean |
hasAccess(matrix.db.Context context,
matrix.db.BusinessObject busObj,
matrix.util.StringList access)
Test whether the business object has the access rights for the specified Access and CurrentState. |
static boolean |
hasAccessForState(matrix.db.Context context,
matrix.db.BusinessObject busObj,
matrix.db.State state,
java.lang.String access)
Test whether the business object has the access rights for the specified Access and State. |
static boolean |
hasAccessForStateName(matrix.db.Context context,
matrix.db.BusinessObject busObj,
java.lang.String stateName,
java.lang.String access)
Test whether the business object has the access rights for the specified Access and CurrentState. |
static boolean |
isAttributeHidden(matrix.db.Context context,
java.lang.String attributeName)
Check whether the Attribute is hidden. |
static boolean |
isAttributeOnType(matrix.db.Context context,
java.lang.String typeName,
java.lang.String attributeName)
Check whether an attribute exists for a given type |
static boolean |
isAuthorized(matrix.db.Context context,
matrix.db.BusinessObject personObject,
java.lang.String busId,
java.util.HashMap roleMap)
This method... |
static boolean |
isNewBusObj(matrix.db.Context context,
matrix.db.BusinessObject busObj)
Test whether the given business object is a new business object. |
static boolean |
isObjectId(matrix.db.Context context,
java.lang.String idORnot)
|
static boolean |
isRevisedBusObj(matrix.db.Context context,
matrix.db.BusinessObject busObj)
Test whether the given business object is a revised business object. |
static boolean |
isSuiteRegistered(matrix.db.Context context,
java.lang.String appVersion,
boolean setTreeMenu,
java.lang.String registeredSuiteTreeMenu,
java.lang.String currentSuiteTreeMenu)
Checks if the Suite is Registered, |
static boolean |
isThisSuiteRegistered(matrix.db.Context context,
javax.servlet.http.HttpSession session,
java.lang.String strSuiteName)
Checks if the Suite is Registered for the user |
static java.lang.String |
join(java.util.List list,
java.lang.String fieldSep,
java.lang.String recordSep)
Joins the given list of lists with the record separator and the field separator characters and returns a string. |
static java.lang.String |
join(java.lang.String[] strings,
java.lang.String separator)
Joins the given string array with the separator character and returns a string. |
static java.lang.String |
join(matrix.util.StringList stringList,
java.lang.String separator)
Joins the given string list with the separator character and returns a string. |
static java.lang.String |
join(matrix.util.StringList list1,
matrix.util.StringList list2,
java.lang.String fieldSep,
java.lang.String recordSep)
Joins the given list of lists with the record separator and the field separator characters and returns a string. |
static java.lang.String |
lookupDomainObjectClassName(matrix.db.Context context,
java.lang.String id)
This method returns a String, that is the name of DomainObject sub-class given the object type |
static java.lang.String |
lookupDomainObjectClassName(matrix.db.Context context,
java.lang.String id,
java.lang.String applicationName)
This method returns a String, that is the name of DomainObject sub-class given the object type |
static java.lang.String |
lookupDomainRelationshipClassName(matrix.db.Context context,
java.lang.String id)
This method returns a String, that is the name of DomainRelationship sub-class given the relationship type |
static java.lang.String |
lookupDomainRelationshipClassName(matrix.db.Context context,
java.lang.String id,
java.lang.String applicationName)
This method returns a String, that is the name of DomainRelationship sub-class given the relationship type |
static java.lang.Class |
lookupObject(matrix.db.Context context,
java.lang.String type,
java.lang.String id,
java.lang.Class mask)
This method returns a Class object, that is either DomainObject sub-class or DomainRelationship sub-class based on type, id, mask parameters |
static java.lang.Class |
lookupObject(matrix.db.Context context,
java.lang.String type,
java.lang.String id,
java.lang.Class mask,
java.lang.String applicationName)
This method returns a Class object, that is either DomainObject sub-class or DomainRelationship sub-class based on type, id, mask parameters |
static java.lang.String |
lookupStateName(matrix.db.Context context,
java.lang.String absolutePolicyName,
java.lang.String symbolicStateName)
Lookup the state name |
static java.lang.String |
reverseLookupStateName(matrix.db.Context context,
java.lang.String absolutePolicyName,
java.lang.String absoluteStateName)
Return the reverse lookup for state name. |
static java.lang.String |
reviseLastRevision(matrix.db.Context context,
java.lang.String objectId,
java.lang.String vaultName)
Revise the last revision for an Object |
static matrix.util.StringList |
split(java.lang.String string,
java.lang.String separator)
Splits the given string at each separator character and returns a string list. |
static java.util.List |
split(java.lang.String string,
java.lang.String fieldSep,
java.lang.String recordSep)
Splits the given string into a list of lists. |
static matrix.db.AttributeList |
toAttributeList(java.util.Map attributeMap)
Transform a Map to an AttributeList. |
static java.util.Map |
toMap(matrix.db.AttributeList list)
Transform AttributeList to a Map. |
static java.util.Map |
toMap(matrix.db.BusinessObjectWithSelect bows)
Transform BusinessObjectWithSelect to a Map. |
static java.util.Map |
toMap(matrix.db.BusinessObjectWithSelect bows,
java.util.List multiValueList)
Transform BusinessObjectWithSelect to a Map. |
static java.util.Map |
toMap(matrix.db.Context context,
matrix.db.AttributeList list)
Transform AttributeList to a Map. |
static java.util.Map |
toMap(matrix.db.Context context,
matrix.db.AttributeTypeList list)
Transform AttributeTypeList to Map |
static MapList |
toMapList(matrix.db.BusinessObjectWithSelectList list)
Transform BusinessObjectWithSelectList to a MapList. |
static MapList |
toMapList(matrix.db.BusinessObjectWithSelectList list,
java.util.List multiValueList)
Transform BusinessObjectWithSelectList to a MapList. |
static MapList |
toMapList(matrix.db.ExpansionWithSelect expansion)
Transform ExpansionWithSelectList to a MapList. |
static MapList |
toMapList(matrix.db.ExpansionWithSelect expansion,
matrix.util.Pattern includeType,
matrix.util.Pattern includeRelationship,
java.util.Map includeMap)
Transform ExpansionWithSelectList to a MapList. |
static MapList |
toMapList(matrix.db.ExpansionWithSelect expansion,
matrix.util.Pattern includeType,
matrix.util.Pattern includeRelationship,
java.util.Map includeMap,
java.lang.String relKeyPrefix)
Transform ExpansionWithSelectList to a MapList. |
static MapList |
toMapList(matrix.db.ExpansionWithSelect expansion,
java.lang.String relKeyPrefix)
Transform ExpansionWithSelect to a MapList. |
static MapList |
toMapList(matrix.db.RelationshipWithSelectList list)
Transform RelationshipWithSelectList to a MapList. |
static MapList |
toMapList(matrix.db.RelationshipWithSelectList list,
matrix.util.Pattern includeType,
matrix.util.Pattern includeRelationship,
java.util.Map includeMap)
Transform RelationshipWithSelectList to a MapList. |
static MapList |
toMapList(matrix.db.RelationshipWithSelectList list,
matrix.util.Pattern includeType,
matrix.util.Pattern includeRelationship,
java.util.Map includeMap,
java.lang.String relKeyPrefix)
Transform RelationshipWithSelectList to a MapList. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FrameworkUtil()
| Method Detail |
public static boolean attributeHasChoicesOnly(matrix.db.Context context,
java.lang.String attributeName)
throws FrameworkException
context - the eMatrix Context objectattributeName - the name of the attribute
public static java.lang.String autoName(matrix.db.Context context,
java.lang.String type,
java.lang.String policy)
throws FrameworkException
context - the eMatrix Context objecttype - the type namepolicy - the policy name
public static java.lang.String autoName(matrix.db.Context context,
java.lang.String type,
java.lang.String policy,
boolean navigate)
throws FrameworkException
context - the eMatrix Context objecttype - the type namepolicy - the policy name
public static java.lang.String autoName(matrix.db.Context context,
java.lang.String type,
java.lang.String revision,
java.lang.String policy)
throws FrameworkException
context - the eMatrix Context objecttype - the type namerevision - the revisionpolicy - the policy name
public static java.lang.String autoName(matrix.db.Context context,
java.lang.String type,
java.lang.String revision,
java.lang.String policy,
boolean navigate)
throws FrameworkException
context - the eMatrix Context objecttype - the type namepolicy - the policy name
public static java.lang.String autoName(matrix.db.Context context,
java.lang.String type,
java.lang.String revision,
java.lang.String policy,
java.lang.String vault)
throws FrameworkException
context - the eMatrix Context objecttype - the type namerevision - the revisionpolicy - the policy namevault - the vault name
public static java.lang.String autoName(matrix.db.Context context,
java.lang.String type,
java.lang.String revision,
java.lang.String policy,
java.lang.String vault,
boolean navigate)
throws FrameworkException
context - the eMatrix Context objecttype - the type namerevision - the revisionpolicy - the policy namevault - the vault name
public static java.lang.String autoName(matrix.db.Context context,
java.lang.String type,
java.lang.String revision,
java.lang.String policy,
java.lang.String vault,
java.lang.String customRev)
throws FrameworkException
context - the eMatrix Context objecttype - the type namerevision - the revisionpolicy - the policy namevault - the vault namecustomRev - the Custom Revision Level
public static java.lang.String autoName(matrix.db.Context context,
java.lang.String type,
java.lang.String revision,
java.lang.String policy,
java.lang.String vault,
java.lang.String customRev,
boolean navigate)
throws FrameworkException
context - the eMatrix Context objecttype - the type namerevision - the revisionpolicy - the policy namevault - the vault namecustomRev - the Custom Revision Level
public static java.lang.String autoRevision(matrix.db.Context context,
java.lang.String type,
java.lang.String name,
java.lang.String policy)
throws FrameworkException
context - the eMatrix Context objecttype - the type namename - the object namepolicy - the policy name
public static java.lang.String autoRevision(matrix.db.Context context,
java.lang.String type,
java.lang.String name,
java.lang.String policy,
java.lang.String vault)
throws FrameworkException
context - the eMatrix Context objecttype - the type namename - the object namepolicy - the policy namevault - the vault name
public static java.lang.String buttonFooterURLOff(java.lang.String text,
java.lang.String languageStr,
java.lang.String iconName,
java.lang.String suiteDir)
text - languageStr - iconName - suiteDir -
public static java.lang.String buttonFooterURLOn(java.lang.String text,
java.lang.String languageStr,
java.lang.String iconName,
java.lang.String suiteDir)
text - languageStr - iconName - suiteDir -
public static java.lang.String buttonGenericURL(java.lang.String text,
java.lang.String languageStr,
java.lang.String iconName,
java.lang.String backgroundName,
int width,
int height)
text - languageStr - iconName - suiteDir -
public static boolean comparePattern(java.lang.String pattern,
java.lang.String string)
pattern - the search patternstring - the string to match to the pattern
public static java.lang.String createNextRevision(matrix.db.Context context,
matrix.db.BusinessObject businessObject,
java.lang.String vaultName)
throws FrameworkException
context - the eMatrix Context objectbusinessObject - an eMatrix BusinessObject objectvaultName - the name of the vault
public static java.lang.String encodeHref(javax.servlet.http.HttpServletRequest request,
java.lang.String strHref)
req - the HttpServletRequest objectstrHref - Stringpublic static java.lang.String encodeURL(java.lang.String url)
url - the given URLpublic static java.lang.String encodeURLParamValues(java.lang.String url)
url - the given URL
public static java.lang.String findAndReplace(java.lang.String sourceString,
java.lang.String findString,
java.lang.String replaceString)
context - the eMatrix Context object.
public static matrix.util.StringList getAbsUserApplications(matrix.db.Context context,
java.lang.String argSuiteName)
throws FrameworkException
context - the eMatrix Context objectargSuiteName - -
public static matrix.util.StringList getAbsUserFeatures(matrix.db.Context context,
java.lang.String argSuite,
java.lang.String argApp)
throws FrameworkException
context - the eMatrix Context objectargSuiteName - -appName - -
public static matrix.util.StringList getAbsUserSuites(matrix.db.Context context)
throws matrix.util.MatrixException
context - the eMatrix Context object.
public static java.lang.String getAliasForAdmin(matrix.db.Context context,
java.lang.String type,
java.lang.String name,
boolean useCache)
throws FrameworkException
context - the eMatrix Context objecttype - the type of the schema objectname - the name of the schema objectuseCache - use previously loaded data or refresh list from databaseFrameworkException - if the operation fails
public static matrix.db.BusinessObjectItr getAllBusinessObjects(matrix.db.Context context,
java.lang.String typePattern,
java.lang.String namePattern,
java.lang.String vaultName,
java.lang.String queryLimit)
throws FrameworkException
context - the eMatrix Context objecttypePattern - the typePatternnamePattern - the namePatternvaultName - the name of the vaultqueryLimit - the name of the vaultBusinessObjectItr object
public static java.lang.String getAttribute(matrix.db.Context context,
matrix.db.BusinessObject businessObject,
java.lang.String attributeName)
throws FrameworkException
context - the eMatrix Context objectbusinessObject - an eMatrix BusinessObjectattributeName - the name of the attribute
public static java.lang.String getAverage(matrix.db.Context context,
java.util.Locale localeObj,
matrix.util.StringList valueList)
throws FrameworkException
context - the eMatrix Context objectStringList -
public static java.lang.String getBaseType(matrix.db.Context context,
java.lang.String sType,
matrix.db.Vault vault)
throws FrameworkException
context - the eMatrix Context objectsType - - the type namevault - - an eMatrix vault object
public static matrix.db.BusinessObjectList getBusinessObjectRevisions(matrix.db.Context context,
java.lang.String typePattern,
java.lang.String namePattern,
java.lang.String reqPolicyState,
java.lang.String searchCriteria,
java.lang.String queryLimit)
throws FrameworkException
context - the eMatrix Context objecttypePattern - - the type of the BOnamePattern - - the name of the BOreqPolicyState - - the state of the BOsearchCriteria - - search criteriaqueryLimit - - the query limitBusinessObjectList
public static matrix.db.BusinessObjectList getBusinessObjectRevisions(matrix.db.Context context,
java.lang.String typePattern,
java.lang.String namePattern,
java.lang.String reqPolicyState,
java.lang.String searchCriteria,
java.lang.String vault,
java.lang.String queryLimit)
throws FrameworkException
context - the eMatrix Context objecttypePattern - - the type of the BOnamePattern - - the name of the BOreqPolicyState - - the state of the BOsearchCriteria - - search criteriavaultName - - the name of the vaultqueryLimit - - the query limitBusinessObjectList
public static java.util.Vector[] getConnectionsFromObj(matrix.db.Context context,
matrix.db.BusinessObject businessObject,
java.lang.String sRelPattern,
java.lang.String sTypePattern,
boolean boolGetTo,
boolean boolGetFrom,
short iLevel)
throws FrameworkException
context - the eMatrix Context objectbusinessObject - - the type of the BOsRelPattern - - the name of the BOsTypePattern - - the state of the BOboolGetTo - - search criteriaboolGetFrom - - search criteriaiLevel - - the query limit
public static matrix.db.State getCurrentState(matrix.db.Context context,
matrix.db.BusinessObject businessObject)
throws FrameworkException
context - the eMatrix Context objectbusinessObject - an eMatrix BusinessObject objectState object representing the current state
public static java.lang.String getCurrentStateName(matrix.db.Context context,
java.lang.String businessObjectID)
throws FrameworkException
context - the eMatrix Context objectbusinessObjectID - the business object id
public static int getCurrentStateOfBusObj(matrix.db.Context context,
matrix.db.BusinessObject businessObject)
throws FrameworkException
context - the eMatrix Context objectbusinessObject - an eMatrix BusinessObject
public static java.lang.String getFirstRevision(matrix.db.Context context,
java.lang.String objectId)
throws FrameworkException
context - the eMatrix Context objectobjectId - the object id of the businessobject
public static matrix.util.StringList getGroupNames(matrix.db.Context context,
boolean showHidden,
boolean useCache)
throws FrameworkException
context - the eMatrix Context objectshowHidden - show hidden groupsuseCache - use previously loaded data or refresh list from databaseFrameworkException - if the operation fails
public static java.util.Vector getIntersection(java.util.Vector firstVector,
java.util.Vector secondVector)
firstVector - secondVector -
public static java.lang.String getLastRevision(matrix.db.Context context,
java.lang.String objectId)
throws FrameworkException
context - the eMatrix Context objectobjectId - the object id of the businessobject
public static java.lang.String getMaximum(matrix.db.Context context,
java.util.Locale localeObj,
matrix.util.StringList valueList)
throws FrameworkException
context - the eMatrix Context objectStringList -
public static java.lang.String getMedian(matrix.db.Context context,
java.util.Locale localeObj,
matrix.util.StringList valueList)
throws FrameworkException
context - the eMatrix Context objectStringList -
public static java.lang.String getMinimum(matrix.db.Context context,
java.util.Locale localeObj,
matrix.util.StringList valueList)
throws FrameworkException
context - the eMatrix Context objectStringList -
public static matrix.util.StringList getNonHiddenAttributeNames(matrix.db.Context context,
boolean useCache)
throws FrameworkException
context - the eMatrix Context objectuseCache - use previously loaded data or refresh list from databaseFrameworkException - if the operation fails
public static matrix.db.BusinessObject getOrganization(matrix.db.Context context,
matrix.db.BusinessObject person,
java.lang.String relationshipPattern)
throws FrameworkException
context - the eMatrix Context objectperson - eMatrix BusinessObject representing a personrelationshipPattern - the relationship patternBusinessObject representing the organization
public static matrix.util.StringList getPersonNames(matrix.db.Context context,
boolean showHidden,
boolean useCache)
throws FrameworkException
context - the eMatrix Context objectshowHidden - show hidden personsuseCache - use previously loaded data or refresh list from databaseFrameworkException - if the operation fails
public static java.lang.String getPolicyClassification(matrix.db.Context context,
java.lang.String policyName)
throws FrameworkException
context - the eMatrix Context objectpolicyName - the name of the policy
public static matrix.util.StringList getRanges(matrix.db.Context context,
java.lang.String attributeName)
throws FrameworkException
context - the eMatrix Context objectattributeName - the attribute name
public static matrix.db.BusinessTypeList getRelationshipBaseTypes(matrix.db.Context context,
java.lang.String relationshipType,
boolean boolFromTypes,
boolean boolToTypes,
matrix.db.Vault vault)
throws FrameworkException
context - the eMatrix Context objectrelationshipType - - the relationship type nameboolFromTypes - -boolToTypes - -vault - - an eMatrix vault object
public static java.lang.String getRelAttribute(matrix.db.Context context,
matrix.db.Relationship relationship,
java.lang.String attrName)
throws FrameworkException
context - the eMatrix Context objectrelationship - the eMatrix Relationship objectattributeName - the name of the attribute
public static matrix.util.StringList getRoleNames(matrix.db.Context context,
boolean showHidden,
boolean useCache)
throws FrameworkException
context - the eMatrix Context objectshowHidden - show hidden rolesuseCache - use previously loaded data or refresh list from databaseFrameworkException - if the operation fails
public static matrix.db.State getSpecificState(matrix.db.Context context,
matrix.db.BusinessObject busObj,
java.lang.String sStateName)
throws FrameworkException
context - the eMatrix Context objectbusObj - - an eMatrix BusinessObject objectsStateName - - the name of the stateState object
public static java.lang.String getSum(matrix.db.Context context,
java.util.Locale localeObj,
matrix.util.StringList valueList)
throws FrameworkException
context - the eMatrix Context objectStringList -
public static java.util.Hashtable getSystemData(matrix.db.Context context)
throws FrameworkException
context - the eMatrix Context objectString -
public static matrix.util.StringList getTopLevelGroupNames(matrix.db.Context context,
boolean showHidden,
boolean useCache)
throws FrameworkException
context - the eMatrix Context objectshowHidden - show hidden groupsuseCache - use previously loaded data or refresh list from databaseFrameworkException - if the operation fails
public static matrix.util.StringList getTopLevelRoleNames(matrix.db.Context context,
boolean showHidden,
boolean useCache)
throws FrameworkException
context - the eMatrix Context objectshowHidden - show hidden rolesuseCache - use previously loaded data or refresh list from databaseFrameworkException - if the operation fails
public static java.lang.String getType(matrix.db.Context context,
matrix.db.BusinessObject businessObject)
throws FrameworkException
context - the eMatrix Context objectbusinessObject - - the business object who's type we wantFrameworkException - if the operation fails
public static java.lang.String getTypeRegistrationName(matrix.db.Context context,
java.lang.String typeName,
javax.servlet.ServletContext application)
context - the eMatrix Context objecttypeName - - the type nameapplication - - the servlet context
public static java.lang.String getTypeRegistrationName(matrix.db.Context context,
java.lang.String regularName,
javax.servlet.ServletContext application,
java.lang.String lookupGroupName)
context - the eMatrix Context objectregularName - - the type nameapplication - - the servlet contextlookupGroupName - - the type name
public static matrix.util.StringList getVaultNames(matrix.db.Context context,
boolean showHidden,
boolean useCache)
throws FrameworkException
context - the eMatrix Context objectshowHidden - show hidden vaultsuseCache - use previously loaded data or refresh list from databaseFrameworkException - if the operation fails
public static boolean hasAccess(matrix.db.Context context,
matrix.db.BusinessObject busObj,
java.lang.String access)
throws FrameworkException
context - the eMatrix Context objectbusObj - - an eMatrix BusinessObject objectaccess -
public static boolean hasAccess(matrix.db.Context context,
matrix.db.BusinessObject busObj,
matrix.util.StringList access)
throws FrameworkException
context - the eMatrix Context objectbusObj - - an eMatrix BusinessObject objectaccess -
public static boolean hasAccessForState(matrix.db.Context context,
matrix.db.BusinessObject busObj,
matrix.db.State state,
java.lang.String access)
throws FrameworkException
context - the eMatrix Context objectbusObj - - an eMatrix BusinessObject objectstate - - an eMatrix State objectaccess -
public static boolean hasAccessForStateName(matrix.db.Context context,
matrix.db.BusinessObject busObj,
java.lang.String stateName,
java.lang.String access)
throws FrameworkException
context - the eMatrix Context objectbusObj - - an eMatrix BusinessObject objectstateName - - the state nameaccess -
public static boolean isAttributeHidden(matrix.db.Context context,
java.lang.String attributeName)
context - the eMatrix Context objectattributeName - the name of the attribute
public static boolean isAttributeOnType(matrix.db.Context context,
java.lang.String typeName,
java.lang.String attributeName)
throws FrameworkException
context - the eMatrix Context objecttypeName - the name of the typeattributeName - the name of the attribute
public static boolean isAuthorized(matrix.db.Context context,
matrix.db.BusinessObject personObject,
java.lang.String busId,
java.util.HashMap roleMap)
throws FrameworkException
context - the eMatrix Context objectpersonObject - - an eMatrix BusinessObject objectbusId - - the name of the BOroleMap - - the state of the BO
public static boolean isNewBusObj(matrix.db.Context context,
matrix.db.BusinessObject busObj)
throws FrameworkException
context - the eMatrix Context objectbusObj - - an eMatrix BusinessObject object
public static boolean isObjectId(matrix.db.Context context,
java.lang.String idORnot)
throws FrameworkException
public static boolean isRevisedBusObj(matrix.db.Context context,
matrix.db.BusinessObject busObj)
throws FrameworkException
context - the eMatrix Context objectbusObj - - an eMatrix BusinessObject object
public static boolean isSuiteRegistered(matrix.db.Context context,
java.lang.String appVersion,
boolean setTreeMenu,
java.lang.String registeredSuiteTreeMenu,
java.lang.String currentSuiteTreeMenu)
appVersion - the suite which needs to be checked if installed.setTreeMenu - boolean to the set the environment Variable, MX_TREE_MENUregisteredSuiteTreeMenu - set tree menu of the registered suitecurrentSuiteTreeMenu - set the tree menu of the current suite.
public static boolean isThisSuiteRegistered(matrix.db.Context context,
javax.servlet.http.HttpSession session,
java.lang.String strSuiteName)
throws matrix.util.MatrixException
context - the eMatrix Context object.session - the session object.strSuiteName - the suite name.
public static java.lang.String join(java.util.List list,
java.lang.String fieldSep,
java.lang.String recordSep)
list - the list to join into a stringfieldSep - the character to join each field withrecordSep - the character to join each record with
public static java.lang.String join(java.lang.String[] strings,
java.lang.String separator)
strings - the string array to join into a stringseparator - the character to join with
public static java.lang.String join(matrix.util.StringList stringList,
java.lang.String separator)
stringList - the string list to join into a stringseparator - the character to join with
public static java.lang.String join(matrix.util.StringList list1,
matrix.util.StringList list2,
java.lang.String fieldSep,
java.lang.String recordSep)
list - the list to join into a stringfieldSep - the character to join each field withrecordSep - the character to join each record with
public static java.lang.String lookupDomainObjectClassName(matrix.db.Context context,
java.lang.String id)
throws FrameworkException
context - the eMatrix Context objectid, - the object type
public static java.lang.String lookupDomainObjectClassName(matrix.db.Context context,
java.lang.String id,
java.lang.String applicationName)
throws FrameworkException
context - the eMatrix Context objectid, - the object typeapplicationName, - the name of application to determine the mapping file
to look in first
public static java.lang.String lookupDomainRelationshipClassName(matrix.db.Context context,
java.lang.String id)
throws FrameworkException
context - the eMatrix Context objectid, - the relationship type
public static java.lang.String lookupDomainRelationshipClassName(matrix.db.Context context,
java.lang.String id,
java.lang.String applicationName)
throws FrameworkException
context - the eMatrix Context objectid, - the relationship typeapplicationName, - the name of application to determine the mapping file
to look in first
public static java.lang.Class lookupObject(matrix.db.Context context,
java.lang.String type,
java.lang.String id,
java.lang.Class mask)
throws FrameworkException
context - the eMatrix Context objecttype, - "type" for Object type lookup, "relationship" for relationship lookupid, - the object type or relationship typemask, - DomainObject.Class for Object type lookup,
DomainRelationship.Class for relationship lookup
public static java.lang.Class lookupObject(matrix.db.Context context,
java.lang.String type,
java.lang.String id,
java.lang.Class mask,
java.lang.String applicationName)
throws FrameworkException
context - the eMatrix Context objecttype, - "type" for Object type lookup, "relationship" for relationship lookupid, - the object type or relationship typemask, - DomainObject for Object type lookup, DomainRelationship for relationship lookupapplicationName, - the name of application to determine the mapping file
to look in first
public static java.lang.String lookupStateName(matrix.db.Context context,
java.lang.String absolutePolicyName,
java.lang.String symbolicStateName)
throws FrameworkException
context - the eMatrix Context objectabsolutePolicyName - the absolute policy namesymbolicStateName - the symbolic state name
public static java.lang.String reverseLookupStateName(matrix.db.Context context,
java.lang.String absolutePolicyName,
java.lang.String absoluteStateName)
throws FrameworkException
context - the eMatrix Context objectabsolutePolicyName - the absolute policy nameabsoluteStateName - the symbolic state name
public static java.lang.String reviseLastRevision(matrix.db.Context context,
java.lang.String objectId,
java.lang.String vaultName)
throws FrameworkException
context - the eMatrix Context objectobjectId - the object id of the businessobjectvaultName - the name of the vault
public static matrix.util.StringList split(java.lang.String string,
java.lang.String separator)
string - the string to split into a string listseparator - the character to split on
public static java.util.List split(java.lang.String string,
java.lang.String fieldSep,
java.lang.String recordSep)
string - the string to split into a MapfieldSep - the character to split each field onrecordSep - the character to split each record onpublic static matrix.db.AttributeList toAttributeList(java.util.Map attributeMap)
context - the eMatrix Context objectattributeMap - a map containing name and value pairs.public static java.util.Map toMap(matrix.db.AttributeList list)
list - the AttributeListpublic static java.util.Map toMap(matrix.db.BusinessObjectWithSelect bows)
bows - the BusinessObjectSelect object
public static java.util.Map toMap(matrix.db.BusinessObjectWithSelect bows,
java.util.List multiValueList)
bows - the BusinessObjectSelect objectmultiValueList - the list of data to convert to a StringList
public static java.util.Map toMap(matrix.db.Context context,
matrix.db.AttributeList list)
throws FrameworkException
context - the eMatrix Context objectlist - the AttributeListFrameworkException - if the operation fails
public static java.util.Map toMap(matrix.db.Context context,
matrix.db.AttributeTypeList list)
throws FrameworkException
context - the eMatrix Context objectlist - AttributeTypeListFrameworkException - if the operation failspublic static MapList toMapList(matrix.db.BusinessObjectWithSelectList list)
list - the BusinessObjectSelectList
public static MapList toMapList(matrix.db.BusinessObjectWithSelectList list,
java.util.List multiValueList)
list - the BusinessObjectSelectList objectmultiValueList - the list of data to convert to a StringListpublic static MapList toMapList(matrix.db.ExpansionWithSelect expansion)
expansion - the ExpansionWithSelect to convert to a MapList
public static MapList toMapList(matrix.db.ExpansionWithSelect expansion,
matrix.util.Pattern includeType,
matrix.util.Pattern includeRelationship,
java.util.Map includeMap)
expansion - the ExpansionWithSelect to convert to a MapListincludeType - filter for businees types we want returned. If the
type of the object is not found in this list then it will not
be returned in the MapList. If null all types will be returnedincludeRelationship - filter for relationships we want returned. If the
relationship of the object does not match one in this list then
it will not be returned in the MapList. If null all relationship
types will be returnedincludeMap - a name/value pair that is used to filter data. If the name
matches and the values match each other than they will be returned
in the MapList. If null the value checking is ignored
public static MapList toMapList(matrix.db.ExpansionWithSelect expansion,
matrix.util.Pattern includeType,
matrix.util.Pattern includeRelationship,
java.util.Map includeMap,
java.lang.String relKeyPrefix)
expansion - the ExpansionWithSelect to convert to a MapListincludeType - filter for businees types we want returned. If the
type of the object is not found in this list then it will not
be returned in the MapList. If null all types will be returnedincludeRelationship - filter for relationships we want returned. If the
relationship of the object does not match one in this list then
it will not be returned in the MapList. If null all relationship
types will be returnedincludeMap - a name/value pair that is used to filter data. If the name
matches and the values match each other than they will be returned
in the MapList. If null the value checking is ignoredrelKeyPrefix - - the prefix added to relationship keys to prevent key name collision with
object keys.
public static MapList toMapList(matrix.db.ExpansionWithSelect expansion,
java.lang.String relKeyPrefix)
expansion - the ExpansionWithSelect to convert to a MapListrelKeyPrefix - - the prefix added to relationship keys to prevent key name collision with
object keys.public static MapList toMapList(matrix.db.RelationshipWithSelectList list)
list - the RelationshipWithSelectList
public static MapList toMapList(matrix.db.RelationshipWithSelectList list,
matrix.util.Pattern includeType,
matrix.util.Pattern includeRelationship,
java.util.Map includeMap)
list - the ExpansionWithSelectListincludeType - filter for businees types we want returned. If the
type of the object is not found in this list then it will not
be returned in the MapList. If null all types will be returnedincludeRelationship - filter for relationships we want returned. If the
relationship of the object does not match one in this list then
it will not be returned in the MapList. If null all relationship
types will be returnedincludeMap - a name/value pair that is used to filter data. If the name
matches and the values match each other than they will be returned
in the MapList. If null the value checking is ignored
public static MapList toMapList(matrix.db.RelationshipWithSelectList list,
matrix.util.Pattern includeType,
matrix.util.Pattern includeRelationship,
java.util.Map includeMap,
java.lang.String relKeyPrefix)
list - the ExpansionWithSelectListincludeType - filter for businees types we want returned. If the
type of the object is not found in this list then it will not
be returned in the MapList. If null all types will be returnedincludeRelationship - filter for relationships we want returned. If the
relationship of the object does not match one in this list then
it will not be returned in the MapList. If null all relationship
types will be returnedincludeMap - a name/value pair that is used to filter data. If the name
matches and the values match each other than they will be returned
in the MapList. If null the value checking is ignoredrelKeyPrefix - - the prefix added to relationship keys to prevent key name collision with
object keys.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||