Package org.pentaho.di.repository
Class BaseRepositoryMeta
- java.lang.Object
-
- org.pentaho.di.repository.BaseRepositoryMeta
-
- Direct Known Subclasses:
KettleDatabaseRepositoryMeta,KettleFileRepositoryMeta
public class BaseRepositoryMeta extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringdescriptionstatic StringDESCRIPTIONstatic StringDISPLAY_NAMEprotected Stringidstatic StringIDstatic StringIS_DEFAULTprotected BooleanisDefaultprotected Stringname
-
Constructor Summary
Constructors Constructor Description BaseRepositoryMeta(String id)BaseRepositoryMeta(String id, String name, String description)BaseRepositoryMeta(String id, String name, String description, boolean isDefault)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()StringgetDialogClassName()This returns the expected name for the dialog that edits this repository metadata object The expected name is in the org.pentaho.di.ui tree and has a class name that is the name of the job entry with 'Dialog' added to the end.StringgetId()StringgetName()StringgetRevisionBrowserDialogClassName()This returns the expected name for the dialog that edits this repository metadata object The expected name is in the org.pentaho.di.ui tree and has a class name that is the name of the job entry with 'Dialog' added to the end.StringgetXML()BooleanisDefault()voidloadXML(Node repnode, List<org.pentaho.di.core.database.DatabaseMeta> databases)voidpopulate(Map<String,Object> properties, RepositoriesMeta repositoriesMeta)voidsetDefault(Boolean isDefault)voidsetDescription(String description)voidsetId(String id)voidsetName(String name)org.json.simple.JSONObjecttoJSONObject()
-
-
-
Field Detail
-
ID
public static final String ID
- See Also:
- Constant Field Values
-
DISPLAY_NAME
public static final String DISPLAY_NAME
- See Also:
- Constant Field Values
-
DESCRIPTION
public static final String DESCRIPTION
- See Also:
- Constant Field Values
-
IS_DEFAULT
public static final String IS_DEFAULT
- See Also:
- Constant Field Values
-
id
protected String id
-
name
protected String name
-
description
protected String description
-
isDefault
protected Boolean isDefault
-
-
Method Detail
-
getDialogClassName
public String getDialogClassName()
This returns the expected name for the dialog that edits this repository metadata object The expected name is in the org.pentaho.di.ui tree and has a class name that is the name of the job entry with 'Dialog' added to the end. e.g. if the repository meta class is org.pentaho.di.repository.kdr.KettleDatabaseRepositoryMeta the dialog would be org.pentaho.di.ui.repository.kdr.KettleDatabaseRepositoryDialog If the dialog class does not match this pattern, the RepositoryMeta class should override this method and return the appropriate class name- Returns:
- full class name of the dialog
-
getRevisionBrowserDialogClassName
public String getRevisionBrowserDialogClassName()
This returns the expected name for the dialog that edits this repository metadata object The expected name is in the org.pentaho.di.ui tree and has a class name that is the name of the job entry with 'Dialog' added to the end. e.g. if the repository meta class is org.pentaho.di.pur.PurRepositoryMeta the dialog would be org.pentaho.di.ui.repository.pur.PurRepositoryRevisionBrowserDialog If the dialog class does not match this pattern, the RepositoryMeta class should override this method and return the appropriate class name- Returns:
- full class name of the dialog
-
loadXML
public void loadXML(Node repnode, List<org.pentaho.di.core.database.DatabaseMeta> databases) throws org.pentaho.di.core.exception.KettleException
- Throws:
org.pentaho.di.core.exception.KettleException
-
getXML
public String getXML()
-
getId
public String getId()
-
setId
public void setId(String id)
-
getName
public String getName()
-
setName
public void setName(String name)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
isDefault
public Boolean isDefault()
-
setDefault
public void setDefault(Boolean isDefault)
-
toJSONObject
public org.json.simple.JSONObject toJSONObject()
-
populate
public void populate(Map<String,Object> properties, RepositoriesMeta repositoriesMeta)
-
-