public class MetadataOM extends Object implements Serializable
getMembers API is used to retrieve members of any Dimension.
Retrieving members of Scenario Dimension using getMembers API is explained below.
MetadataOM metadataOM = new MetadataOM(session);
MetadataFilter filter = new MetadataFilter();
filter.setDimensionName("Scenario");
filter.setListName("[Hierarchy]");
MetadataViewOption view = new MetadataViewOption();
view.setIncludeParent(false);
view.setIncludeAncestorPath(false);
view.setIncludeProperties(false);
RecordSetRange range = new RecordSetRange();
range.setStartIndex(0);
range.setEndIndex(-1);
view.setResultSetRange(range);
List<Member> members = metadataOM.getMembers(filter, view);
| Constructor and Description |
|---|
MetadataOM(SessionInfo sessionInfo)
Creates an instance of the MetadataOM object.
|
| Modifier and Type | Method and Description |
|---|---|
List<Member> |
compareBaseMembers(String sessionID,
Dimension dimension,
Member fromParent,
Member toParent)
Internal Use Only
returns the list of members from all the base members of top member fromParent.
|
List<Member> |
enumDuplicateMembers(String sessionID,
Dimension dimension,
Member parent)
Internal Use Only
Returns the list of duplicate members under the specified parent member.
|
List<SharedMember> |
enumSharedMembers(String sessionID,
Dimension dimension)
Internal Use Only
returns the list of shared members with the dimension along with their parent details.
|
List<Member> |
findMembers(String searchName,
MetadataFilter filter,
MetadataViewOption viewOptions)
For ENUMMEMBERACTIONTYPE.VALIDATE_MEMBER and ENUMMEMBERACTIONTYPE.FIND_MEMBER.
|
List<Member> |
findMembersByProperty(String dimensionName,
Map<String,List<String>> propertyValue)
find and retuns the list of members has property value specified for specific property in the property value object.
|
Map<String,String> |
getApplicationAttributes(List<String> applicationAttributes)
Gets the Application attributes .
|
Currency |
getApplicationCurrency()
Gets application level currency and scale.
|
String |
getBaseFrequency()
Get the base frequency of Period Dimension.
|
List<CellTextLabelInfo> |
getCellTextLabels()
Retrieve the list of cell text label for a given application session.
|
List<Currency> |
getCurrencies(boolean ictOnly)
Get the list of transaction currency.
|
List<Currency> |
getCurrenciesForEntities(List<String> entities,
List<String> parents,
List<String> values)
get Currencies for entities.
|
String |
getDefaultParent(String dimensionName,
String memberName)
Returns the default parent of the member if any.
|
String |
getDefaultPOV()
Get default parent of the member.
|
int |
getDefaultValueOfActiveStatusAccount()
Get default active status for account.
|
List<DimensionProperty> |
getDimensionProperties(String dimensionName)
get the properties of the dimension given as a parameter.
|
List<Dimension> |
getDimensions(List<DIMENSIONTYPE> types)
Get the list of Dimension based on DIMENSIONTYPE.
|
List<String> |
getFrequencies()
getFrequencies Get the list of frequencies for the application.
|
String |
getFrequency(String periodMember)
Get the frequency for the given Period.
|
Map<String,Map<String,Integer>> |
getGenerations(Map<String,List<String>> membersByDimension)
get generations for members.
|
Map<String,List<MemberGenerationInfo>> |
getGenerationsEx(Map<String,List<String>> membersByDimension)
Get generations for members.
|
List<String> |
getInvalidMembersInList(String dimensionName,
String listName,
List<String> membersToValidate)
This function will validate that members are in a specified memberlist.
|
List<String> |
getMemberIDs(String sessionID,
String dimensionName,
List<String> memberNames)
Internal Use Only
retuns the member ids for the member names specified.
|
List<MemberDetail> |
getMemberInformation(List<String> memberNames,
PREFERENCES preference)
Get member information.
|
List<MemberList> |
getMemberLists(String dimensionName)
return all the member list based on dimension name.
|
List<Member> |
getMemberProperties(String dimensionName,
List<String> members,
List<String> properties)
get Members properties of dimension.
|
List<Member> |
getMemberProperties(String dimensionName,
List<String> members,
List<String> properties,
boolean securityAsPartner)
get Members properties of dimension.
|
List<Member> |
getMemberPropertiesUsingMembers(String dimensionName,
List<Member> members,
List<String> properties)
get Members properties of dimension.
|
List<Member> |
getMembers(MetadataFilter filter,
MetadataViewOption options)
For ENUMMEMBERACTIONTYPE.ENUM_MEMBER for ENUMMEMBERACTIONTYPE.ENUM_MEMBER_IN_LIST.
get Members based on MetadataFilter and MetadataViewFilter option. |
String |
getMemberSelectorDef(String taskId)
Get the memberselector definition for external tasks.
|
List<MemberEx> |
getMembersEx(MetadataFilterEx filter,
MetadataViewOptionEx options)
get Members based on MetadataFilterEx and MetadataViewFilterEx option.
ORACLE INTERNAL USE ONLY |
List<MemberExSv> |
getMembersExSv(MetadataFilter filter,
MetadataViewOption options)
For ENUMMEMBERACTIONTYPE.ENUM_MEMBER for ENUMMEMBERACTIONTYPE.ENUM_MEMBER_IN_LIST.
get Members based on MetadataFilter and MetadataViewFilter option. ORACLE INTERNAL USE ONLY This version of getMembers returns additional information about a member (see MemberExSv). |
List<FMDocument> |
getMemberUsage(String sessionID,
Dimension dimension,
Member member)
Internal Use Only
returns all the Documents and Artifacts where the specified member is used.
|
List<Member> |
getNumberOfChildren(String dimensionName,
List<Member> members)
sets the number of children field in the members passed in.
|
List<Integer> |
getNumDecimalPlacesForAccounts(List<String> accountMembers)
Return the number of decimal places for input Account members.
|
int |
getNumPeriodsInFrequency(String frequency)
Get the number of periods for the given frequency.
|
String |
getPeriodFromFrequency(String frequency,
int periodNumInFrequency)
returns the memberlabel of the period that is at a given ordinal position within a frequency
|
List<MemberWithInternalId> |
getPeriodMembersWithInternalIds()
Internal Use Only
Retreives period members and its internal ids.
|
List<String> |
getPeriodsInScenarioFrequency(String scenario)
This method retrieve a list of periods in the input scenario default frequency.
|
Map<String,CustomTopMember> |
getTopCustomMembersForAccount(String accountMember)
This method returns custom top member for an account for al the customs.
|
List<String> |
getValidationAccounts()
Get the list of validated accounts.
|
boolean |
isMemberADescendantOf(String dimension,
String member,
String parent)
Determines if a member is a descendant of another member.
|
boolean |
isOrgByPeriodApplication()
Determine if app is org by period or not.
|
boolean |
isPhaseSubmissionEnabledForApplication()
Returns whether or not a given application has been enabled for phase submission.
|
Map<String,List<Member>> |
validateCustomMembers(Map<String,List<String>> customMembersToBeValidatedByAccount)
Returns the valid custom members corresponding to custom dimension against the given account.
|
List<String> |
validateDefFrequencyPeriods(String scenario,
List<String> periodsTobValidated)
Validates that each period dimemsion member's frequency matches with.
|
Map<String,List<Member>> |
validateMembers(Map<String,List<String>> membersToBeValidatedByDimension,
boolean securityAsPartner)
validates Members for Dimensions.
|
Map<String,List<Member>> |
validateMembers(Map<String,List<String>> membersToBeValidatedByDimension,
boolean securityAsPartner,
boolean doNotAddParentIfNotPresent)
validates Members for Dimensions.
|
public MetadataOM(SessionInfo sessionInfo) throws HFMException
sessionInfo - session related informationHFMException - HFMException ErrorCodeConsts.FAILED_OM_INITpublic List<Dimension> getDimensions(List<DIMENSIONTYPE> types) throws HFMException
types - DIMENSIONTYPEHFMExceptionpublic List<MemberList> getMemberLists(String dimensionName) throws HFMException
dimensionName - dimension nameHFMExceptionpublic List<Member> getMemberProperties(String dimensionName, List<String> members, List<String> properties) throws HFMException
dimensionName - dimension namemembers - list of members for which want to get propertyproperties - //If properties is null or empty, member object will have all properties.HFMExceptionpublic List<Member> getMemberProperties(String dimensionName, List<String> members, List<String> properties, boolean securityAsPartner) throws HFMException
dimensionName - dimension namemembers - list of members for which want to get propertyproperties - //If properties is null or empty, member object will have all properties.securityAsPartner - - true if want to validate members against partner accountHFMExceptionpublic List<Member> getMembers(MetadataFilter filter, MetadataViewOption options) throws HFMException
filter - MetadataFilter optionoptions - MetadataViewFilter optionHFMExceptionpublic List<MemberEx> getMembersEx(MetadataFilterEx filter, MetadataViewOptionEx options) throws HFMException
filter - MetadataFilter optionoptions - MetadataViewFilter optionHFMExceptionpublic List<MemberExSv> getMembersExSv(MetadataFilter filter, MetadataViewOption options) throws HFMException
filter - MetadataFilter optionoptions - MetadataViewFilter optionHFMExceptionpublic Map<String,List<Member>> validateMembers(Map<String,List<String>> membersToBeValidatedByDimension, boolean securityAsPartner) throws HFMException
membersToBeValidatedByDimension - - map contains Dimension as key and list of members as valuesecurityAsPartner - - true if want to validate members against partner accountHFMExceptionpublic Map<String,List<Member>> validateMembers(Map<String,List<String>> membersToBeValidatedByDimension, boolean securityAsPartner, boolean doNotAddParentIfNotPresent) throws HFMException
membersToBeValidatedByDimension - - map contains Dimension as key and list of members as valuesecurityAsPartner - - true if want to validate members against partner accountdoNotAddParentIfNotPresent - flag if true will not put default parent for entity if parent is not presentHFMExceptionpublic String getDefaultPOV() throws HFMException
HFMExceptionpublic List<String> getPeriodsInScenarioFrequency(String scenario) throws HFMException
scenario - scenario in which default frequency we want to get the list of periodsHFMExceptionpublic List<String> validateDefFrequencyPeriods(String scenario, List<String> periodsTobValidated) throws HFMException
scenario - The Scenario member to look up.periodsTobValidated - The list of periods which you want to validate.HFMExceptionpublic List<CellTextLabelInfo> getCellTextLabels() throws HFMException
HFMExceptionpublic boolean isOrgByPeriodApplication()
throws HFMException
HFMExceptionpublic boolean isPhaseSubmissionEnabledForApplication()
throws HFMException
HFMExceptionpublic List<String> getValidationAccounts() throws HFMException
HFMExceptionpublic Map<String,CustomTopMember> getTopCustomMembersForAccount(String accountMember) throws HFMException
accountMember - account for which custom top member to be retrievedHFMExceptionpublic List<Integer> getNumDecimalPlacesForAccounts(List<String> accountMembers) throws HFMException
accountMembers - list of account members to retrieve the number of decimal places forHFMExceptionpublic String getDefaultParent(String dimensionName, String memberName) throws HFMException
dimensionName - - A valid dimension NamememberName - - A valid member Name for which the default parent has to be retrievedHFMExceptionpublic List<String> getMemberIDs(String sessionID, String dimensionName, List<String> memberNames) throws HFMException
sessionID - - A valid application session idimensionName - - A valid dimension NamememberNames - - A valid list member NamesHFMExceptionpublic List<Member> findMembersByProperty(String dimensionName, Map<String,List<String>> propertyValue) throws HFMException
dimensionName - dimension namepropertyValue - - key is propertyName and value is list of property valuesHFMExceptionpublic List<SharedMember> enumSharedMembers(String sessionID, Dimension dimension) throws HFMException
sessionID - session IDdimension - dimensionHFMExceptionpublic List<Member> compareBaseMembers(String sessionID, Dimension dimension, Member fromParent, Member toParent) throws HFMException
sessionID - session iddimension - dimensionfromParent - fromParent membertoParent - toParent memberHFMExceptionpublic List<Member> enumDuplicateMembers(String sessionID, Dimension dimension, Member parent) throws HFMException
sessionID - session iddimension - dimensionparent - parent MemberHFMExceptionpublic List<FMDocument> getMemberUsage(String sessionID, Dimension dimension, Member member) throws HFMException
sessionID - sessionIDdimension - dimensionmember - memberHFMExceptionpublic String getMemberSelectorDef(String taskId) throws HFMException
taskId - taskIdHFMExceptionpublic Currency getApplicationCurrency() throws HFMException
HFMExceptionpublic List<Currency> getCurrencies(boolean ictOnly) throws HFMException
ictOnly - : Send true for ICT moduleHFMExceptionpublic Map<String,List<Member>> validateCustomMembers(Map<String,List<String>> customMembersToBeValidatedByAccount) throws HFMException
customMembersToBeValidatedByAccount - - map should contain only one Account(dimension) and can have one or more custom dimensions and their corresponding list of members.
key= Account dimension, Value= list of account member (only one account member in the list)
Key=Custom dimension, value=list of custom membersHFMExceptionpublic int getDefaultValueOfActiveStatusAccount()
throws HFMException
HFMExceptionpublic List<Member> findMembers(String searchName, MetadataFilter filter, MetadataViewOption viewOptions) throws HFMException
searchName - - search Stringfilter - - MetadataFilter filterOptionviewOptions - - MetadataViewFilter viewFilter optionsHFMExceptionpublic List<MemberDetail> getMemberInformation(List<String> memberNames, PREFERENCES preference) throws HFMException
memberNames - list of member namespreference - preference enum (name ,description and both)HFMExceptionpublic List<Currency> getCurrenciesForEntities(List<String> entities, List<String> parents, List<String> values) throws HFMException
entities - - list of child entitiesparents - - list of parents of entities ,it optional and applicable for refresh Currencies for SVPvalues - - list of values ,it optional and applicable for refresh Currencies for SVPHFMExceptionpublic List<String> getInvalidMembersInList(String dimensionName, String listName, List<String> membersToValidate) throws HFMException
dimensionName - The dimension that the member list is valid forlistName - The member list we are checking inmembersToValidate - A list of member names that we are validatingHFMExceptionpublic Map<String,Map<String,Integer>> getGenerations(Map<String,List<String>> membersByDimension) throws HFMException
membersByDimension - - list of members for each dimensionHFMExceptionpublic Map<String,List<MemberGenerationInfo>> getGenerationsEx(Map<String,List<String>> membersByDimension) throws HFMException
membersByDimension - - list of members for each dimensionHFMExceptionpublic List<String> getFrequencies() throws HFMException
HFMExceptionpublic List<Member> getNumberOfChildren(String dimensionName, List<Member> members) throws HFMException
dimensionName - dimension namemembers - list of members for which want to get the number of childrenHFMExceptionpublic List<Member> getMemberPropertiesUsingMembers(String dimensionName, List<Member> members, List<String> properties) throws HFMException
dimensionName - dimension namemembers - list of members for which want to get propertyproperties - //If properties is null or empty, member object will have all properties.HFMExceptionpublic List<DimensionProperty> getDimensionProperties(String dimensionName) throws HFMException
dimensionName - dimension nameHFMExceptionpublic Map<String,String> getApplicationAttributes(List<String> applicationAttributes) throws HFMException
applicationAttributes - the application attributes list as defined in the metadata xmlHFMExceptionpublic List<MemberWithInternalId> getPeriodMembersWithInternalIds() throws HFMException
HFMExceptionpublic String getBaseFrequency() throws HFMException
HFMExceptionpublic String getFrequency(String periodMember) throws HFMException
periodMember - member of period dimensionHFMExceptionpublic int getNumPeriodsInFrequency(String frequency) throws HFMException
frequency - as MTD, YTD..HFMExceptionpublic boolean isMemberADescendantOf(String dimension, String member, String parent) throws HFMException
dimension - name of the dimension.member - name of the member.parent - name of the parent.HFMExceptionpublic String getPeriodFromFrequency(String frequency, int periodNumInFrequency) throws HFMException
frequency - as MTD, YTD..periodNumInFrequency - starts from 0HFMExceptionCopyright 2007, 2026, Oracle. All rights reserved.