@Exported
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.
|
List<String> |
getAssetTypes()
Returns all asset type names in the system.
|
List<String> |
getSubTypes(String assetType)
Returns subtype names given the asset type name.
|
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 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(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 descriptorXML, or
an Exception will be thrown.descriptorFileName
- The name of the descriptor xml, we now requires it ends with .xml or .XMLdescriptorXML
- The descriptor XML String.addGeneralCategory
- Indicating whether a General Category will be created by default;
true indicates the General Category will be created, false indicates otherwise.enableAssetTypeIndex
- Indicating whether the asset type will be enabled for Asset Type specific
indexing if available.AssetAccessException
- Throw Exception when errors met.boolean 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 association.name
- The name of the associationdescription
- The description of the association.childtype
- The child asset types allowed for this association.depType
- 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