Package org.pentaho.di.metastore
Class SuppliedMetaStore
- java.lang.Object
-
- org.pentaho.di.metastore.SuppliedMetaStore
-
- All Implemented Interfaces:
org.pentaho.metastore.api.IMetaStore
public class SuppliedMetaStore extends Object implements org.pentaho.metastore.api.IMetaStore
-
-
Constructor Summary
Constructors Constructor Description SuppliedMetaStore(Supplier<org.pentaho.metastore.api.IMetaStore> metaStoreSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createElement(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType, org.pentaho.metastore.api.IMetaStoreElement element)
void
createElementType(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType)
void
createNamespace(String namespace)
void
deleteElement(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType, String elementId)
void
deleteElementType(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType)
void
deleteNamespace(String namespace)
org.pentaho.metastore.api.IMetaStore
getCurrentMetaStore()
Returns the current metastore as supplied by the Supplier.String
getDescription()
org.pentaho.metastore.api.IMetaStoreElement
getElement(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType, String elementId)
org.pentaho.metastore.api.IMetaStoreElement
getElementByName(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType, String name)
org.pentaho.metastore.api.IMetaStoreElement
getElementByName(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType, String name, boolean lock)
List<String>
getElementIds(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType)
List<org.pentaho.metastore.api.IMetaStoreElement>
getElements(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType)
List<org.pentaho.metastore.api.IMetaStoreElement>
getElements(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType, boolean lock)
List<org.pentaho.metastore.api.IMetaStoreElement>
getElements(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType, boolean lock, List<org.pentaho.metastore.api.exceptions.MetaStoreException> exceptionList)
org.pentaho.metastore.api.IMetaStoreElementType
getElementType(String namespace, String elementTypeId)
org.pentaho.metastore.api.IMetaStoreElementType
getElementTypeByName(String namespace, String elementTypeName)
org.pentaho.metastore.api.IMetaStoreElementType
getElementTypeByName(String namespace, String elementTypeName, boolean lock)
List<String>
getElementTypeIds(String namespace)
List<org.pentaho.metastore.api.IMetaStoreElementType>
getElementTypes(String namespace)
String
getName()
List<String>
getNamespaces()
org.pentaho.metastore.api.security.ITwoWayPasswordEncoder
getTwoWayPasswordEncoder()
boolean
namespaceExists(String namespace)
org.pentaho.metastore.api.IMetaStoreAttribute
newAttribute(String id, Object value)
org.pentaho.metastore.api.IMetaStoreElement
newElement()
org.pentaho.metastore.api.IMetaStoreElement
newElement(org.pentaho.metastore.api.IMetaStoreElementType elementType, String id, Object value)
org.pentaho.metastore.api.security.IMetaStoreElementOwner
newElementOwner(String name, org.pentaho.metastore.api.security.MetaStoreElementOwnerType ownerType)
org.pentaho.metastore.api.IMetaStoreElementType
newElementType(String namespace)
void
setTwoWayPasswordEncoder(org.pentaho.metastore.api.security.ITwoWayPasswordEncoder encoder)
void
updateElement(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType, String elementId, org.pentaho.metastore.api.IMetaStoreElement element)
void
updateElementType(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType)
-
-
-
Constructor Detail
-
SuppliedMetaStore
public SuppliedMetaStore(Supplier<org.pentaho.metastore.api.IMetaStore> metaStoreSupplier)
-
-
Method Detail
-
getCurrentMetaStore
public org.pentaho.metastore.api.IMetaStore getCurrentMetaStore()
Returns the current metastore as supplied by the Supplier. The object returned by this method should not be held on to permanently.- Returns:
- IMetaStore The current metastore.
-
getNamespaces
public List<String> getNamespaces() throws org.pentaho.metastore.api.exceptions.MetaStoreException
- Specified by:
getNamespaces
in interfaceorg.pentaho.metastore.api.IMetaStore
- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
-
createNamespace
public void createNamespace(String namespace) throws org.pentaho.metastore.api.exceptions.MetaStoreException, org.pentaho.metastore.api.exceptions.MetaStoreNamespaceExistsException
- Specified by:
createNamespace
in interfaceorg.pentaho.metastore.api.IMetaStore
- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
org.pentaho.metastore.api.exceptions.MetaStoreNamespaceExistsException
-
deleteNamespace
public void deleteNamespace(String namespace) throws org.pentaho.metastore.api.exceptions.MetaStoreException, org.pentaho.metastore.api.exceptions.MetaStoreDependenciesExistsException
- Specified by:
deleteNamespace
in interfaceorg.pentaho.metastore.api.IMetaStore
- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
org.pentaho.metastore.api.exceptions.MetaStoreDependenciesExistsException
-
namespaceExists
public boolean namespaceExists(String namespace) throws org.pentaho.metastore.api.exceptions.MetaStoreException
- Specified by:
namespaceExists
in interfaceorg.pentaho.metastore.api.IMetaStore
- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
-
getElementTypes
public List<org.pentaho.metastore.api.IMetaStoreElementType> getElementTypes(String namespace) throws org.pentaho.metastore.api.exceptions.MetaStoreException
- Specified by:
getElementTypes
in interfaceorg.pentaho.metastore.api.IMetaStore
- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
-
getElementTypeIds
public List<String> getElementTypeIds(String namespace) throws org.pentaho.metastore.api.exceptions.MetaStoreException
- Specified by:
getElementTypeIds
in interfaceorg.pentaho.metastore.api.IMetaStore
- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
-
getElementType
public org.pentaho.metastore.api.IMetaStoreElementType getElementType(String namespace, String elementTypeId) throws org.pentaho.metastore.api.exceptions.MetaStoreException
- Specified by:
getElementType
in interfaceorg.pentaho.metastore.api.IMetaStore
- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
-
getElementTypeByName
public org.pentaho.metastore.api.IMetaStoreElementType getElementTypeByName(String namespace, String elementTypeName) throws org.pentaho.metastore.api.exceptions.MetaStoreException
- Specified by:
getElementTypeByName
in interfaceorg.pentaho.metastore.api.IMetaStore
- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
-
getElementTypeByName
public org.pentaho.metastore.api.IMetaStoreElementType getElementTypeByName(String namespace, String elementTypeName, boolean lock) throws org.pentaho.metastore.api.exceptions.MetaStoreException
- Specified by:
getElementTypeByName
in interfaceorg.pentaho.metastore.api.IMetaStore
- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
-
createElementType
public void createElementType(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType) throws org.pentaho.metastore.api.exceptions.MetaStoreException, org.pentaho.metastore.api.exceptions.MetaStoreElementTypeExistsException
- Specified by:
createElementType
in interfaceorg.pentaho.metastore.api.IMetaStore
- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
org.pentaho.metastore.api.exceptions.MetaStoreElementTypeExistsException
-
updateElementType
public void updateElementType(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType) throws org.pentaho.metastore.api.exceptions.MetaStoreException
- Specified by:
updateElementType
in interfaceorg.pentaho.metastore.api.IMetaStore
- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
-
deleteElementType
public void deleteElementType(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType) throws org.pentaho.metastore.api.exceptions.MetaStoreException, org.pentaho.metastore.api.exceptions.MetaStoreDependenciesExistsException
- Specified by:
deleteElementType
in interfaceorg.pentaho.metastore.api.IMetaStore
- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
org.pentaho.metastore.api.exceptions.MetaStoreDependenciesExistsException
-
getElements
public List<org.pentaho.metastore.api.IMetaStoreElement> getElements(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType) throws org.pentaho.metastore.api.exceptions.MetaStoreException
- Specified by:
getElements
in interfaceorg.pentaho.metastore.api.IMetaStore
- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
-
getElements
public List<org.pentaho.metastore.api.IMetaStoreElement> getElements(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType, boolean lock) throws org.pentaho.metastore.api.exceptions.MetaStoreException
- Specified by:
getElements
in interfaceorg.pentaho.metastore.api.IMetaStore
- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
-
getElements
public List<org.pentaho.metastore.api.IMetaStoreElement> getElements(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType, boolean lock, List<org.pentaho.metastore.api.exceptions.MetaStoreException> exceptionList) throws org.pentaho.metastore.api.exceptions.MetaStoreException
- Specified by:
getElements
in interfaceorg.pentaho.metastore.api.IMetaStore
- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
-
getElementIds
public List<String> getElementIds(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType) throws org.pentaho.metastore.api.exceptions.MetaStoreException
- Specified by:
getElementIds
in interfaceorg.pentaho.metastore.api.IMetaStore
- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
-
getElement
public org.pentaho.metastore.api.IMetaStoreElement getElement(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType, String elementId) throws org.pentaho.metastore.api.exceptions.MetaStoreException
- Specified by:
getElement
in interfaceorg.pentaho.metastore.api.IMetaStore
- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
-
getElementByName
public org.pentaho.metastore.api.IMetaStoreElement getElementByName(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType, String name) throws org.pentaho.metastore.api.exceptions.MetaStoreException
- Specified by:
getElementByName
in interfaceorg.pentaho.metastore.api.IMetaStore
- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
-
getElementByName
public org.pentaho.metastore.api.IMetaStoreElement getElementByName(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType, String name, boolean lock) throws org.pentaho.metastore.api.exceptions.MetaStoreException
- Specified by:
getElementByName
in interfaceorg.pentaho.metastore.api.IMetaStore
- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
-
createElement
public void createElement(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType, org.pentaho.metastore.api.IMetaStoreElement element) throws org.pentaho.metastore.api.exceptions.MetaStoreException, org.pentaho.metastore.api.exceptions.MetaStoreElementExistException
- Specified by:
createElement
in interfaceorg.pentaho.metastore.api.IMetaStore
- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
org.pentaho.metastore.api.exceptions.MetaStoreElementExistException
-
deleteElement
public void deleteElement(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType, String elementId) throws org.pentaho.metastore.api.exceptions.MetaStoreException
- Specified by:
deleteElement
in interfaceorg.pentaho.metastore.api.IMetaStore
- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
-
updateElement
public void updateElement(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType, String elementId, org.pentaho.metastore.api.IMetaStoreElement element) throws org.pentaho.metastore.api.exceptions.MetaStoreException
- Specified by:
updateElement
in interfaceorg.pentaho.metastore.api.IMetaStore
- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
-
newElementType
public org.pentaho.metastore.api.IMetaStoreElementType newElementType(String namespace) throws org.pentaho.metastore.api.exceptions.MetaStoreException
- Specified by:
newElementType
in interfaceorg.pentaho.metastore.api.IMetaStore
- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
-
newElement
public org.pentaho.metastore.api.IMetaStoreElement newElement() throws org.pentaho.metastore.api.exceptions.MetaStoreException
- Specified by:
newElement
in interfaceorg.pentaho.metastore.api.IMetaStore
- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
-
newElement
public org.pentaho.metastore.api.IMetaStoreElement newElement(org.pentaho.metastore.api.IMetaStoreElementType elementType, String id, Object value) throws org.pentaho.metastore.api.exceptions.MetaStoreException
- Specified by:
newElement
in interfaceorg.pentaho.metastore.api.IMetaStore
- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
-
newAttribute
public org.pentaho.metastore.api.IMetaStoreAttribute newAttribute(String id, Object value) throws org.pentaho.metastore.api.exceptions.MetaStoreException
- Specified by:
newAttribute
in interfaceorg.pentaho.metastore.api.IMetaStore
- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
-
newElementOwner
public org.pentaho.metastore.api.security.IMetaStoreElementOwner newElementOwner(String name, org.pentaho.metastore.api.security.MetaStoreElementOwnerType ownerType) throws org.pentaho.metastore.api.exceptions.MetaStoreException
- Specified by:
newElementOwner
in interfaceorg.pentaho.metastore.api.IMetaStore
- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
-
getName
public String getName() throws org.pentaho.metastore.api.exceptions.MetaStoreException
- Specified by:
getName
in interfaceorg.pentaho.metastore.api.IMetaStore
- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
-
getDescription
public String getDescription() throws org.pentaho.metastore.api.exceptions.MetaStoreException
- Specified by:
getDescription
in interfaceorg.pentaho.metastore.api.IMetaStore
- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
-
setTwoWayPasswordEncoder
public void setTwoWayPasswordEncoder(org.pentaho.metastore.api.security.ITwoWayPasswordEncoder encoder)
- Specified by:
setTwoWayPasswordEncoder
in interfaceorg.pentaho.metastore.api.IMetaStore
-
getTwoWayPasswordEncoder
public org.pentaho.metastore.api.security.ITwoWayPasswordEncoder getTwoWayPasswordEncoder()
- Specified by:
getTwoWayPasswordEncoder
in interfaceorg.pentaho.metastore.api.IMetaStore
-
-