livespace.services.entities
Class DocumentEntity
java.lang.Object
dsto.dfc.databeans.AbstractDataObject
dsto.dfc.databeans.SimpleDataObject
dsto.dfc.databeans.FancyDataObject
livespace.services.Entity
livespace.services.entities.DocumentEntity
- All Implemented Interfaces:
- IDataObject, IDataObjectChildListener, Cloneable
public class DocumentEntity
- extends Entity
Represents a document within an information repository (such as Microsoft Sharepoint).
The id of the document corresponds to the url where the document is located.
- Author:
- Steven Johnson
Created on 14/01/2005
- To do:
- add reference to parent(DocumentLibraryEntity)?
Method Summary |
String |
getType()
The type of the object (eg "room", "light", "volume", etc). |
Methods inherited from class livespace.services.Entity |
create, createId, getElvin, getType, getTypeInfo, mutex, sameEntity, shallowClone, waitForProperty, waitForProperty, waitForProperty, waitForProperty |
Methods inherited from class dsto.dfc.databeans.AbstractDataObject |
addFirstPropertyListener, addPropertyListener, firePropertyChangedEvent, firePropertyChangedEvent, firePropertyChangedEvent, firePropertyChangedEvent, firePropertyChangedEvent, firePropertyChangedEvent, getBeanValue, getBooleanValue, getBooleanValue, getCharValue, getCharValue, getDoubleValue, getDoubleValue, getFloatValue, getFloatValue, getIntValue, getIntValue, getLongValue, getLongValue, getObjectValue, getPropertyListeners, getShortValue, getStringValue, registerValue, removePropertyListener, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, toString, unregisterValue |
ENTITY_TYPE
public static final String ENTITY_TYPE
- See Also:
- Constant Field Values
url
public String url
DocumentEntity
public DocumentEntity()
DocumentEntity
public DocumentEntity(String id,
String url)
DocumentEntity
public DocumentEntity(String id,
String url,
String name)
- Creates a document entity with the specified name and url. The id of this
document will be set the url value passed in to this constructor
- Parameters:
url
- location of the documentname
- name of the document
getType
public String getType()
- Description copied from class:
Entity
- The type of the object (eg "room", "light", "volume", etc). This must be
unique to the entity class.
NOTE: it is also a good practice to provide a static field that defines the
entity type on the class: eg
public static final String ENTITY_TYPE = "room";
- Specified by:
getType
in class Entity
Copyright © 2008 Commonwealth of Australia