public interface CentraSiteTypeDescription
Modifier and Type | Method and Description |
---|---|
void |
addClassification(javax.xml.registry.infomodel.Concept concept)
Classifies this type with the given concept.
|
void |
addClassification(java.lang.String id)
Classifies this type with the given id.
|
void |
addClassificationAtribute(CentraSiteClassificationAttribute ca)
Adds a classification attribute to this type.
|
void |
addClassificationAtributes(java.util.Collection<CentraSiteClassificationAttribute> cas)
Adds a collection of classification attributes to this type.
|
void |
addComputedAttribute(CentraSiteComputedAttribute cca)
Adds a computed attribute to this type.
|
void |
addComputedAttributes(java.util.Collection<CentraSiteComputedAttribute> ccas)
Adds a collection of computed attributes to this type.
|
void |
addConsumableTypes(java.util.Collection<CentraSiteTypeDescription> consumableTypes)
Adds collection of consumable types for the type; the instance of the type can consume only those instances of types from consumable types list.
|
void |
addFileAtribute(CentraSiteFileAttribute fa)
Adds a file attribute to this type.
|
void |
addFileAtributes(java.util.Collection<CentraSiteFileAttribute> fas)
Adds a collection of file attributes to this type.
|
void |
addOperationDescription(CentraSiteOperationDescription operation)
Deprecated.
|
void |
addProfile(javax.xml.registry.infomodel.RegistryEntry profile)
Adds the given profile to this type.
|
void |
addProfiles(java.util.Collection<javax.xml.registry.infomodel.RegistryEntry> profiles)
Adds the given profiles to this type.
|
void |
addRelationShipAtribute(CentraSiteRelationShipAttribute ra)
Adds a relationship attribute to this type.
|
void |
addRelationShipAtributes(java.util.Collection<CentraSiteRelationShipAttribute> ras)
Adds a collection of relationship attributes to this type.
|
void |
addSlotDescription(CentraSiteSlotDescription slot)
Adds specified slot description.
|
void |
addSlotDescriptions(java.util.Collection slots)
Adds a collection of slot descriptions.
|
void |
addTriggerDescription(CentraSiteTriggerDescription trigger)
Deprecated.
|
boolean |
areSlotsCreated()
Returns whether slots for schemaName and doctypeName are already created or not.
|
boolean |
canRemoveConsumableType(CentraSiteTypeDescription consumableType)
Checks whether the given asset type is allowed to be removed from the consumable types defined for this type.
|
void |
checkValidLocalName(java.lang.String value)
Checks string whether a valid local name for a type definition.
|
void |
checkValidNameSpace(java.lang.String value)
Checks string whether a valid local name for a type definition.
|
void |
clearOperations()
Deprecated.
|
void |
clearSlots()
Clears collection of slots (GUI).
|
void |
clearTriggers()
Deprecated.
|
void |
delete(RepositoryConnector repCon)
Deletes a type description from registry/repository.
|
java.util.Collection<CentraSiteTypeDescription> |
getAggregatedUsingTargetTypes()
Gets all types that have a Relationship attribute with RelationshipType as Composition using Target
referencing this type.
|
java.util.Collection<CentraSiteClassificationAttribute> |
getClassificationAttributes()
Get the classification attributes.
|
java.util.Collection<CentraSiteTypeDescription> |
getCompositedUsingTargetTypes()
Gets all types that have a Relationship attribute with RelationshipType as Composition using Target
referencing this type.
|
java.util.Collection<CentraSiteComputedAttribute> |
getComputedAttributes()
Gets the computed attributes.
|
javax.xml.registry.infomodel.Concept |
getConcept()
Gets associated concept (GUI).
|
java.util.Collection<CentraSiteTypeDescription> |
getConsumableTypes()
Gets all consumable types defined for the type.
|
java.lang.String |
getConsumerRegistrationKey()
Gets the consumer registration (definition of consumable types of the type) key
|
java.lang.String |
getDescription()
Gets the type description.
|
javax.xml.registry.infomodel.InternationalString |
getDisplayName()
Gets the type's display name.
|
java.lang.String |
getDoctypeName()
Gets the link to the Document type name.
|
java.util.Collection<CentraSiteFileAttribute> |
getFileAttributes()
Gets the file attributes.
|
javax.xml.registry.infomodel.InternationalString |
getI18NDescription()
Gets the internationalized type description.
|
javax.xml.registry.infomodel.ExternalLink |
getIconLink()
Gets the link to the type icon.
|
java.util.Collection<CentraSiteJaxrAttribute> |
getJaxrAttributes()
Gets the JAXR attributes.
|
javax.xml.registry.infomodel.ExternalLink |
getLargeIconLink()
Gets the link to the LargeTypeIcon.
|
java.lang.String |
getLocalPart()
Derives local part from complete name.
|
java.lang.String |
getName()
Gets the type name.
|
java.lang.String |
getNamespaceUri()
Derives namespace from complete name.
|
java.util.Collection |
getOperationDescriptions()
Deprecated.
|
java.util.Collection<javax.xml.registry.infomodel.RegistryEntry> |
getProfiles()
Gets the profiles.
|
java.util.Collection<javax.xml.registry.infomodel.RegistryEntry> |
getProfiles(java.lang.String conceptId)
Gets the profiles that are classified by the given concept.
|
java.util.Collection<java.lang.String> |
getProfileSequence()
Gets the profile sequence information.
|
java.util.Collection<CentraSiteRelationShipAttribute> |
getRelationShipAttributes()
Gets the relationship attributes.
|
java.util.Collection<CentraSiteTypeDescription> |
getReverselyAggregatingTypes()
Gets all types that have a Relationship attribute with ReverseAggregate option
referencing this type.
|
java.lang.String |
getSchemaName()
Gets the link to the schema.
|
CentraSiteSlotDescription |
getSlotDescription(java.lang.String slotName)
Gets specified slot description.
|
java.util.HashMap |
getSlotDescriptions()
Gets slot description map.
|
java.util.Collection |
getSlotNames()
Gets the slot names.
|
java.util.Collection |
getTriggerDescriptions()
Deprecated.
|
javax.xml.registry.infomodel.ExternalLink |
getXsdLink()
Gets the link to the schema.
|
boolean |
hasOperations()
Deprecated.
|
boolean |
hasTriggers()
Deprecated.
|
boolean |
isBaseType()
Returns whether this type is a base type.
|
boolean |
isClassifiedWith(javax.xml.registry.infomodel.Concept concept)
Checks whether this type is classified with the given concept.
|
boolean |
isClassifiedWith(java.lang.String id)
Checks whether this type is classified with the given ID.
|
boolean |
isExtensible()
Deprecated.
types are always extensible, method always returns true
|
void |
isExtensible(boolean extensible)
Deprecated.
types are always extensible
|
boolean |
isVirtualType()
Returns whether this type is a virtual type.
|
void |
lock()
Locks the type exclusively.
|
java.lang.String |
ncName(java.lang.String value)
Converts the given value to an NCName.
|
void |
removeClassification(javax.xml.registry.infomodel.Concept concept)
Removes the classification of this type with the given concept.
|
void |
removeClassification(java.lang.String id)
Removes the classification of this type with the given id.
|
void |
removeClassificationAtribute(CentraSiteClassificationAttribute ca)
Removes a classification attribute from this type.
|
void |
removeComputedAttribute(CentraSiteComputedAttribute cca)
Removes a computed attribute from this type.
|
void |
removeConsumableTypes(java.util.Collection<CentraSiteTypeDescription> consumableTypes)
Removes collection of consumable types from the type.
|
void |
removeFileAtribute(CentraSiteFileAttribute fa)
Removes a file attribute from this type.
|
void |
removeOperationDescription(CentraSiteOperationDescription operation)
Deprecated.
|
void |
removeProfile(javax.xml.registry.infomodel.RegistryEntry profile)
Removes the given profile from this type.
|
void |
removeRelationShipAtribute(CentraSiteRelationShipAttribute ra)
Removes a relationship attribute from this type.
|
void |
removeSlot(CentraSiteSlotDescription slot)
Clear collection of slots (GUI).
|
void |
removeTriggerDescription(CentraSiteTriggerDescription trigger)
Deprecated.
|
void |
save(RepositoryConnector repCon)
Saves the type description to registry/repository.
|
void |
setConcept(javax.xml.registry.infomodel.Concept concept)
Deprecated.
|
void |
setConsumableTypes(java.util.Collection<CentraSiteTypeDescription> consumableTypes)
Sets the given collection of consumable types as the finer set of consumable type of the asset type.
|
void |
setDescription(java.lang.String description)
Sets the type description.
|
void |
setDisplayName(javax.xml.registry.infomodel.InternationalString name)
Sets the type's display name.
|
void |
setIconInputStream(java.io.InputStream iconInputStream)
Sets the input stream representing the type icon.
|
void |
setIconLink(javax.xml.registry.infomodel.ExternalLink iconLink)
Sets the link to the type icon.
|
void |
setIconMediaType(java.lang.String iconMediaType)
Sets the media type of the type icon.
|
void |
setIconPath(java.lang.String serverFilePath)
Deprecated.
please use setIconPath(String clientFilePath, String serverFilePath)
|
void |
setIconPath(java.lang.String clientFilePath,
java.lang.String serverFilePath)
Deprecated.
use setIconMediaType/setIconInputStream instead
|
void |
setLargeIconInputStream(java.io.InputStream largeIconInputStream)
Sets the input stream representing the large type icon.
|
void |
setLargeIconLink(javax.xml.registry.infomodel.ExternalLink largeIconLink)
Sets the link to the LargeTypeIcon.
|
void |
setLargeIconMediaType(java.lang.String largeIconMediaType)
Sets the media type of the large type icon.
|
void |
setLocalPart(java.lang.String part)
Sets local part in complete name.
|
void |
setName(java.lang.String name)
Sets the type name.
|
void |
setNamespaceUri(java.lang.String namespaceUri)
Sets namespace int complete name.
|
void |
setProfileSequence(java.util.Collection<java.lang.String> pseq)
Sets the profile sequence information.
|
void |
setUpdateProcess(boolean updateProcess)
When calling setConcept from the SchemaTransformer is is
not possible to detect whether the concept is updated
or new created, because the SchemaTransformer always deletes
user defined concept an then recreate the concept.
|
void |
setXsdLink(javax.xml.registry.infomodel.ExternalLink xsdLink)
Sets the link to the schema.
|
java.lang.String |
toXML()
Gets XML representation (schema).
|
java.lang.String |
toXmlForExport()
Gets XML representation for type export.
|
boolean isBaseType() throws javax.xml.registry.JAXRException
javax.xml.registry.JAXRException
- if an internal error occurs.boolean isVirtualType() throws javax.xml.registry.JAXRException
javax.xml.registry.JAXRException
- if an internal error occurs.void setName(java.lang.String name) throws javax.xml.registry.JAXRException
name
- name of the form "{uri}local-name".javax.xml.registry.JAXRException
- if an internal error occurs on setting the type name.java.lang.String getName()
void setDisplayName(javax.xml.registry.infomodel.InternationalString name) throws javax.xml.registry.JAXRException
name
- the display name as InternationalString
.javax.xml.registry.JAXRException
- if an internal error occurs.javax.xml.registry.infomodel.InternationalString getDisplayName()
void setNamespaceUri(java.lang.String namespaceUri)
namespaceUri
- namespace URIjava.lang.String getNamespaceUri()
void setLocalPart(java.lang.String part)
part
- local partjava.lang.String getLocalPart()
void setConcept(javax.xml.registry.infomodel.Concept concept) throws javax.xml.registry.JAXRException
concept
- associated conceptjavax.xml.registry.JAXRException
- if encounters an internal error on setting the concept object.javax.xml.registry.infomodel.Concept getConcept() throws javax.xml.registry.JAXRException
javax.xml.registry.JAXRException
- if encounters an internal error on getting the concept object.void setDescription(java.lang.String description)
description
- description of typejava.lang.String getDescription()
javax.xml.registry.infomodel.InternationalString getI18NDescription() throws javax.xml.registry.JAXRException
javax.xml.registry.JAXRException
- if encounters an internal error.void isExtensible(boolean extensible)
extensible
- true if arbitrary slots allowed, false otherwiseboolean isExtensible()
boolean areSlotsCreated()
void setUpdateProcess(boolean updateProcess)
updateProcess
- the boolean value to update the process.java.util.Collection getSlotNames()
void addSlotDescription(CentraSiteSlotDescription slot)
slot
- slot to addvoid addSlotDescriptions(java.util.Collection slots) throws javax.xml.registry.JAXRException
slots
- collection of slot descriptions to add.javax.xml.registry.JAXRException
- if encounters an internal error.CentraSiteSlotDescription getSlotDescription(java.lang.String slotName)
slotName
- slot name to get description forjava.util.HashMap getSlotDescriptions()
void clearSlots()
void removeSlot(CentraSiteSlotDescription slot) throws javax.xml.registry.JAXRException
slot
- slot to remove.javax.xml.registry.JAXRException
- if an internal error on removing the slot.java.util.Collection<CentraSiteClassificationAttribute> getClassificationAttributes() throws javax.xml.registry.JAXRException
javax.xml.registry.JAXRException
- if encounters an internal error on getting the classification attributes.void addClassificationAtribute(CentraSiteClassificationAttribute ca) throws javax.xml.registry.JAXRException
ca
- the classification attributejavax.xml.registry.JAXRException
- if encounters an internal error on adding the classification attribute.void addClassificationAtributes(java.util.Collection<CentraSiteClassificationAttribute> cas) throws javax.xml.registry.JAXRException
cas
- the collection of classification attributesjavax.xml.registry.JAXRException
- if encounters an internal error on adding the classification attributes.void removeClassificationAtribute(CentraSiteClassificationAttribute ca) throws javax.xml.registry.JAXRException
ca
- the classification attributejavax.xml.registry.JAXRException
- if encounters an internal error on removing the classification attribute.java.util.Collection<CentraSiteFileAttribute> getFileAttributes() throws javax.xml.registry.JAXRException
javax.xml.registry.JAXRException
- if encounters an internal error on getting the file attributes.void addFileAtribute(CentraSiteFileAttribute fa) throws javax.xml.registry.JAXRException
fa
- the file attributejavax.xml.registry.JAXRException
- if encounters an internal error on adding the file attribute.void addFileAtributes(java.util.Collection<CentraSiteFileAttribute> fas) throws javax.xml.registry.JAXRException
fas
- the collection of file attributesjavax.xml.registry.JAXRException
- if encounters an internal error on adding the file attributes.void removeFileAtribute(CentraSiteFileAttribute fa) throws javax.xml.registry.JAXRException
fa
- the file attributejavax.xml.registry.JAXRException
- if encounters an internal error on removing the file attribute.java.util.Collection<CentraSiteComputedAttribute> getComputedAttributes() throws javax.xml.registry.JAXRException
javax.xml.registry.JAXRException
- if encounters an internal error on getting the computed attributes.void addComputedAttribute(CentraSiteComputedAttribute cca) throws javax.xml.registry.JAXRException
cca
- the computed attributejavax.xml.registry.JAXRException
- if encounters an internal error on adding the computed attribute.void addComputedAttributes(java.util.Collection<CentraSiteComputedAttribute> ccas) throws javax.xml.registry.JAXRException
ccas
- the collection of computed attributesjavax.xml.registry.JAXRException
- if encounters an internal error on getting the computed attributes.void removeComputedAttribute(CentraSiteComputedAttribute cca) throws javax.xml.registry.JAXRException
cca
- the computed attributejavax.xml.registry.JAXRException
- if encounters an internal error on removing the computed attributes.java.util.Collection<CentraSiteRelationShipAttribute> getRelationShipAttributes() throws javax.xml.registry.JAXRException
javax.xml.registry.JAXRException
- if encounters an internal error on getting the relationship attributes.void addRelationShipAtribute(CentraSiteRelationShipAttribute ra) throws javax.xml.registry.JAXRException
ra
- the relationship attributejavax.xml.registry.JAXRException
- if encounters an internal error on adding the relationship attribute.void addRelationShipAtributes(java.util.Collection<CentraSiteRelationShipAttribute> ras) throws javax.xml.registry.JAXRException
ras
- the collection of relationship attributesjavax.xml.registry.JAXRException
- if encounters an internal error on adding the relationship attributes.void removeRelationShipAtribute(CentraSiteRelationShipAttribute ra) throws javax.xml.registry.JAXRException
ra
- the relationship attributejavax.xml.registry.JAXRException
- if encounters an internal error on removing the relationship attribute.java.util.Collection<CentraSiteJaxrAttribute> getJaxrAttributes() throws javax.xml.registry.JAXRException
javax.xml.registry.JAXRException
- if encounters an internal error on getting the jaxr attributes.java.util.Collection<javax.xml.registry.infomodel.RegistryEntry> getProfiles() throws javax.xml.registry.JAXRException
javax.xml.registry.JAXRException
- if encounters an internal error on getting the profiles.java.util.Collection<javax.xml.registry.infomodel.RegistryEntry> getProfiles(java.lang.String conceptId) throws javax.xml.registry.JAXRException
conceptId
- the concept ID.javax.xml.registry.JAXRException
- if encounters an internal error on getting the profiles.void addProfiles(java.util.Collection<javax.xml.registry.infomodel.RegistryEntry> profiles) throws javax.xml.registry.JAXRException
profiles
- collection of profile instancesjavax.xml.registry.JAXRException
- if encounters an internal error on adding the profiles.void addProfile(javax.xml.registry.infomodel.RegistryEntry profile) throws javax.xml.registry.JAXRException
profile
- the profile to be addedjavax.xml.registry.JAXRException
- if encounters an internal error on adding the profile.void removeProfile(javax.xml.registry.infomodel.RegistryEntry profile) throws javax.xml.registry.JAXRException
profile
- the profile to be removedjavax.xml.registry.JAXRException
- if encounters an internal error on removing the profile.java.util.Collection<java.lang.String> getProfileSequence() throws javax.xml.registry.JAXRException
javax.xml.registry.JAXRException
- if encounters an internal error on getting the profile sequence.void setProfileSequence(java.util.Collection<java.lang.String> pseq) throws javax.xml.registry.JAXRException
pseq
- the collection of profile ID'sjavax.xml.registry.JAXRException
- if encounters an internal error on setting the profile sequence.boolean isClassifiedWith(javax.xml.registry.infomodel.Concept concept) throws javax.xml.registry.JAXRException
concept
- the classification conceptjavax.xml.registry.JAXRException
- if encounters an internal error.boolean isClassifiedWith(java.lang.String id) throws javax.xml.registry.JAXRException
id
- the classification concept IDjavax.xml.registry.JAXRException
- if encounters an internal error.void addClassification(javax.xml.registry.infomodel.Concept concept) throws javax.xml.registry.JAXRException
concept
- the concept to be used for classificationjavax.xml.registry.JAXRException
- if encounters an internal error on adding the classification.void addClassification(java.lang.String id) throws javax.xml.registry.JAXRException
id
- the id of the concept to be used for classificationjavax.xml.registry.JAXRException
- if encounters an internal error on adding the classification.void removeClassification(javax.xml.registry.infomodel.Concept concept) throws javax.xml.registry.JAXRException
concept
- the concept to be removedjavax.xml.registry.JAXRException
- if encounters an internal error on removing the classification.void removeClassification(java.lang.String id) throws javax.xml.registry.JAXRException
id
- the id of the concept to be removedjavax.xml.registry.JAXRException
- if encounters an internal error on removing the classification.void clearOperations()
boolean hasOperations()
void addOperationDescription(CentraSiteOperationDescription operation)
operation
- operation to addjava.util.Collection getOperationDescriptions()
void removeOperationDescription(CentraSiteOperationDescription operation)
operation
- operation to removevoid clearTriggers()
boolean hasTriggers()
void addTriggerDescription(CentraSiteTriggerDescription trigger)
trigger
- trigger to addjava.util.Collection getTriggerDescriptions()
void removeTriggerDescription(CentraSiteTriggerDescription trigger)
trigger
- trigger to removevoid setIconPath(java.lang.String clientFilePath, java.lang.String serverFilePath) throws java.lang.Exception
clientFilePath
- real path to iconserverFilePath
- temporary path to iconjava.lang.Exception
- if an internal error occurs.void setIconPath(java.lang.String serverFilePath) throws java.lang.Exception
serverFilePath
- temporary path to icon.java.lang.Exception
- if an internal error occurs.void setIconMediaType(java.lang.String iconMediaType)
iconMediaType
- the media type of the type icon.void setIconInputStream(java.io.InputStream iconInputStream) throws java.io.IOException
iconInputStream
- the input stream representing the type icon.java.io.IOException
void setLargeIconMediaType(java.lang.String largeIconMediaType)
largeIconMediaType
- the media type of the large type icon.void setLargeIconInputStream(java.io.InputStream largeIconInputStream) throws java.io.IOException
largeIconInputStream
- the input stream representing the large type icon.java.io.IOException
- if encounters an internal error.void setIconLink(javax.xml.registry.infomodel.ExternalLink iconLink)
iconLink
- link to type iconjavax.xml.registry.infomodel.ExternalLink getIconLink() throws javax.xml.registry.JAXRException
javax.xml.registry.JAXRException
- if encounters an internal error.void setLargeIconLink(javax.xml.registry.infomodel.ExternalLink largeIconLink)
largeIconLink
- link to LargeTypeIconjavax.xml.registry.infomodel.ExternalLink getLargeIconLink() throws javax.xml.registry.JAXRException
javax.xml.registry.JAXRException
- if an internal error occurs on getting the large icon link.void setXsdLink(javax.xml.registry.infomodel.ExternalLink xsdLink)
xsdLink
- link to schemajavax.xml.registry.infomodel.ExternalLink getXsdLink() throws javax.xml.registry.JAXRException
javax.xml.registry.JAXRException
- if an internal error occurs on getting xsd link.java.lang.String getSchemaName() throws javax.xml.registry.JAXRException
javax.xml.registry.JAXRException
- if an internal error occurs on getting schema name.java.lang.String getDoctypeName() throws javax.xml.registry.JAXRException
javax.xml.registry.JAXRException
- if an internal error occurs on getting doc type name.java.lang.String toXML() throws javax.xml.registry.JAXRException
javax.xml.registry.JAXRException
- if a JAXR error occursjava.lang.String toXmlForExport() throws javax.xml.registry.JAXRException
javax.xml.registry.JAXRException
- if a JAXR error occursvoid checkValidLocalName(java.lang.String value) throws java.lang.Exception
value
- the string to be checkedjava.lang.Exception
- if an internal error occurs.void checkValidNameSpace(java.lang.String value) throws java.lang.Exception
value
- the string to be checkedjava.lang.Exception
- if an internal error occurs.void save(RepositoryConnector repCon) throws java.lang.Exception
repCon
- repository connectorjava.lang.Exception
- in case of any storage/retrieval failurevoid delete(RepositoryConnector repCon) throws java.lang.Exception
repCon
- repository connectorjava.lang.Exception
- in case of any storage/retrieval failurevoid lock() throws javax.xml.registry.JAXRException
javax.xml.registry.JAXRException
- if an internal error occurs.java.lang.String ncName(java.lang.String value) throws javax.xml.registry.JAXRException
value
- the value to be converted to NCNamejavax.xml.registry.JAXRException
- if an internal error occurs.java.util.Collection<CentraSiteTypeDescription> getReverselyAggregatingTypes() throws javax.xml.registry.JAXRException
javax.xml.registry.JAXRException
- if an internal error occurs.java.util.Collection<CentraSiteTypeDescription> getCompositedUsingTargetTypes() throws javax.xml.registry.JAXRException
javax.xml.registry.JAXRException
- if an internal error.java.util.Collection<CentraSiteTypeDescription> getAggregatedUsingTargetTypes() throws javax.xml.registry.JAXRException
javax.xml.registry.JAXRException
- if an internal error occurs.void addConsumableTypes(java.util.Collection<CentraSiteTypeDescription> consumableTypes) throws javax.xml.registry.JAXRException
consumableTypes
- Collection
of CentraSiteTypeDescription
as consumable types to be added to the type.javax.xml.registry.JAXRException
- if internal error occurs while adding the given types as consumable types.void removeConsumableTypes(java.util.Collection<CentraSiteTypeDescription> consumableTypes) throws javax.xml.registry.JAXRException
consumableType
- CentraSiteTypeDescription
the consumable type to be removed from the type.javax.xml.registry.JAXRException
- if internal error occurs while removing the given consumable type from the type.void setConsumableTypes(java.util.Collection<CentraSiteTypeDescription> consumableTypes) throws javax.xml.registry.JAXRException
consumableTypes
- Collection
of CentraSiteTypeDescription
as the consumable types of the type.javax.xml.registry.JAXRException
- if internal error occurs while setting the given consumable type from the type.java.util.Collection<CentraSiteTypeDescription> getConsumableTypes() throws javax.xml.registry.JAXRException
Collection
of CentraSiteTypeDescription
as the consumable types of the type.javax.xml.registry.JAXRException
- if internal error occurs while fetching the consumable types of the type.java.lang.String getConsumerRegistrationKey() throws javax.xml.registry.JAXRException
javax.xml.registry.JAXRException
- if an internal error occurs while fetching the consumer registration key.boolean canRemoveConsumableType(CentraSiteTypeDescription consumableType) throws javax.xml.registry.JAXRException
JAXRException
is thrown.
The check is performed by verifying if there are any assets of this type that has consumers which are assets
of the given type. If such an association exists, then the consumable type cannot be removed and it returns false
.
On the other hand, if no such association exists, then this method returns true
.consumableType
- The CentraSiteTypeDescription
that is already a consumable type for this typetrue
if the given type is allowed to be removed as a consumable type
and false
otherwisejavax.xml.registry.JAXRException
- If the given type is not a consumable type for this type or if an error occurs while
performing the check.