Added more verbose deprecation messages
@@ -48,6 +48,7 @@ public @interface Dialog {
/**
* When set to non-blank, maps to the 'jcr:description' attribute of the component's root node
* @return String value
+ * @deprecated Use {@link Component#description()} to set this value
*/
@PropertyRendering(
name = "jcr:description",
@@ -59,6 +60,7 @@ public @interface Dialog {
/**
* When set to non-blank, maps to the 'cq:cellName' attribute of the component's root node
* @return String value
+ * @deprecated Use {@link Component#cellName()} to set this value
*/
@PropertyRendering(
name = "cq:cellName",
@@ -70,6 +72,7 @@ public @interface Dialog {
/**
* When set to non-blank, maps to the 'componentGroup' attribute of the component root node
* @return String value
+ * @deprecated Use {@link Component#componentGroup()} to set this value
*/
@PropertyRendering(scope = Scope.COMPONENT)
@Deprecated
@@ -78,6 +81,7 @@ public @interface Dialog {
/**
* Maps to the 'dialogPath' attribute of the component root node. Must represent a valid JCR path
* @return String value
+ * @deprecated Use {@link Component#dialogPath()} to set this value
*/
@PropertyRendering(scope = Scope.COMPONENT)
@ValueRestriction(ValueRestrictions.JCR_PATH)
@@ -87,6 +91,7 @@ public @interface Dialog {
/**
* When set to true, renders as the 'cq:noDecoration' attribute of the component root node with `true` value
* @return True or false
+ * @deprecated Use {@link Component#noDecoration()} to set this value
*/
@PropertyRendering(
name = "cq:noDecoration",
@@ -99,6 +104,7 @@ public @interface Dialog {
/**
* When set to non-blank, renders as the 'sling:resourceSuperType' attribute of the component root node
* @return String value
+ * @deprecated Use {@link Component#resourceSuperType()} to set this value
*/
@PropertyRendering(
name = "sling:resourceSuperType",
@@ -110,6 +116,7 @@ public @interface Dialog {
/**
* Maps to the 'cq:templatePath' attribute of the component root node. Must represent a valid JCR path
* @return String value
+ * @deprecated Use {@link Component#templatePath()} to set this value
*/
@PropertyRendering(
name = "cq:templatePath",
@@ -145,7 +152,7 @@ public @interface Dialog {
/**
* When set to true, renders as the `disableTargeting` attribute of the component root node with `true` value
* @return True or false
- * @deprecated Use {@link Component} to set this value
+ * @deprecated Use {@link Component#disableTargeting()} to set this value
*/
@PropertyRendering(
scope = Scope.COMPONENT,
@@ -157,7 +164,7 @@ public @interface Dialog {
/**
* Renders as the 'isContainer' attribute of the component root node
* @return True or false
- * @deprecated Use {@link Component} to set this value
+ * @deprecated Use {@link Component#isContainer()} to set this value
*/
@IgnorePropertyMapping
@Deprecated
@@ -167,9 +174,11 @@ public @interface Dialog {
* Used to set path to the node/folder of component to create TouchUI dialog for. The path is relative to the {@code componentsPathBase}
* config setting in package's POM file
* @return String value
+ * @deprecated Use {@link Component#path()} to set this value
*/
@IgnorePropertyMapping
@ValueRestriction(ValueRestrictions.NOT_BLANK)
+ @Deprecated
String name() default "";
/**
