|
static MatrixTreeNode | init () throws IOException |
|
static void | addInitialisationListener (InitialisationListener l) |
|
static void | setLimit (int newLimit) |
|
static int | getLimit () |
|
static void | refreshAsset (MatrixTreeNode parent, String direction, int start, int limit) throws IOException |
|
static void | refreshAsset (MatrixTreeNode parent, String direction) throws IOException |
|
static int | calcNextOffset (String assetid) |
|
static int | calcPrevOffset (String assetid) |
|
static Element | makeRefreshRequest (String[] assetids, String direction, int start, int limit) throws IOException |
|
static Element | makeRefreshRequest (String[] assetids, String direction) throws IOException |
|
static void | refreshAssets (Element element) |
|
static String[] | getAllRefreshableAssetids () |
|
static void | updateAsset (Element childElement) |
|
static void | updateAsset (Element childElement, Asset parent) |
|
static boolean | isShadowAsset (Asset asset) |
|
static Asset | getAsset (String assetid) |
|
static AssetType | getAssetType (String typeCode) |
|
static Iterator | getAssetTypes () |
|
static String | getWorkspaceid () |
|
static Asset | getCurrentUser () |
|
static AssetType | getCurrentUserType () |
|
static MatrixTreeNode | getRootFolderNode () |
|
static String[] | getAssetsOfType (String typeCode) |
|
static String[] | getTypeCodeNames () |
|
The Asset Manager handles processing the xml return upon request to the matrix system. It also serves as a central repository for the assets and asset types.
- Author
- Marc McIntyre mmcin.nosp@m.tyre.nosp@m.@squi.nosp@m.z.ne.nosp@m.t
Definition at line 35 of file AssetManager.java.
static Asset getAsset |
( |
String |
assetid | ) |
|
|
inlinestatic |
Returns the Asset
with the specifed assetid.
- Parameters
-
assetid | the asset of the wanted asset |
- Returns
- the
Asset
Definition at line 497 of file AssetManager.java.
static String [] getAssetsOfType |
( |
String |
typeCode | ) |
|
|
inlinestatic |
static AssetType getAssetType |
( |
String |
typeCode | ) |
|
|
inlinestatic |
Returns the asset type given a type code
- Parameters
-
typeCode | the type code of the wanted asset type |
- Returns
- the asset type
Definition at line 506 of file AssetManager.java.
Initialises the information needed for the Asset Map. An xml request is made to the matrix system, which returns xml.
- Returns
- the root folder node of the matrix system.
- Exceptions
-
IOException | if the request to matrix fails |
Definition at line 63 of file AssetManager.java.
static Element makeRefreshRequest |
( |
String[] |
assetids, |
|
|
String |
direction, |
|
|
int |
start, |
|
|
int |
limit |
|
) |
| throws IOException |
|
inlinestatic |
Performs a request to the matrix system for the specified assets. The xml is returned in the following format.
<assets>
<asset ...>
<asset ...>
<asset ...>
</asset>
</assets>
- Parameters
-
assetids | the list of assetids to refresh |
- Returns
- the xml element for the specified assetids
- Exceptions
-
IOException | if the request fails |
Definition at line 299 of file AssetManager.java.
static void updateAsset |
( |
Element |
childElement, |
|
|
Asset |
parent |
|
) |
| |
|
inlinestatic |
Updates an asset and its children using the information from the specified xml element. Calling this method may make changes to the tree structure and therefore must be executed within the Event Dispach Thread.
- Parameters
-
childElement | the xml element to process |
parent | the parent asset of the xml element. |
Definition at line 416 of file AssetManager.java.
The documentation for this class was generated from the following file:
- /Users/webmaster/Desktop/squiz_matrix/core/lib/asset_map/java/src/net/squiz/matrix/core/AssetManager.java