-
-
Method Summary
boolean
Deprecated.
Add an asset and swatch to the swatch set and
returns true if successful.
Deprecated.
Returns the swatch for an
Asset which is the part of the Swatch Set.
void
Deprecated.
Sets the swatch for an
Asset which is the part of the Swatch Set.
Methods inherited from interface org.apache.sling.api.resource.Resource
getChild, getChildren, getName, getParent, getPath, getResourceMetadata, getResourceResolver, getResourceSuperType, getResourceType, getValueMap, hasChildren, isResourceType, listChildren
-
Method Details
-
add
Deprecated.
Add an asset and swatch to the swatch set and
returns true if successful.
- Specified by:
add in interface MediaSet
- Parameters:
asset - Asset instance to be added
swatch - Asset instance to be added as swatch.
- Returns:
true if operation is successful.
or false if asset is already contained in the resource.
-
getSwatch
Deprecated.
Returns the swatch for an
Asset which is the part of the Swatch Set.
- Parameters:
asset - Asset for which a swatch is to be found
- Returns:
- swatch for an
Asset in swatch set.
-
setSwatch
Deprecated.
Sets the swatch for an
Asset which is the part of the Swatch Set.
- Parameters:
asset - Asset for which a swatch is to be set
swatch - Asset which is to be used as swatch
MediaSet