|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xiruss.repository.server.RepositoryObjectBase
public class RepositoryObjectBase
Superclass for all SnapCM Repository objects.
| Field Summary | |
|---|---|
protected java.lang.String |
id
|
protected java.lang.String |
name
|
protected int |
objectTypeConstant
|
protected java.util.Map |
properties
|
protected Repository |
rep
|
| Constructor Summary | |
|---|---|
RepositoryObjectBase()
|
|
| Method Summary | |
|---|---|
void |
accept(RepositoryVisitor visitor)
|
int |
compareTo(java.lang.Object arg0)
|
java.lang.String |
getId()
|
java.lang.String |
getName()
|
java.util.Map |
getProperties()
Returns the hash map of properties for the object. |
java.lang.Object |
getProperty(java.lang.String propertyName)
|
java.util.Set |
getPropertyNames()
|
Repository |
getRepository()
|
int |
getType()
|
boolean |
hasProperty(java.lang.String propertyName)
|
protected void |
initialize(Repository rep,
java.lang.String objId)
|
void |
initialize(Repository rep,
java.lang.String objId,
java.lang.String objName)
Initialize the object with the specified object ID and name. |
boolean |
isNull()
|
void |
setId(java.lang.String id)
Sets the ID on a newly-created repository object. |
java.lang.String |
setName(java.lang.String newName)
Sets the name of object. |
protected void |
setProperties(java.util.HashMap properties)
Only to be used for object persistence. |
void |
setProperty(java.lang.String propertyName,
java.lang.Object propertyValue)
|
protected void |
setRepository(Repository rep)
|
protected void |
setType(int objectType)
Only to be used for object persistence. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Repository rep
protected java.util.Map properties
protected java.lang.String name
protected java.lang.String id
protected int objectTypeConstant
| Constructor Detail |
|---|
public RepositoryObjectBase()
| Method Detail |
|---|
public void setId(java.lang.String id)
throws ObjectMutationException
RepositoryObject
setId in interface RepositoryObjectid - Object ID (assigned by the owning repository)
ObjectMutationException - If object already has an assigned ID, indicating
that is has already been constructed.
protected void initialize(Repository rep,
java.lang.String objId)
throws ObjectMutationException
ObjectMutationExceptionprotected void setType(int objectType)
objectType - one of XirussRepConst.SnapcmObjectTypesprotected void setProperties(java.util.HashMap properties)
properties -
public void initialize(Repository rep,
java.lang.String objId,
java.lang.String objName)
throws ObjectMutationException
RepositoryObject
initialize in interface RepositoryObjectObjectMutationException - If object already has an assigned ID, indicating
that is has already been constructed.public java.lang.String getName()
getName in interface RepositoryObjectpublic java.lang.String setName(java.lang.String newName)
RepositoryObject
setName in interface RepositoryObjectnewName - New name to set on the object.
public java.lang.String getId()
getId in interface RepositoryObjectpublic Repository getRepository()
getRepository in interface RepositoryObjectpublic boolean hasProperty(java.lang.String propertyName)
hasProperty in interface RepositoryObjectpropertyName -
public java.lang.Object getProperty(java.lang.String propertyName)
getProperty in interface RepositoryObjectpropertyName - The name of the property to retrieve.
public void setProperty(java.lang.String propertyName,
java.lang.Object propertyValue)
setProperty in interface RepositoryObjectpropertyName - value - objectpublic int compareTo(java.lang.Object arg0)
compareTo in interface java.lang.ComparablecompareTo in interface RepositoryObjectpublic java.lang.String toString()
toString in interface RepositoryObjecttoString in class java.lang.Objectpublic int getType()
getType in interface RepositoryObjectpublic java.util.Map getProperties()
getProperties in interface RepositoryObjectprotected void setRepository(Repository rep)
public boolean isNull()
isNull in interface RepositoryObjectpublic java.util.Set getPropertyNames()
getPropertyNames in interface RepositoryObject
public void accept(RepositoryVisitor visitor)
throws java.lang.Throwable
accept in interface RepositoryObjectjava.lang.Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||