Class PartialMdExportToken

java.lang.Object
com.gooddata.sdk.model.md.maintenance.PartialMdExportToken

public class PartialMdExportToken
extends java.lang.Object
Partial metadata export token. Serves as configuration structure for import. Serialization only.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static java.lang.String URI  
  • Constructor Summary

    Constructors 
    Constructor Description
    PartialMdExportToken​(java.lang.String token)
    Creates new PartialMdExportToken.
    PartialMdExportToken​(java.lang.String token, boolean importAttributeProperties)
    Creates new PartialMdExportToken.
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getToken()  
    boolean isImportAttributeProperties()  
    boolean isOverwriteNewer()  
    boolean isUpdateLDMObjects()  
    void setImportAttributeProperties​(boolean importAttributeProperties)
    Sets the flag importAttributeProperties.
    void setOverwriteNewer​(boolean overwriteNewer)
    Sets the flag overwriteNewer.
    void setUpdateLDMObjects​(boolean updateLDMObjects)
    Sets the flag updateLDMObjects.
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • PartialMdExportToken

      public PartialMdExportToken​(java.lang.String token)
      Creates new PartialMdExportToken.
      Sets default values to properties:
      • importAttributeProperties - default false
      • overwriteNewer - default true
      • updateLDMObjects - default false
      Parameters:
      token - token identifying metadata partially exported from another project
    • PartialMdExportToken

      public PartialMdExportToken​(java.lang.String token, boolean importAttributeProperties)
      Creates new PartialMdExportToken. For internal purposes only.
      Sets default values to properties:
      • overwriteNewer - default true
      • updateLDMObjects - default false
      Parameters:
      token - token identifying metadata partially exported from another project
      importAttributeProperties - see setImportAttributeProperties(boolean)
  • Method Details

    • getToken

      public java.lang.String getToken()
    • isOverwriteNewer

      public boolean isOverwriteNewer()
    • isUpdateLDMObjects

      public boolean isUpdateLDMObjects()
    • isImportAttributeProperties

      public boolean isImportAttributeProperties()
    • setOverwriteNewer

      public void setOverwriteNewer​(boolean overwriteNewer)
      Sets the flag overwriteNewer. If true, UDM/ADM objects are overwritten without checking modification time.
      Parameters:
      overwriteNewer - flag value to be set
    • setUpdateLDMObjects

      public void setUpdateLDMObjects​(boolean updateLDMObjects)
      Sets the flag updateLDMObjects. If true, related LDM objects name, description and tags are overwritten
      Parameters:
      updateLDMObjects - flag value to be set
    • setImportAttributeProperties

      public void setImportAttributeProperties​(boolean importAttributeProperties)
      Sets the flag importAttributeProperties. If true, following attribute properties are cloned:
      • for attribute - import drillDownStepAttributeDF setting
      • for attributeDisplayForm - import type setting
      It also implies 'updateLDMObjects = true' for all mentioned types.
      It will not reliably work (can fail) for exports without 'exportAttributeProperties = true'.
      Parameters:
      importAttributeProperties - flag value to be set
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object