|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface AliasMappingManager
Interface AliasMappingManager is used to manage the Global Alias Table.
Global Alias Table is for all Dashboards and all library components (LCs) related mapping operation, which can
be manipulated by Administrator only. The alias mappings in Global Alias Table can be
used by all LCs if the alias mappings are not defined in their Local Alias Table.
| Method Summary | |
|---|---|
java.util.Map<java.lang.String,java.util.List<FieldInfo>> |
getAllAlisasMappings()
Gets all alias mappings. |
java.util.List<java.lang.String> |
getAllKeys()
Gets all keys in the Global Alias Table. |
java.util.List<FieldInfo> |
getFieldsByKey(java.lang.String key)
Gets fields by key. |
java.util.Map<java.lang.String,java.util.List<FieldInfo>> |
parseAliasMapping(java.lang.String json)
Parses the alias mappings by a source JSON text string. |
FieldInfo |
parseFieldInfo(java.lang.String catalog,
java.lang.String dataSource,
java.lang.String query,
java.lang.String[] fieldDetails)
Parses the field information. |
void |
saveAliasMappings(java.util.Map<java.lang.String,java.util.List<FieldInfo>> map,
java.lang.String submitter)
Updates alias mappings. |
| Method Detail |
|---|
void saveAliasMappings(java.util.Map<java.lang.String,java.util.List<FieldInfo>> map,
java.lang.String submitter)
throws RptServerException
map - a Map object that contains pairs of Key and Fields.
Key is a string, neither null nor "", which can be defined by users but must
be unique within the same table. Fields is a List object,
which includes a list of FieldInfo, If a Field belongs to
a Key, it cannot belong to another Key in the same table. Two or more
same Fields cannot belong to the same Key.submitter - the user who requested the operation. Only administrator has permission to
perform it.
RptServerException - if an RptServerException occurs.
java.util.Map<java.lang.String,java.util.List<FieldInfo>> getAllAlisasMappings()
throws RptServerException
Map object that contains pairs of Key and Fields.
Key is a string, neither null nor "", which can be defined by users but must
be unique within the same table. Fields is a List object,
which includes a list of FieldInfo, If a Field belongs to
a Key, it cannot belong to another Key in the same table. Two or more
same Fields cannot belong to the same Key.
RptServerException - if an RptServerException occurs.
java.util.List<java.lang.String> getAllKeys()
throws RptServerException
List object that contains all keys in the Global Alias Table.
RptServerException - if an RptServerException occurs.
java.util.List<FieldInfo> getFieldsByKey(java.lang.String key)
throws RptServerException
key - the specified key name.
List object that includes a list of FieldInfo, which the
specified key maps.
RptServerException - if an RptServerException occurs.
FieldInfo parseFieldInfo(java.lang.String catalog,
java.lang.String dataSource,
java.lang.String query,
java.lang.String[] fieldDetails)
throws RptServerException
catalog - the catalog resource path in the component library.dataSource - the Data Source name.query - the Query name.fieldDetails - the field detailed path information (excluding catalog, data source, query).
FieldInfo
RptServerException - if an RptServerException occurs.
java.util.Map<java.lang.String,java.util.List<FieldInfo>> parseAliasMapping(java.lang.String json)
throws RptServerException
json - a source JSON text string.
Map object that contains pairs of Key and Fields.
Key is a string, neither null nor "", which can be defined by users but must
be unique within the same table. Fields is a List object,
which includes a list of FieldInfo, If a Field belongs to
a Key, it cannot belong to another Key in the same table. Two or more
same Fields cannot belong to the same Key.
RptServerException - if an RptServerException occurs.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||