|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.silverpeas.util.i18n.AbstractI18NBean<NodeI18NDetail>
com.stratelia.webactiv.util.node.model.NodeDetail
public class NodeDetail
This object contains the description of a node (own attributes and children attributes)
Field Summary | |
---|---|
static String |
DEFAULT_TYPE
|
static String |
FILE_LINK_TYPE
|
static String |
STATUS_INVISIBLE
|
static String |
STATUS_VISIBLE
|
Constructor Summary | |
---|---|
NodeDetail()
Construct an empty NodeDetail |
|
NodeDetail(NodeDetail detail)
|
|
NodeDetail(NodePK nodePK,
String name,
String description,
String creationDate,
String creatorId,
String path,
int level,
NodePK fatherPK,
Collection<NodeDetail> childrenDetails)
Create a new NodeDetail |
|
NodeDetail(NodePK nodePK,
String name,
String description,
String creationDate,
String creatorId,
String path,
int level,
NodePK fatherPK,
String modelId,
String status,
Collection<NodeDetail> childrenDetails)
|
|
NodeDetail(NodePK nodePK,
String name,
String description,
String creationDate,
String creatorId,
String path,
int level,
NodePK fatherPK,
String modelId,
String status,
Collection<NodeDetail> childrenDetails,
String type)
|
|
NodeDetail(String id,
String name,
String description,
String creationDate,
String creatorId,
String path,
int level,
String fatherId,
String modelId,
String status,
Collection<NodeDetail> childrenDetails)
|
|
NodeDetail(String id,
String name,
String description,
String creationDate,
String creatorId,
String path,
int level,
String fatherId,
String modelId,
String status,
Collection<NodeDetail> childrenDetails,
String type)
|
|
NodeDetail(String id,
String name,
String description,
String creationDate,
String creatorId,
String path,
String level,
String fatherId)
Create a new NodeDetail |
|
NodeDetail(String id,
String name,
String description,
String creationDate,
String creatorId,
String path,
String level,
String fatherId,
String type)
|
Method Summary | |
---|---|
boolean |
canBeAccessedBy(UserDetail user)
Is the specified user can access this node? |
NodeDetail |
clone()
|
boolean |
equals(Object other)
|
Collection<NodeDetail> |
getChildrenDetails()
Get the details of each child |
int |
getChildrenNumber()
Get the number of children of the node |
String |
getCreationDate()
Get the creation date |
String |
getCreatorId()
Get the creator id |
String |
getDefaultUrl(String componentName)
|
NodePK |
getFatherPK()
Get the NodePK of the father |
String |
getFullPath()
|
int |
getId()
Méthode nécéssaire au marshalling castor |
int |
getLevel()
Get the level |
String |
getLink()
|
String |
getModelId()
Get the modelId |
int |
getNbObjects()
|
NodePK |
getNodePK()
Get the NodePK |
int |
getOrder()
|
String |
getPath()
Get the path |
String |
getPermalink()
|
int |
getRightsDependsOn()
|
String |
getStatus()
Get the status |
String |
getType()
|
String |
getURL()
|
String |
getUserRole()
|
boolean |
hasFather()
|
int |
hashCode()
|
boolean |
haveInheritedRights()
|
boolean |
haveLocalRights()
|
boolean |
haveRights()
|
boolean |
isFatherOf(NodeDetail node)
|
boolean |
isUseId()
|
void |
setChildrenDetails(Collection<NodeDetail> childrenDetails)
Set the details of children |
void |
setCreationDate(String date)
Set the creation date |
void |
setCreatorId(String creatorId)
Set the creator id |
void |
setFatherPK(NodePK fatherPK)
Set the father of the node |
void |
setId(int id)
Méthode nécéssaire au marshalling castor |
void |
setLevel(int level)
Set the level |
void |
setModelId(String modelId)
Set the modelId |
void |
setNbObjects(int nbObjects)
|
void |
setNodePK(NodePK nodePK)
|
void |
setOrder(int order)
|
void |
setPath(String path)
Set the path |
void |
setRightsDependsOn(int rightsDependsOn)
|
void |
setRightsDependsOnMe()
|
void |
setStatus(String status)
Set the status |
void |
setType(String type)
|
void |
setUseId(boolean useId)
|
void |
setUserRole(String userRole)
|
String |
toString()
Converts the contents of the key into a readable String. |
Methods inherited from class com.silverpeas.util.i18n.AbstractI18NBean |
---|
addTranslation, getClonedTranslations, getDescription, getDescription, getLanguage, getLanguages, getLanguageToDisplay, getName, getName, getNextTranslation, getTranslation, getTranslationId, getTranslations, isRemoveTranslation, setDescription, setLanguage, setName, setRemoveTranslation, setTranslationId, setTranslations, setTranslations, setTranslations |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_TYPE
public static final String FILE_LINK_TYPE
public static final String STATUS_VISIBLE
public static final String STATUS_INVISIBLE
Constructor Detail |
---|
public NodeDetail(NodeDetail detail)
public NodeDetail()
public NodeDetail(NodePK nodePK, String name, String description, String creationDate, String creatorId, String path, int level, NodePK fatherPK, Collection<NodeDetail> childrenDetails)
nodePK
- NodePK of the nodename
- The node namedescription
- The node descriptioncreationDate
- A string which represent the creation datecreatorId
- The name of the node creatorpath
- The node pathlevel
- The node level (root level = 1)fatherPK
- The nodePK of the fatherchildrenDetails
- A NodeDetail collection which contains each childCollection
,
NodePK
,
NodeDetail
public NodeDetail(String id, String name, String description, String creationDate, String creatorId, String path, String level, String fatherId)
id
- id of the nodename
- The node namedescription
- The node descriptioncreationDate
- A string which represent the creation datecreatorId
- The name of the node creatorpath
- The node pathlevel
- The node level (root level = 1)fatherId
- The id of the fatherCollection
,
NodeDetail
public NodeDetail(String id, String name, String description, String creationDate, String creatorId, String path, String level, String fatherId, String type)
public NodeDetail(NodePK nodePK, String name, String description, String creationDate, String creatorId, String path, int level, NodePK fatherPK, String modelId, String status, Collection<NodeDetail> childrenDetails, String type)
public NodeDetail(String id, String name, String description, String creationDate, String creatorId, String path, int level, String fatherId, String modelId, String status, Collection<NodeDetail> childrenDetails, String type)
public NodeDetail(NodePK nodePK, String name, String description, String creationDate, String creatorId, String path, int level, NodePK fatherPK, String modelId, String status, Collection<NodeDetail> childrenDetails)
public NodeDetail(String id, String name, String description, String creationDate, String creatorId, String path, int level, String fatherId, String modelId, String status, Collection<NodeDetail> childrenDetails)
Method Detail |
---|
public NodePK getNodePK()
public void setNodePK(NodePK nodePK)
public int getId()
public String getCreationDate()
public String getCreatorId()
public String getPath()
public int getLevel()
public String getModelId()
public String getStatus()
public NodePK getFatherPK()
public Collection<NodeDetail> getChildrenDetails()
NodeDetail
public void setCreationDate(String date)
date
- A string representing a datepublic void setCreatorId(String creatorId)
creatorId
- The creator idpublic void setModelId(String modelId)
modelId
- the modelId of the nodepublic void setStatus(String status)
status
- the status of the nodepublic void setChildrenDetails(Collection<NodeDetail> childrenDetails)
childrenDetails
- a NodeDetail Collectionpublic void setFatherPK(NodePK fatherPK)
fatherPK
- the nodePK of the fatherpublic void setId(int id)
id
- public void setPath(String path)
path
- the path of the nodepublic void setLevel(int level)
level
- the level of the nodepublic int getChildrenNumber()
public int getOrder()
public void setOrder(int order)
public String toString()
toString
in class Object
public String getType()
public void setType(String type)
public boolean equals(Object other)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String getDefaultUrl(String componentName)
public String getURL()
public String getLink()
public String getPermalink()
public int getNbObjects()
public void setNbObjects(int nbObjects)
public int getRightsDependsOn()
public void setRightsDependsOn(int rightsDependsOn)
public void setRightsDependsOnMe()
public boolean haveLocalRights()
public boolean haveInheritedRights()
public boolean haveRights()
public String getUserRole()
public void setUserRole(String userRole)
public boolean isUseId()
public boolean hasFather()
public void setUseId(boolean useId)
public String getFullPath()
public NodeDetail clone()
clone
in class Object
public boolean isFatherOf(NodeDetail node)
public boolean canBeAccessedBy(UserDetail user)
user
- a user in Silverpeas.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |