public class DataSetGroupFieldUtils extends java.lang.Object implements MboConstants
ALLROWS, CHANGEDBY_USER, COUNT_ADDITIONS, COUNT_AFTERSAVE, COUNT_DATABASE, COUNT_DELETED, COUNT_EXISTING, DBCONFIG, DELAYVALIDATION, DELAYVALIDATIONONLY, DISCARDABLE, GOTCOMPLETEWHERE, HIDDEN, NO_RELATEDMBOS_OF_OWNERSCHILDREN_FETCH, NOACCESSCHECK, NOACTION, NOADD, NOCOMMIT, NODELETE, NONE, NOOVERWRITE, NOSAVE, NOSETVALUE, NOUPDATE, NOVALIDATION, NOVALIDATION_AND_NOACTION, NOVALIDATION_AND_NOACTION_ALLOWCROSSOVER, READONLY, REBUILD, REQUIRED, SAMEVALUEVALIDATION, SETBYPARENT, USER
Modifier and Type | Method and Description |
---|---|
static boolean |
checkIfRootClassIsSet(MboValue mbvObjName,
java.lang.String fldDataSetOwner)
Check if Root Class is set.
|
static void |
checkValueExists(MboRemote mbo,
java.lang.String attribute)
Checks if the value of the specified attribute is present.
|
static int |
countAfterSave(MboSetRemote mbos)
Counts MBOs that would remain in the set if a save occured right away.
|
static java.lang.String[] |
getAllLevelAncestorIds(MboRemote mbo,
java.lang.String classStructId,
boolean includingSelf)
Returns ClassStructureIds of all level ancestors including or not including self.
|
static java.lang.String |
getRootSpecID(MboValue mbvObjName,
java.lang.String fldDataSetOwner)
Returns the root specification variable or
null if there
are not specs for this data set type. |
static java.lang.String |
getSpecs(MboValue mbvObjName,
java.lang.String fldDataSetOwner)
Returns the specifications for this data set type or
null
if there aren't any. |
static java.lang.String |
getTranslatedValue(Translate translator,
java.lang.String domainId,
MboRemote mbo,
java.lang.String attribute)
Returns the translated value of the
attribute of mbo object. |
static java.lang.String |
getTranslatedValue(Translate translator,
java.lang.String domainId,
java.lang.String value)
Returns a translated value based on the value adapter
|
static boolean |
hasSpecs(MboValue mbvObjName,
java.lang.String fldDataSetOwner)
Checks whether or not there are specifications defined for the type of
data set used.
|
static void |
resetField(MboRemote mbo,
java.lang.String fldName)
Resets the field, by clearing it and setting it to "Read-only" and "Required".
|
static void |
resetField(MboRemote mbovField,
java.lang.String fldName,
boolean isReadOnly,
boolean isRequired)
Clears a field with the specified name.
|
static void |
resetField(MboValue mbv,
java.lang.String fldName)
Resets the field, by clearing it and setting it to "Read-only" and "Required".
|
static void |
resetField(MboValue mbv,
java.lang.String fldName,
boolean isReadOnly,
boolean isRequired)
Clears a field with the specified name.
|
static void |
setAllAttributesReadOnly(Mbo mbo,
boolean readOnly)
Sets the "read-only" status of all attributes belonging to the specified mbo.
|
static void |
setDataSetsReadOnly(MboRemote mbo,
boolean readOnly)
Sets the "read-only" state of the data set fields.
|
static void |
updateTaskComparisonResultStatus(MboRemote task)
Updates the "required" state of the "Comparison Results" option of a Reconciliation Task and resets the value.
|
static void |
updateTaskComparisonResultStatus(MboRemote task,
boolean required)
Updates the "required" state of the "Comparison Results" option of a Reconciliation Task and resets the value.
|
static void |
validateTaskFilterType(Mbo mboTask)
Validates a Reconciliation Task's filter type that it matches one of the selected
"Data Set 1" or "Data Set 2".
|
public static void resetField(MboRemote mbovField, java.lang.String fldName, boolean isReadOnly, boolean isRequired)
mbo
- Mbo containing the field to reset.Name
- of the field to clear and disable.isReadOnly
- Set the field to read-only?isRequired
- Set the field to required?public static void resetField(MboValue mbv, java.lang.String fldName, boolean isReadOnly, boolean isRequired)
mbv
- MboValue belonging to Mbo containing the field to reset.Name
- of the field to clear and disable.isReadOnly
- Set the field to read-only?isRequired
- Set the field to required?public static void resetField(MboRemote mbo, java.lang.String fldName) throws java.rmi.RemoteException, MXException
mbo
- Mbo containing the field to reset.fldName
- Name of the field to be reset.java.rmi.RemoteException
MXException
#resetField(String, boolean, boolean)
public static void resetField(MboValue mbv, java.lang.String fldName) throws java.rmi.RemoteException, MXException
mbv
- MboValue belonging to Mbo containing the field to reset.fldName
- Name of the field to be reset.java.rmi.RemoteException
MXException
#resetField(String, boolean, boolean)
public static boolean hasSpecs(MboValue mbvObjName, java.lang.String fldDataSetOwner) throws MXException, java.rmi.RemoteException
true
if there are specs for the type of dataset,
false
otherwise.MXException
- If there is an application error.java.rmi.RemoteException
- If there is an RMI error.public static java.lang.String getRootSpecID(MboValue mbvObjName, java.lang.String fldDataSetOwner) throws MXException, java.rmi.RemoteException
null
if there
are not specs for this data set type.MXException
- If there is an application error.java.rmi.RemoteException
- If there is an RMI error.public static java.lang.String getSpecs(MboValue mbvObjName, java.lang.String fldDataSetOwner) throws MXException, java.rmi.RemoteException
null
if there aren't any.MXException
- If there is an application error.java.rmi.RemoteException
- If there is an RMI error.public static boolean checkIfRootClassIsSet(MboValue mbvObjName, java.lang.String fldDataSetOwner) throws MXException, java.rmi.RemoteException
MXException
- If there is an application error.java.rmi.RemoteException
- If there is an RMI error.public static java.lang.String[] getAllLevelAncestorIds(MboRemote mbo, java.lang.String classStructId, boolean includingSelf) throws MXException, java.rmi.RemoteException
mbo
- The current mbo.classStructId
- Class structure id of a class to find its ancestors.includingSelf
- Whether or not to include the HierarchyLevel 0 ancestor ie. self.MXException
java.rmi.RemoteException
public static void setAllAttributesReadOnly(Mbo mbo, boolean readOnly) throws MXException
mbo
- An MBO which attributes' "read-only" state is to be altered.readOnly
- The new "read-only" state of the mbo's attributes.MXException
public static void validateTaskFilterType(Mbo mboTask) throws java.rmi.RemoteException, MXException
mboTask
- A Reconciliation Task MBO.java.rmi.RemoteException
- If an RMI error occurs.MXException
- If there is a no match or an application error.public static void setDataSetsReadOnly(MboRemote mbo, boolean readOnly)
public static void checkValueExists(MboRemote mbo, java.lang.String attribute) throws MXException
attribute
- Attribute name to check its value.MXException
- Thrown if the attribute's value is missing.public static int countAfterSave(MboSetRemote mbos) throws java.rmi.RemoteException, MXException
mbos
- A set of MBOs.java.rmi.RemoteException
MXException
public static void updateTaskComparisonResultStatus(MboRemote task) throws MXException, java.rmi.RemoteException
task
- A Task object.MXException
java.rmi.RemoteException
public static void updateTaskComparisonResultStatus(MboRemote task, boolean required) throws MXException, java.rmi.RemoteException
task
- A Task object.MXException
java.rmi.RemoteException
public static java.lang.String getTranslatedValue(Translate translator, java.lang.String domainId, java.lang.String value) throws MXException
translator
- The global translator.domainId
- Synonym domain ID.value
- A value to be translagted. VALUE -> MAXVALUE.MXException
public static java.lang.String getTranslatedValue(Translate translator, java.lang.String domainId, MboRemote mbo, java.lang.String attribute) throws MXException, java.rmi.RemoteException
attribute
of mbo
object.translator
- The global translator.domainId
- Synonym domain ID.mbo
- MBO which attribute is to be translated.attribute
- The attribute to be translated.MXException
java.rmi.RemoteException