Appearance
AssetGroup
Extends Group
An asset group extends Group to provide more asset specific capabilities.
Static Methods
findByPath(path) → AssetGroup
Returns an asset group given a path. A path must start with a "/" and contain one or more group names separated by "/" characters. For example, "/production/acme" identifies the "acme" group in the "production" group.
Returns: AssetGroup - The AssetGroup or null if one could not be found.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| path | String | A path as described above. |
findById(id) → AssetGroup
Returns an asset group given its id. If no group exists with this id, null is returned.
Returns: AssetGroup - The AssetGroup or null if one could not be found.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| id | String | The group's id. |
Instance Methods
getAssets() → Array
Returns an array of Asset objects that are members of this group.
Returns: Array - An array of objects of type Asset.
getAssets(A) → Array
Returns an Array of String. Each String is the id of objects contained within the group, excluding other groups.
Returns: Array - An Array of String
Parameters:
| Parameter | Type | Description |
|---|---|---|
| A | Pattern | A regular expression that must match each member. |