Package com.day.cq.dam.api.s7dam.set
Interface SpinSet
Deprecated.
Not for public use - this API will be replaced in a future release
Represents a Scene7 2D SpinSet
-
Field Summary
Fields inherited from interface org.apache.sling.api.resource.Resource
RESOURCE_TYPE_NON_EXISTING -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.Adds column to the set.voidDeprecated.Adds row to the Set.getAsset(int row, int column) Deprecated.Returns the asset at specified index in the matrixAsset[][]Deprecated.Returns the 2D array of assets which consists of spin set.intDeprecated.Returns the number of columns in 2D spin setintDeprecated.Returns the number of rows in 2D spin setbooleanisValidMemberType(Asset asset) Deprecated.Checks if the given asset is valid member type of Media SetvoidDeprecated.Removes all the assets from setvoidremoveColumn(int column) Deprecated.Removes the specified column from the set.voidremoveRow(int row) Deprecated.Removes the specified row from the set.voidDeprecated.Set the given asset at specified position in matrix.voidDeprecated.Add the matrix of assetsMethods inherited from interface org.apache.sling.api.resource.Resource
getChild, getChildren, getName, getParent, getPath, getResourceMetadata, getResourceResolver, getResourceSuperType, getResourceType, getValueMap, hasChildren, isResourceType, listChildren
-
Method Details
-
setAssets
Deprecated.Add the matrix of assets- Parameters:
assets- The 2D matrix consisting of assets- Throws:
IllegalArgumentException- if null array is passed.
-
setAsset
Deprecated.Set the given asset at specified position in matrix.- Parameters:
asset- Asset to be added.row- Row at which asset needs to be added.column- Column at which asset needs to be added.- Throws:
IllegalArgumentException- if invalid value is passed for row or column
-
removeAssets
void removeAssets()Deprecated.Removes all the assets from set -
removeRow
void removeRow(int row) Deprecated.Removes the specified row from the set. 0 th index is the first row.- Parameters:
row- Index of the row to be removed- Throws:
IllegalArgumentException- if invalid value is passed for row.
-
removeColumn
void removeColumn(int column) Deprecated.Removes the specified column from the set. 0th index is the first column- Parameters:
column- Index of the column to be removed.- Throws:
IllegalArgumentException- if invalid value is passed for column.
-
getAsset
Deprecated.Returns the asset at specified index in the matrix- Parameters:
row- The row index.column- The column index- Returns:
- Asset at specified column, null if it cannot find row.
- Throws:
IllegalArgumentException- if invalid value is passed for row or column.
-
getRowCount
int getRowCount()Deprecated.Returns the number of rows in 2D spin set- Returns:
- Number of rows
-
getColumnCount
int getColumnCount()Deprecated.Returns the number of columns in 2D spin set- Returns:
- Number of columns
-
getAssets
Asset[][] getAssets()Deprecated.Returns the 2D array of assets which consists of spin set.- Returns:
- The array of assets.
-
addRow
Deprecated.Adds row to the Set.- Parameters:
row- Array containing row to be added.- Throws:
IllegalArgumentException- if the dimension of row does not match with existing matrix
-
addColumn
Deprecated.Adds column to the set.- Parameters:
column- Array containing column to be added.- Throws:
IllegalArgumentException- if the dimension of column does not match with existing matrix.
-
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.
-