Package com.day.cq.dam.api.s7dam.set
Interface MediaSet
- All Known Subinterfaces:
CarouselSet,ImageSet,SwatchSet
Deprecated.
Not for public use - this API will be replaced in a future release
Represents a Scene7 Media set.
-
Field Summary
Fields inherited from interface org.apache.sling.api.resource.Resource
RESOURCE_TYPE_NON_EXISTING -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.Add anassetto the image set and returns true if successful.booleanDeprecated.Add anassetto the image set and returns true if successful.booleanDeprecated.Returns true ifassetis part of Image SetDeprecated.Returns an iterator over assets in the Media SetgetType()Deprecated.Returns the type of the set.booleanisValidMemberType(Asset asset) Deprecated.Checks if the given asset is valid member type of Media SetvoidorderBefore(Asset srcAsset, Asset destAsset) Deprecated.Change the order of assets in image set.booleanDeprecated.Removes anAssetfrom image set & returns true if successfulMethods inherited from interface org.apache.sling.api.resource.Resource
getChild, getChildren, getName, getParent, getPath, getResourceMetadata, getResourceResolver, getResourceSuperType, getResourceType, getValueMap, hasChildren, isResourceType, listChildren
-
Method Details
-
getMembers
Deprecated.Returns an iterator over assets in the Media Set- Returns:
- iterator over assets
Assetin collection.
-
isValidMemberType
Deprecated.Checks if the given asset is valid member type of Media Set- Parameters:
asset- The asset whose type needs to be checked for membership- Returns:
- True if asset type is valid for set, false otherwise.
-
contains
Deprecated.Returns true ifassetis part of Image Set- Parameters:
asset- asset instance to be checked- Returns:
trueifassetis part of the Image Set.falseotherwise
-
add
Deprecated.Add anassetto the image set and returns true if successful.- Parameters:
asset- asset instance to be added- Returns:
- true if addition of resource to collection was successful or false if collection already contained the resource.
-
add
Deprecated.Add anassetto the image set and returns true if successful. -
remove
Deprecated.Removes anAssetfrom image set & returns true if successful- Parameters:
asset-Assetto be removed- Returns:
trueifassetwas successfully removed from the collection.falseotherwise
-
orderBefore
Deprecated.Change the order of assets in image set.- Parameters:
srcAsset-Assetthat needs to be moved in the orderdestAsset-Assetbefore which thesrcAssetPathwill be placed.destAssetis null, then srcAsset will be placed at the end of the list.- Throws:
IllegalArgumentException- if asset is null or ifassetorbeforeAssetdoes not exist in set
-
getType
String getType()Deprecated.Returns the type of the set.- Returns:
- type of the set i.e. ImageSet, SwatchSet
-