Class Tag
- java.lang.Object
-
- com.adobe.cq.testing.client.tagging.Tag
-
public class Tag extends Object
Created with IntelliJ IDEA. User: catalan Date: 5/30/12 Time: 3:37 PM
-
-
Field Summary
Fields Modifier and Type Field Description protected TagClientclientprotected Stringdescriptionprotected Stringidprotected com.fasterxml.jackson.databind.JsonNodejsonNodecontains the Json Structure as it is currently saved on the serverprotected StringparentTagIdprotected Stringpathstatic StringPRIMARY_TYPEstatic StringRESOURCE_TYPEstatic StringTAG_DEFAULT_NAMESPACE_PATHstatic StringTAG_PROP_DESCRIPTIONstatic StringTAG_PROP_TITLEstatic StringTAG_ROOT_PATHprotected Stringtitle
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TagaddTag(String id, String title, String description)StringgetDescription()StringgetId()com.fasterxml.jackson.databind.JsonNodegetJsonNode()com.fasterxml.jackson.databind.JsonNodegetJsonNode(String propName)Get the JsonNode of a property.StringgetNamespacePath()StringgetParentTagId()StringgetPath()StringgetTitle()StringmoveTo(Tag tag)
-
-
-
Field Detail
-
PRIMARY_TYPE
public static final String PRIMARY_TYPE
- See Also:
- Constant Field Values
-
RESOURCE_TYPE
public static final String RESOURCE_TYPE
- See Also:
- Constant Field Values
-
TAG_ROOT_PATH
public static final String TAG_ROOT_PATH
- See Also:
- Constant Field Values
-
TAG_DEFAULT_NAMESPACE_PATH
public static final String TAG_DEFAULT_NAMESPACE_PATH
- See Also:
- Constant Field Values
-
TAG_PROP_TITLE
public static final String TAG_PROP_TITLE
- See Also:
- Constant Field Values
-
TAG_PROP_DESCRIPTION
public static final String TAG_PROP_DESCRIPTION
- See Also:
- Constant Field Values
-
id
protected String id
-
title
protected String title
-
description
protected String description
-
parentTagId
protected String parentTagId
-
path
protected String path
-
client
protected TagClient client
-
jsonNode
protected com.fasterxml.jackson.databind.JsonNode jsonNode
contains the Json Structure as it is currently saved on the server
-
-
Method Detail
-
getParentTagId
public String getParentTagId()
-
moveTo
public String moveTo(Tag tag) throws org.apache.sling.testing.clients.ClientException
- Throws:
org.apache.sling.testing.clients.ClientException
-
getPath
public String getPath()
-
getNamespacePath
public String getNamespacePath()
-
getJsonNode
public com.fasterxml.jackson.databind.JsonNode getJsonNode() throws org.apache.sling.testing.clients.ClientException- Throws:
org.apache.sling.testing.clients.ClientException
-
getJsonNode
public com.fasterxml.jackson.databind.JsonNode getJsonNode(String propName)
Get the JsonNode of a property. The property can have multiple levels.- Parameters:
propName- the name of the property- Returns:
- the json node for the property
-
getId
public String getId()
-
getTitle
public String getTitle()
-
getDescription
public String getDescription()
-
-