|
|||||||||
| 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 | |
|---|---|
boolean |
addAssociation(java.lang.String assettype, java.lang.String name, java.lang.String description, java.lang.String childtype, java.lang.String depType, boolean multiValues, java.util.List<java.lang.String> subtypes)Add a named association to an asset type |
void |
create(AssetTypeDef def)Creates an assetTypeDef in the database |
boolean |
createAssetMakerAssetType(java.lang.String assetTypeName, java.lang.String descriptorFileName, java.lang.String descriptorXML, boolean addGeneralCategory, boolean enableAssetTypeIndex)Creates a Content Server Asset Maker asset type using the passed in descriptor |
boolean |
createFlexFamily(FlexAssetFamilyInfo flexAssetFamilyInfo)Creating a flex asset family in Content Server |
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 AssetTypeDefManagerassetTypeName - 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
AssetTypeDefManagergetAssetTypes in interface AssetTypeDefManagerAssetAccessException - wraps any internal exceptions generated by the framework.
public java.util.List<java.lang.String> getSubTypes(java.lang.String assetType)
throws AssetAccessException
AssetTypeDefManagergetSubTypes in interface AssetTypeDefManagerassetType - name of the asset type to get subtypes forAssetAccessException - wraps any internal exceptions generated by the framework.
public void create(AssetTypeDef def)
throws AssetAccessException
create in interface AssetTypeDefManagerdef -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 AssetTypeDefManagerassetTypeNames - name of the asset types to be deleted.AssetAccessException - captures layer specific failures and wraps other internal exceptions.public AttributeDef newAttributeDef()
newAttributeDef in interface AssetTypeDefManagerpublic AssetTypeDef newAssetTypeDef()
newAssetTypeDef in interface AssetTypeDefManagerpublic AssetAssociationDef newAssociationDef()
newAssociationDef in interface AssetTypeDefManager
public boolean createAssetMakerAssetType(java.lang.String assetTypeName,
java.lang.String descriptorFileName,
java.lang.String descriptorXML,
boolean addGeneralCategory,
boolean enableAssetTypeIndex)
throws AssetAccessException
AssetTypeDefManagercreateAssetMakerAssetType in interface AssetTypeDefManagerassetTypeName - the asset type name, the name has to be the same with the one in desriptorXML, or an Exception will be throwndescriptorFileName - the name of the descriptor xml, we now requires it ends with .xml or .XMLdescriptorXML - the descriptor xml StringaddGeneralCategory - indicating whether a General Category will be created by default; true indicates the General Category will be created, false indicates otherwiseenableAssetTypeIndex - indicating whether the asset type will be enabled for Asset Type specific indexing if availableAssetAccessException - throw Exception when errors met
public boolean createFlexFamily(FlexAssetFamilyInfo flexAssetFamilyInfo)
throws AssetAccessException
AssetTypeDefManagercreateFlexFamily in interface AssetTypeDefManagerflexAssetFamilyInfo - the name/description/plural information for the flex asset family membersAssetAccessException - throw this exception if error met
public boolean addAssociation(java.lang.String assettype,
java.lang.String name,
java.lang.String description,
java.lang.String childtype,
java.lang.String depType,
boolean multiValues,
java.util.List<java.lang.String> subtypes)
throws AssetAccessException
AssetTypeDefManageraddAssociation in interface AssetTypeDefManagerassettype - the asset type to add the assocationname - the name of the associationdescription - the description of the assocationchildtype - the child asset types allowed for this associationdepType - the dependency type that will be logged. Legal values are: "E" -- IApprovalDependency.DEPTYPE_EXISTS : "V" -- IApprovalDependency.DEPTYPE_EXACT Default value if the input is wrong is Esubtypes - the subtypes for the association in the format of subtype name to required map For example, FSII Product - true indicates that subtype FSII Product is needed and it is requiredAssetAccessException - throw this exception if error met
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.