public interface AssetTypeDefManager
AssetTypeDefManager.findByName(String,String)
. In addition, this interface provides access names of all asset types AssetTypeDefManager.getAssetTypes()
and subtypes AssetTypeDefManager.getSubTypes(String)
.Modifier and Type | Method and Description |
---|---|
boolean |
addAssociation(String assettype, String name, String description, String childtype, String depType, boolean multiValued, List<String> subtypes)
Add a named association to an asset type
|
void |
create(AssetTypeDef def)
This could only be used to create a flex definition.
|
boolean |
createAssetMakerAssetType(String assetTypeName, String descriptorFileName, 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(List<String> assetTypeNames)
NOTE: This method is not implemented yet.
|
AssetTypeDef |
findByName(String assetTypeName, String subtype)
Finds an asset type definition by its name The method expects a valid asset type to be passed in.
|
List<String> |
getAssetTypes()
Returns all asset type names in the system.
|
List<String> |
getSubTypes(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.
|
AssetTypeDef findByName(String assetTypeName, 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.List<String> getAssetTypes() throws AssetAccessException
AssetAccessException
- wraps any internal exceptions generated by the framework.List<String> getSubTypes(String assetType) throws AssetAccessException
assetType
- name of the asset type to get subtypes forAssetAccessException
- wraps any internal exceptions generated by the framework.void create(AssetTypeDef def) throws AssetAccessException
def
- Asset definition to createAssetAccessException
- captures layer specific failures and wraps other internal exceptions.void delete(List<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()
boolean createAssetMakerAssetType(String assetTypeName, String descriptorFileName, String descriptorXML, boolean addGeneralCategory, boolean enableAssetTypeIndex) throws AssetAccessException
assetTypeName
- 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 metboolean createFlexFamily(FlexAssetFamilyInfo flexAssetFamilyInfo) throws AssetAccessException
flexAssetFamilyInfo
- the name/description/plural information for the flex asset family membersAssetAccessException
- throw this exception if error metboolean addAssociation(String assettype, String name, String description, String childtype, String depType, boolean multiValued, List<String> subtypes) throws AssetAccessException
assettype
- 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 EmultiValued
- yes or nosubtypes
- 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