|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 RepositoryObject
id
- 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
ObjectMutationException
protected 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 RepositoryObject
ObjectMutationException
- If object already has an assigned ID, indicating
that is has already been constructed.public java.lang.String getName()
getName
in interface RepositoryObject
public java.lang.String setName(java.lang.String newName)
RepositoryObject
setName
in interface RepositoryObject
newName
- New name to set on the object.
public java.lang.String getId()
getId
in interface RepositoryObject
public Repository getRepository()
getRepository
in interface RepositoryObject
public boolean hasProperty(java.lang.String propertyName)
hasProperty
in interface RepositoryObject
propertyName
-
public java.lang.Object getProperty(java.lang.String propertyName)
getProperty
in interface RepositoryObject
propertyName
- The name of the property to retrieve.
public void setProperty(java.lang.String propertyName, java.lang.Object propertyValue)
setProperty
in interface RepositoryObject
propertyName
- value
- objectpublic int compareTo(java.lang.Object arg0)
compareTo
in interface java.lang.Comparable
compareTo
in interface RepositoryObject
public java.lang.String toString()
toString
in interface RepositoryObject
toString
in class java.lang.Object
public int getType()
getType
in interface RepositoryObject
public java.util.Map getProperties()
getProperties
in interface RepositoryObject
protected void setRepository(Repository rep)
public boolean isNull()
isNull
in interface RepositoryObject
public java.util.Set getPropertyNames()
getPropertyNames
in interface RepositoryObject
public void accept(RepositoryVisitor visitor) throws java.lang.Throwable
accept
in interface RepositoryObject
java.lang.Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |