Package com.day.cq.dam.api.s7dam.set
Interface MediaSet
- 
- 
Field Summary
- 
Fields inherited from interface org.apache.sling.api.resource.Resource
RESOURCE_TYPE_NON_EXISTING 
 - 
 
- 
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description booleanadd(Asset asset)Deprecated.Add anassetto the image set and returns true if successful.booleanadd(Asset asset, Asset swatch)Deprecated.Add anassetto the image set and returns true if successful.booleancontains(Asset asset)Deprecated.Returns true ifassetis part of Image Setjava.util.Iterator<Asset>getMembers()Deprecated.Returns an iterator over assets in the Media Setjava.lang.StringgetType()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.booleanremove(Asset asset)Deprecated.Removes anAssetfrom image set & returns true if successful- 
Methods inherited from interface org.apache.sling.api.resource.Resource
getChild, getChildren, getName, getParent, getPath, getResourceMetadata, getResourceResolver, getResourceSuperType, getResourceType, getValueMap, hasChildren, isResourceType, listChildren 
 - 
 
 - 
 
- 
- 
Method Detail
- 
getMembers
java.util.Iterator<Asset> getMembers()
Deprecated.Returns an iterator over assets in the Media Set- Returns:
 - iterator over assets 
Assetin collection. 
 
- 
isValidMemberType
boolean isValidMemberType(Asset asset)
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
boolean contains(Asset asset)
Deprecated.Returns true ifassetis part of Image Set- Parameters:
 asset- asset instance to be checked- Returns:
 trueifassetis part of the Image Set.falseotherwise
 
- 
add
boolean add(Asset asset)
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
boolean add(Asset asset, Asset swatch)
Deprecated.Add anassetto the image set and returns true if successful. 
- 
remove
boolean remove(Asset asset)
Deprecated.Removes anAssetfrom image set & returns true if successful- Parameters:
 asset-Assetto be removed- Returns:
 trueifassetwas successfully removed from the collection.falseotherwise
 
- 
orderBefore
void orderBefore(Asset srcAsset, Asset destAsset)
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:
 java.lang.IllegalArgumentException- if asset is null or ifassetorbeforeAssetdoes not exist in set
 
- 
getType
java.lang.String getType()
Deprecated.Returns the type of the set.- Returns:
 - type of the set i.e. ImageSet, SwatchSet
 
 
 - 
 
 -