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.StringURI -
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.StringgetToken()booleanisImportAttributeProperties()booleanisOverwriteNewer()booleanisUpdateLDMObjects()voidsetImportAttributeProperties(boolean importAttributeProperties)Sets the flagimportAttributeProperties.voidsetOverwriteNewer(boolean overwriteNewer)Sets the flagoverwriteNewer.voidsetUpdateLDMObjects(boolean updateLDMObjects)Sets the flagupdateLDMObjects.java.lang.StringtoString()
-
Field Details
-
URI
public static final java.lang.String URI- See Also:
- Constant Field Values
-
-
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 projectimportAttributeProperties- seesetImportAttributeProperties(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 flagoverwriteNewer. Iftrue, UDM/ADM objects are overwritten without checking modification time.- Parameters:
overwriteNewer- flag value to be set
-
setUpdateLDMObjects
public void setUpdateLDMObjects(boolean updateLDMObjects)Sets the flagupdateLDMObjects. Iftrue, related LDM objects name, description and tags are overwritten- Parameters:
updateLDMObjects- flag value to be set
-
setImportAttributeProperties
public void setImportAttributeProperties(boolean importAttributeProperties)Sets the flagimportAttributeProperties. Iftrue, following attribute properties are cloned:- for attribute - import drillDownStepAttributeDF setting
- for attributeDisplayForm - import type setting
'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:
toStringin classjava.lang.Object
-