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 Details

    • SuppliedMetaStore

      public SuppliedMetaStore(Supplier<org.pentaho.metastore.api.IMetaStore> metaStoreSupplier)
  • Method Details

    • 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 interface org.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 interface org.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 interface org.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 interface org.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 interface org.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 interface org.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 interface org.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 interface org.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 interface org.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 interface org.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 interface org.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 interface org.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 interface org.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 interface org.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 interface org.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 interface org.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 interface org.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 interface org.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 interface org.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 interface org.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 interface org.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 interface org.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 interface org.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 interface org.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 interface org.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 interface org.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 interface org.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 interface org.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 interface org.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 interface org.pentaho.metastore.api.IMetaStore
    • getTwoWayPasswordEncoder

      public org.pentaho.metastore.api.security.ITwoWayPasswordEncoder getTwoWayPasswordEncoder()
      Specified by:
      getTwoWayPasswordEncoder in interface org.pentaho.metastore.api.IMetaStore