|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.fatwire.assetapi.def.AssetTypeDefManagerImpl
public final class AssetTypeDefManagerImpl
Sample implementation for Asset type definitions.
Constructor Summary | |
---|---|
AssetTypeDefManagerImpl(ICS ics)
|
Method Summary | |
---|---|
void |
create(AssetTypeDef def)
Creates an assetTypeDef in the database |
void |
delete(java.util.List<java.lang.String> assetTypeNames)
Deletes asset types from the database and all their instances. |
AssetTypeDef |
findByName(java.lang.String assetTypeName,
java.lang.String subtype)
Finds an asset type definition by its name |
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()
Create an empty AssetTypeDef |
AssetAssociationDef |
newAssociationDef()
Creates a new instance of Association by a given name. |
AttributeDef |
newAttributeDef()
Creates a new instance of AttributeTypeDefinition |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AssetTypeDefManagerImpl(ICS ics)
Method Detail |
---|
public AssetTypeDef findByName(java.lang.String assetTypeName, java.lang.String subtype) throws AssetAccessException
findByName
in interface AssetTypeDefManager
assetTypeName
- name of the asset type definition.subtype
- Subtype of asset definition, if any.
AssetAccessException
- captures layer specific failures and wraps other internal exceptions.public java.util.List<java.lang.String> getAssetTypes() throws AssetAccessException
AssetTypeDefManager
getAssetTypes
in interface AssetTypeDefManager
AssetAccessException
- wraps any internal exceptions generated by the framework.public java.util.List<java.lang.String> getSubTypes(java.lang.String assetType) throws AssetAccessException
AssetTypeDefManager
getSubTypes
in interface AssetTypeDefManager
assetType
- name of the asset type to get subtypes for
AssetAccessException
- wraps any internal exceptions generated by the framework.public void create(AssetTypeDef def) throws AssetAccessException
create
in interface AssetTypeDefManager
def
-
AssetAccessException
- captures layer specific failures and wraps other internal exceptions.public void delete(java.util.List<java.lang.String> assetTypeNames) throws AssetAccessException
delete
in interface AssetTypeDefManager
assetTypeNames
- name of the asset types to be deleted.
AssetAccessException
- captures layer specific failures and wraps other internal exceptions.public AttributeDef newAttributeDef()
newAttributeDef
in interface AssetTypeDefManager
public AssetTypeDef newAssetTypeDef()
newAssetTypeDef
in interface AssetTypeDefManager
public AssetAssociationDef newAssociationDef()
newAssociationDef
in interface AssetTypeDefManager
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |