|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectblackboard.data.BbObject
blackboard.cms.metadata.MetadataTemplate
The MetadataTemplate class provides a representation of a metadata key/display name pair
within the Blackboard application. Primarily, these objects are used for the Custom Metadata keys that are currently
used in the Content System.
Id mdtId = bbPm.generateId(blackboard.cms.metadata.MetadataTemplate.DATA_TYPE, strId);
mdt = MetadataTemplateManager.loadById(mdtId);
mdt.setLabel(strDisplayName);
mdt.setKey(strKeyName);
MetadataTemplateManager.save(mdt);
| Field Summary | |
static blackboard.persist.DataType |
DATA_TYPE
Object data type constant used in brokering loaders and persisters |
| Fields inherited from class blackboard.data.BbObject |
_bbAttributes |
| Constructor Summary | |
MetadataTemplate()
Creates an instance of MetadataTemplate with default property values. |
|
| Method Summary | |
blackboard.persist.DataType |
getDataType()
Returns the DataType identifier for this object. |
java.lang.String |
getKey()
Returns the key for the MetadataTemplate. |
java.lang.String |
getLabel()
Returns the label for the MetadataTemplate. |
void |
setKey(java.lang.String str)
Sets the key for the MetadataTemplate. |
void |
setLabel(java.lang.String str)
Sets the label for the MetadataTemplate. |
void |
validate()
Validates the contents of this MetadataTemplate. |
| Methods inherited from class blackboard.data.BbObject |
clone, getBbAttributes, getCreatedDate, getId, getModifiedDate, persist, setCreatedDate, setId, setModifiedDate, toString |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final blackboard.persist.DataType DATA_TYPE
| Constructor Detail |
public MetadataTemplate()
MetadataTemplate with default property values.
| Method Detail |
public java.lang.String getLabel()
MetadataTemplate. The label is the human-readable display name of this MetadataTemplate.
String representing the label for the MetadataTemplate.public void setLabel(java.lang.String str)
MetadataTemplate. The label is the human-readable display name of this MetadataTemplate.
str - a String representing the label for the MetadataTemplate.public java.lang.String getKey()
MetadataTemplate. The key is the key name of this MetadataTemplate, which be used to distinguish, identify, and categorize these elements.For example: ims.contributor, dublin_core.content.lifecycle
String representing the key for the MetadataTemplate.public void setKey(java.lang.String str)
MetadataTemplate. The key is the key name of this MetadataTemplate, which be used to distinguish, identify, and categorize these elements.For example: ims.contributor, dublin_core.content.lifecycle
str - a String representing the key for the MetadataTemplate.public blackboard.persist.DataType getDataType()
DataType identifier for this object. Can be used to
uniquely identify the "type" of this data object.
DataType for this object
public void validate()
throws blackboard.data.ValidationException
MetadataTemplate. Internal consistency
checks are also performed.
blackboard.data.ValidationException - if validation of this object fails
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||