|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bea.apps.groupspace.content.ContentBaseImpl
public abstract class ContentBaseImpl
Copyright (c) 2005-2006 by BEA Systems, Inc. All Rights Reserved.
basic implementation of node wrapper interface; makes the process of getting/settingProperty
-s of Node
s easier.
Field Summary | |
---|---|
protected Node |
node
All base attributes will be gotten from the Node |
String |
typeName
|
Constructor Summary | |
---|---|
ContentBaseImpl()
|
|
ContentBaseImpl(Node node)
|
Method Summary | |
---|---|
static Value[] |
arrayAsValueArray(String[] strings)
|
boolean |
equals(Object that)
|
String |
getContentType()
|
String |
getCreatedBy()
|
Calendar |
getCreatedDate()
|
ID |
getCurrentParentFolderId()
|
ID |
getDestinationFolderId()
|
String |
getDisplayName()
Returns a display name for the Node; primary property if one exists, name if not. |
com.bea.apps.groupspace.icons.Icon |
getIcon()
|
ID |
getId()
|
String |
getModifiedBy()
|
Calendar |
getModifiedDate()
|
String |
getName()
|
Node |
getNode()
|
String |
getNodePath()
|
Property[] |
getNodeProperties()
Wrap AuthorizationException and rethrow as RuntimeException so all the get/set methods don'y have to deal with it |
Property |
getNodeProperty(String pname)
Wrap AuthorizationException and rethrow as RuntimeException so all the get/set methods don'y have to deal with it |
CommunityContent.NodeType |
getNodeType()
|
ID |
getParentId()
|
protected String[] |
getStringValues(String desc)
|
protected String |
getValue(String desc)
|
int |
hashCode()
HashCode implementation, important since we're using contains() in Collections |
boolean |
isContentNode()
|
boolean |
isHierarchyNode()
|
void |
setCurrentParentFolderId(ID id)
|
void |
setDestinationFolderId(ID id)
|
void |
setNode(Node node)
|
void |
setProperty(String propName,
Value newValue)
Set a single property, but it has to be within the Property [] of the node |
void |
setProperty(String propName,
Value[] newValues)
Set a single array property, but it has to be within the Property [] of the node |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Node node
public String typeName
Constructor Detail |
---|
public ContentBaseImpl()
public ContentBaseImpl(Node node)
Method Detail |
---|
public Node getNode()
getNode
in interface ContentBase
public void setNode(Node node)
setNode
in interface ContentBase
public String getContentType()
getContentType
in interface ContentBase
public String getCreatedBy()
getCreatedBy
in interface ContentBase
public String getModifiedBy()
getModifiedBy
in interface ContentBase
public Calendar getCreatedDate()
getCreatedDate
in interface ContentBase
public Calendar getModifiedDate()
getModifiedDate
in interface ContentBase
public String getNodePath()
getNodePath
in interface ContentBase
public CommunityContent.NodeType getNodeType()
getNodeType
in interface ContentBase
public boolean isHierarchyNode()
isHierarchyNode
in interface ContentBase
public boolean isContentNode()
isContentNode
in interface ContentBase
public ID getId()
getId
in interface ContentBase
public ID getParentId()
getParentId
in interface ContentBase
public String getName()
getName
in interface ContentBase
public String getDisplayName() throws RepositoryException
ContentBase
TITLE
in all COMMUNITY_CONTENT
getDisplayName
in interface ContentBase
RepositoryException
public com.bea.apps.groupspace.icons.Icon getIcon()
getIcon
in interface ContentBase
public ID getDestinationFolderId()
getDestinationFolderId
in interface ContentBase
public void setDestinationFolderId(ID id)
setDestinationFolderId
in interface ContentBase
public ID getCurrentParentFolderId()
getCurrentParentFolderId
in interface ContentBase
public void setCurrentParentFolderId(ID id)
setCurrentParentFolderId
in interface ContentBase
public Property[] getNodeProperties()
getNodeProperties
in interface ContentBase
public Property getNodeProperty(String pname)
getNodeProperty
in interface ContentBase
public void setProperty(String propName, Value newValue)
setProperty
in interface ContentBase
public void setProperty(String propName, Value[] newValues)
setProperty
in interface ContentBase
public static Value[] arrayAsValueArray(String[] strings)
protected String getValue(String desc)
protected String[] getStringValues(String desc)
public int hashCode()
hashCode
in class Object
public boolean equals(Object that)
equals
in class Object
public String toString()
toString
in class Object
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |