ASGetMultipleValues
Returns lists of values for specified attributes for assets that match criteria included in the
SEARCHSTATEparameter.Syntax
ASGetMultipleValues(java.lang.String authusername, java.lang.String authpassword, com.FatWire.IList LIST, java.lang.String BYASSET, java.lang.String PREFIX, java.lang.String ASSETTYPES, com.FatWire.IList ASSETTYPESLIST, com.FatWire.Searchstate SEARCHSTATE, java.lang.String LOCALE (deprecated), com.FatWire.IList ASSETS)Parameters
authusername (required)- (String) Name of the user to log in, as registered in Sites .
authpassword(required)- (String) Password for the associated user name.
LIST(required)- (
IListobject) Input parameter. Name of the list that determines sort order. This is an object that describes how the returned assets are to be sorted.
- The list has three columns:
attributetypename
attributename- Either name of attribute, sort by, or one of the following special values:_ASSETTYPE_(order by asset type) or_RATING_(order by asset rating; for use with the Sites-Engage product only)
direction- Can be eitherascendingordescending
BYASSET(required)- (Boolean) Either
TRUEorFALSE.The value indicates whether to group and create lists for each attribute for each individual asset in the assetset (TRUE), or to group all the attribute values for all assets together into one list per attribute (FALSE).
PREFIX(required)- (String) String to prefix to the named of each list returned.
ASSETTYPES (optional)- (String) Input parameter. Name of a list of asset types to include in building the asset count. Comma separated list of flex asset types to match. If null, then all assets in the system are considered. Specify either
ASSETTYPESLISTandASSETSorSEARCHSTATEandASSETTYPES, but not both.
ASSETTYPESLIST (optional)- (
IListobject) Input list containing oneassettypecolumn that includes values that restrict the count.
- Specify either
ASSETTYPESLISTandASSETSorSEARCHSTATEandASSETTYPES, but not both. If you specifyASSETTYPESLIST,ASSETSis required. If both parameters are supplied,ASSETTYPESLISTis used by default.
SEARCHSTATE (optional)- (
Searchstateobject) Input parameter.Searchstateobject that contains the criteria to match. TheSearchstateobject describes the search constraints, if any.
- Specify either
SEARCHSTATEandASSETTYPESorASSETTYPESLISTandASSET, but not both. If both parameters are supplied,ASSETTYPESLISTandASSETSis used by default.
LOCALE(deprecated)- (String) Language and country specification associated with the asset. Locale ensures that information and figures on a page are presented to users according to accepted conventions in their country. A locale specification comprises two-character language and country codes separated by an underscore character and enclosed in quotes. For example, for English speakers in the United States:
"en_us"
ASSETS (optional)- (IList) Name of a list of assets passed to Sites that form the asset set. The list of assets is an IList with two columns (
assetidandassettype). This operation is required if you are supplying a list of assets to build the asset set instead of a SearchState. Specify eitherASSETTYPELISTandASSETSorASSETTYPESandSEARCHSTATE, but not both. If both parameters are supplied,ASSETSis used by default.
Returns
Lists of attribute values in a column named
value.Example
The following code creates a SearchState, passes the SearchState and list objects to the
GetMultipleValuesoperation, and returns names and values of the attributes:AssetsetService service = new AssetsetServiceLocator(); AssetsetPortType port = service.getAssetsetPort(); IList inList = new IList(); String colName[] = {"attributename", "attributetypename", "direction" }; inList.setColName(colName); String item1[] = {"Name", "PAttributes", "ascending"}; String item2[] = {"FundType", "PAttributes", "ascending"}; StringRowsType items[] = new StringRowsType[2]; items[0] = new StringRowsType(); items[1] = new StringRowsType(); items[0].setItem(item1); items[1].setItem(item2); inList.setStringRow(items); Searchstate ss = new Searchstate(); MultipleIList outList = port.ASGetMultipleValues("user_author", "demo", inList, "true", "th", "Products", null, ss, null, null);
See Also
Home > Contents > Index > ![]()
Oracle Web Services Reference
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.