Package org.pentaho.di.metastore
Class SuppliedMetaStore
java.lang.Object
org.pentaho.di.metastore.SuppliedMetaStore
- All Implemented Interfaces:
org.pentaho.metastore.api.IMetaStore
-
Constructor Summary
ConstructorsConstructorDescriptionSuppliedMetaStore(Supplier<org.pentaho.metastore.api.IMetaStore> metaStoreSupplier) -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateElement(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType, org.pentaho.metastore.api.IMetaStoreElement element) voidcreateElementType(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType) voidcreateNamespace(String namespace) voiddeleteElement(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType, String elementId) voiddeleteElementType(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType) voiddeleteNamespace(String namespace) org.pentaho.metastore.api.IMetaStoreReturns the current metastore as supplied by the Supplier.org.pentaho.metastore.api.IMetaStoreElementgetElement(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType, String elementId) org.pentaho.metastore.api.IMetaStoreElementgetElementByName(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType, String name) org.pentaho.metastore.api.IMetaStoreElementgetElementByName(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType, String name, boolean lock) 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.IMetaStoreElementTypegetElementType(String namespace, String elementTypeId) org.pentaho.metastore.api.IMetaStoreElementTypegetElementTypeByName(String namespace, String elementTypeName) org.pentaho.metastore.api.IMetaStoreElementTypegetElementTypeByName(String namespace, String elementTypeName, boolean lock) getElementTypeIds(String namespace) List<org.pentaho.metastore.api.IMetaStoreElementType>getElementTypes(String namespace) getName()org.pentaho.metastore.api.security.ITwoWayPasswordEncoderbooleannamespaceExists(String namespace) org.pentaho.metastore.api.IMetaStoreAttributenewAttribute(String id, Object value) org.pentaho.metastore.api.IMetaStoreElementorg.pentaho.metastore.api.IMetaStoreElementnewElement(org.pentaho.metastore.api.IMetaStoreElementType elementType, String id, Object value) org.pentaho.metastore.api.security.IMetaStoreElementOwnernewElementOwner(String name, org.pentaho.metastore.api.security.MetaStoreElementOwnerType ownerType) org.pentaho.metastore.api.IMetaStoreElementTypenewElementType(String namespace) voidsetTwoWayPasswordEncoder(org.pentaho.metastore.api.security.ITwoWayPasswordEncoder encoder) voidupdateElement(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType, String elementId, org.pentaho.metastore.api.IMetaStoreElement element) voidupdateElementType(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType)
-
Constructor Details
-
SuppliedMetaStore
-
-
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
- Specified by:
getNamespacesin 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:
createNamespacein interfaceorg.pentaho.metastore.api.IMetaStore- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreExceptionorg.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:
deleteNamespacein interfaceorg.pentaho.metastore.api.IMetaStore- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreExceptionorg.pentaho.metastore.api.exceptions.MetaStoreDependenciesExistsException
-
namespaceExists
public boolean namespaceExists(String namespace) throws org.pentaho.metastore.api.exceptions.MetaStoreException - Specified by:
namespaceExistsin 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:
getElementTypesin 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:
getElementTypeIdsin 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:
getElementTypein 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:
getElementTypeByNamein 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:
getElementTypeByNamein 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:
createElementTypein interfaceorg.pentaho.metastore.api.IMetaStore- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreExceptionorg.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:
updateElementTypein 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:
deleteElementTypein interfaceorg.pentaho.metastore.api.IMetaStore- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreExceptionorg.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:
getElementsin 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:
getElementsin 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:
getElementsin 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:
getElementIdsin 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:
getElementin 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:
getElementByNamein 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:
getElementByNamein 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:
createElementin interfaceorg.pentaho.metastore.api.IMetaStore- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreExceptionorg.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:
deleteElementin 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:
updateElementin 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:
newElementTypein 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:
newElementin 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:
newElementin 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:
newAttributein 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:
newElementOwnerin interfaceorg.pentaho.metastore.api.IMetaStore- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
-
getName
- Specified by:
getNamein interfaceorg.pentaho.metastore.api.IMetaStore- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
-
getDescription
- Specified by:
getDescriptionin 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:
setTwoWayPasswordEncoderin interfaceorg.pentaho.metastore.api.IMetaStore
-
getTwoWayPasswordEncoder
public org.pentaho.metastore.api.security.ITwoWayPasswordEncoder getTwoWayPasswordEncoder()- Specified by:
getTwoWayPasswordEncoderin interfaceorg.pentaho.metastore.api.IMetaStore
-