|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AssetTypeDefManager
This interface provides management services for Asset type definitions.
Note: Only read operations are implemented as of now. Attempt to perform a write operation results in UnsupportedOperationException. One can look up an asset type's definition usingAssetTypeDefManager.findByName(String,String)
.
In addition, this interface provides access names of all asset types AssetTypeDefManager.getAssetTypes()
and subtypes AssetTypeDefManager.getSubTypes(String)
.
Method Summary | |
---|---|
void |
create(AssetTypeDef def)
NOTE: This method is not implemented yet. |
void |
delete(java.util.List<java.lang.String> assetTypeNames)
NOTE: This method is not implemented yet. |
AssetTypeDef |
findByName(java.lang.String assetTypeName,
java.lang.String subtype)
Finds an asset type definition by its name The method expects a valid asset type to be passed in. |
java.util.List<java.lang.String> |
getAssetTypes()
Returns all asset type names in the system. |
java.util.List<java.lang.String> |
getSubTypes(java.lang.String assetType)
Returns subtype names given the asset type name If the asset type name specified is not existed in System, the method would return an empty List and will not throw exception. |
AssetTypeDef |
newAssetTypeDef()
NOTE: This method is not implemented yet. |
AssetAssociationDef |
newAssociationDef()
NOTE: This method is not implemented yet. |
AttributeDef |
newAttributeDef()
NOTE: This method is not implemented yet. |
Method Detail |
---|
AssetTypeDef findByName(java.lang.String assetTypeName, java.lang.String subtype) throws AssetAccessException
assetTypeName
- name of the asset type definition.subtype
- Subtype of asset definition, if any.
AssetAccessException
- is thrown if no asset type/subtype exist with given names. AssetAccessException also wraps
any internal exceptions generated by the framework.java.util.List<java.lang.String> getAssetTypes() throws AssetAccessException
AssetAccessException
- wraps any internal exceptions generated by the framework.java.util.List<java.lang.String> getSubTypes(java.lang.String assetType) throws AssetAccessException
assetType
- name of the asset type to get subtypes for
AssetAccessException
- wraps any internal exceptions generated by the framework.void create(AssetTypeDef def) throws AssetAccessException
def
- Asset definition to create
AssetAccessException
- captures layer specific failures and wraps other internal exceptions.void delete(java.util.List<java.lang.String> assetTypeNames) throws AssetAccessException
assetTypeNames
- name of the asset types to be deleted.
AssetAccessException
- captures layer specific failures and wraps other internal exceptions.AttributeDef newAttributeDef()
AssetTypeDef newAssetTypeDef()
AssetAssociationDef newAssociationDef()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |