|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nees.repo.chef.DisplayMetadataObject
This class holds information about a MetadataObject so it can be displayed and manipulated in a user interface. The Relations of an object are represented by DisplayRelations which are kept in the read-only displayRelations property.
Typical Usage:
Used by the CHEF UI code to pass information about MD objects to the velocity templates used to display the objects.
Life Cycle:
Constructed by the CHEF UI code and passed to velocity templates, which use them to construct HTML views of the objects.
DisplayRelation| Constructor Summary | |
DisplayMetadataObject(MetadataObject obj,
NMDSFacade nmdsFacade,
Schema s)
|
|
| Method Summary | |
protected void |
createDisplayRelations()
Creates display relations for all the editable relations of the object. |
void |
createReferenceRelation(DisplayRelation dr)
Fill in values for a reference display relation. |
int |
getAccessionNumber()
Get the object's accession number. |
Identifier |
getClassId()
Get the object's class ID. |
java.lang.String |
getClassTitle()
Get the class's title |
java.lang.String |
getCreateTime()
Get the object's creation time in local string form. |
Identifier |
getIdentifier()
Get the object's ID. |
java.lang.String |
getIdentifierAsString()
Get the object's ID. |
LogicalName |
getLogicalName()
If it's a file, get its logical name |
MetadataClass |
getMetadataClass()
|
MetadataObject |
getMetadataObject()
|
Schema |
getSchema()
|
java.util.Vector |
getSingleReferenceDisplayRelations()
|
java.util.Vector |
getSingleStringDisplayRelations()
|
MetadataObjectSummary |
getSummary()
Get the object's MetadataObjectSummary. |
java.lang.String |
getTitle()
Get the object's title. |
java.lang.String |
getUpdateTime()
Get the object's update time in local string form. |
java.util.Vector |
getVectorReferenceDisplayRelations()
|
java.util.Vector |
getVectorStringDisplayRelations()
|
int |
getVersion()
Get the object's version number. |
boolean |
isContainer()
Determine whether an object is a container/folder. |
boolean |
isFile()
Is the object a file? |
boolean |
isViewable(Identifier relationID)
Is the relation viewable? |
void |
refreshSummary()
Refresh the object's summary information. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DisplayMetadataObject(MetadataObject obj,
NMDSFacade nmdsFacade,
Schema s)
| Method Detail |
public MetadataObject getMetadataObject()
public Schema getSchema()
public MetadataClass getMetadataClass()
throws MetadataException
MetadataExceptionprotected void createDisplayRelations()
public void createReferenceRelation(DisplayRelation dr)
public java.util.Vector getSingleStringDisplayRelations()
public java.util.Vector getSingleReferenceDisplayRelations()
public java.util.Vector getVectorStringDisplayRelations()
public java.util.Vector getVectorReferenceDisplayRelations()
public java.lang.String getTitle()
public MetadataObjectSummary getSummary()
public int getVersion()
public int getAccessionNumber()
public java.lang.String getCreateTime()
public java.lang.String getUpdateTime()
public Identifier getClassId()
throws MetadataException
MetadataException
public java.lang.String getClassTitle()
throws MetadataException
MetadataExceptionpublic Identifier getIdentifier()
public java.lang.String getIdentifierAsString()
public boolean isContainer()
public boolean isViewable(Identifier relationID)
relationID - the relationID
public boolean isFile()
throws MetadataException
MetadataException
public LogicalName getLogicalName()
throws MetadataException
MetadataException
public void refreshSummary()
throws NMDSException
NMDSException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||