|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.eng.spagobi.tools.importexport.UserAssociationsKeeper
public class UserAssociationsKeeper
Implements methods for recording the association of roles, engines, and data sources setted by the user. The association recorder can be exported into xml format
Constructor Summary | |
---|---|
UserAssociationsKeeper()
Defines the internal structure for recording associations. |
Method Summary | |
---|---|
void |
fillFromXml(java.lang.String xmlStr)
Fill the associations reading an xml string. |
java.lang.String |
getAssociatedDataSource(java.lang.String expDataSourceName)
Gets the associated data source. |
java.lang.String |
getAssociatedEngine(java.lang.String expEngineLabel)
Gets the associated engine. |
java.lang.String |
getAssociatedRole(java.lang.String expRoleName)
Gets the associated role. |
it.eng.spago.base.SourceBean |
getDatasourceAssSB()
|
java.util.HashMap<java.lang.Integer,java.lang.Integer> |
getDsExportedToUser()
|
java.util.HashMap<java.lang.String,java.lang.String> |
getDsExportedToUserLabel()
|
boolean |
isDataSourceAssociated(java.lang.Integer idExport)
|
void |
recordDataSourceAssociation(java.lang.Integer idExport,
java.lang.Integer idAssociated)
|
void |
recordDataSourceAssociation(java.lang.String exportedDataSourceName,
java.lang.String existingDataSourceName)
Records an association between an exported data source and an existing one. |
void |
recordEngineAssociation(java.lang.String exportedEngineLabel,
java.lang.String existingEngineLabel)
Records an association between an exported engine and an existing one. |
void |
recordRoleAssociation(java.lang.String exportedRoleName,
java.lang.String existingRolename)
Records an association between an exported role and an existing one. |
void |
setDatasourceAssSB(it.eng.spago.base.SourceBean datasourceAssSB)
|
void |
setDsExportedToUser(java.util.HashMap<java.lang.Integer,java.lang.Integer> dsExportedToUser)
|
void |
setDsExportedToUserLabel(java.util.HashMap<java.lang.String,java.lang.String> dsExportedToUserLabel)
|
java.lang.String |
toXml()
Exports the associations as xml. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UserAssociationsKeeper()
Method Detail |
---|
public void recordRoleAssociation(java.lang.String exportedRoleName, java.lang.String existingRolename)
exportedRoleName
- the name of the exported roleexistingRolename
- the name of the existing rolepublic void recordEngineAssociation(java.lang.String exportedEngineLabel, java.lang.String existingEngineLabel)
exportedEngineLabel
- the label of the exported engineexistingEngineLabel
- the label of the existing enginepublic void recordDataSourceAssociation(java.lang.Integer idExport, java.lang.Integer idAssociated)
public boolean isDataSourceAssociated(java.lang.Integer idExport)
public void recordDataSourceAssociation(java.lang.String exportedDataSourceName, java.lang.String existingDataSourceName)
exportedDataSourceName
- the name of the exported data sourceexistingDataSourceName
- the name of the existing data sourcepublic java.lang.String toXml()
public void fillFromXml(java.lang.String xmlStr)
xmlStr
- the xml string which defines the associationspublic java.lang.String getAssociatedRole(java.lang.String expRoleName)
expRoleName
- the exp role name
public java.lang.String getAssociatedEngine(java.lang.String expEngineLabel)
expEngineLabel
- the exp engine label
public java.lang.String getAssociatedDataSource(java.lang.String expDataSourceName)
expDataSourceName
- the exp data source name
public java.util.HashMap<java.lang.Integer,java.lang.Integer> getDsExportedToUser()
public void setDsExportedToUser(java.util.HashMap<java.lang.Integer,java.lang.Integer> dsExportedToUser)
public java.util.HashMap<java.lang.String,java.lang.String> getDsExportedToUserLabel()
public void setDsExportedToUserLabel(java.util.HashMap<java.lang.String,java.lang.String> dsExportedToUserLabel)
public it.eng.spago.base.SourceBean getDatasourceAssSB()
public void setDatasourceAssSB(it.eng.spago.base.SourceBean datasourceAssSB)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |