|
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 Nodes 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 ContentBasepublic void setNode(Node node)
setNode in interface ContentBasepublic String getContentType()
getContentType in interface ContentBasepublic String getCreatedBy()
getCreatedBy in interface ContentBasepublic String getModifiedBy()
getModifiedBy in interface ContentBasepublic Calendar getCreatedDate()
getCreatedDate in interface ContentBasepublic Calendar getModifiedDate()
getModifiedDate in interface ContentBasepublic String getNodePath()
getNodePath in interface ContentBasepublic CommunityContent.NodeType getNodeType()
getNodeType in interface ContentBasepublic boolean isHierarchyNode()
isHierarchyNode in interface ContentBasepublic boolean isContentNode()
isContentNode in interface ContentBasepublic ID getId()
getId in interface ContentBasepublic ID getParentId()
getParentId in interface ContentBasepublic String getName()
getName in interface ContentBase
public String getDisplayName()
throws RepositoryException
ContentBaseTITLE in all COMMUNITY_CONTENT
getDisplayName in interface ContentBaseRepositoryExceptionpublic com.bea.apps.groupspace.icons.Icon getIcon()
getIcon in interface ContentBasepublic ID getDestinationFolderId()
getDestinationFolderId in interface ContentBasepublic void setDestinationFolderId(ID id)
setDestinationFolderId in interface ContentBasepublic ID getCurrentParentFolderId()
getCurrentParentFolderId in interface ContentBasepublic void setCurrentParentFolderId(ID id)
setCurrentParentFolderId in interface ContentBasepublic Property[] getNodeProperties()
getNodeProperties in interface ContentBasepublic 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 ContentBasepublic static Value[] arrayAsValueArray(String[] strings)
protected String getValue(String desc)
protected String[] getStringValues(String desc)
public int hashCode()
hashCode in class Objectpublic boolean equals(Object that)
equals in class Objectpublic 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 | ||||||||