|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pt.digitalis.dif.utils.extensions.cms.Node
public class Node
Content node definition class
Constructor Summary | |
---|---|
Node(Long parentNodeId,
String name,
String creatorID,
IDIFUser user)
Constructor |
Method Summary | |
---|---|
boolean |
delete()
Node is deleted in DB. |
boolean |
deleteCascade()
Node is deleted in DB, as well has its child nodes. |
List<ACLEntry> |
getACL()
Get ACL. |
Date |
getCreationDate()
Inspector for the 'creationDate' attribute. |
String |
getCreatorID()
Inspector for the 'creatorID' attribute. |
String |
getDescription()
Inspector for the 'description' attribute. |
String |
getFullPathName()
Inspector for the 'fullPathName' attribute. |
Long |
getId()
Inspector for the 'id' attribute. |
List<Node> |
getInnerNodes()
|
List<ContentItem> |
getItems()
|
String |
getName()
Inspector for the 'name' attribute. |
Node |
getParentNode()
|
Long |
getParentNodeId()
Inspector for the 'parentNodeId' attribute. |
IDIFUser |
getUser()
Inspector for the 'user' attribute. |
boolean |
grantAccessGroup(String groupId)
Grants Node access to group. |
boolean |
grantAccessUser(IDIFUser user)
Grants Node access to user. |
boolean |
isDeleted()
Inspector for the 'isDeleted' attribute. |
boolean |
isPublic()
Inspector for the 'isPublic' attribute. |
boolean |
revokeAccessGroup(String groupId)
Revokes Node access to group. revoke access is done immediately |
boolean |
revokeAccessUser(IDIFUser user)
Revokes Node access to group. revoke access is done immediately |
void |
setCreationDate(Date creationDate)
Modifier for the 'creationDate' attribute. |
void |
setCreatorID(String creatorID)
Modifier for the 'creatorID' attribute. |
void |
setDescription(String description)
Modifier for the 'description' attribute. |
void |
setFullPathName(String fullPathName)
Modifier for the 'fullPathName' attribute. |
void |
setId(Long id)
Modifier for the 'id' attribute. |
void |
setName(String name)
Modifier for the 'name' attribute. |
void |
setParentNodeId(long parentNodeId)
Modifier for the 'parentNodeId' attribute. |
void |
setPublic(boolean isPublic)
Modifier for the 'isPublic' attribute. |
void |
setUser(IDIFUser user)
Sets the 'user' attribute. |
boolean |
update()
Updates the Node with current object values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Node(Long parentNodeId, String name, String creatorID, IDIFUser user)
parentNodeId
- the parent node IDname
- the node NamecreatorID
- the creator IDuser
- the user instantiating the NodeMethod Detail |
---|
public boolean delete() throws IdentityManagerException, ContentManagerException
IdentityManagerException
ContentManagerException
public boolean deleteCascade() throws IdentityManagerException, ContentManagerException
IdentityManagerException
ContentManagerException
public List<ACLEntry> getACL() throws ContentManagerException
ContentManagerException
public Date getCreationDate()
public String getCreatorID()
public String getDescription()
public String getFullPathName()
public Long getId()
public List<Node> getInnerNodes() throws IdentityManagerException, ContentManagerException
IdentityManagerException
ContentManagerException
public List<ContentItem> getItems() throws IdentityManagerException, ContentManagerException
IdentityManagerException
ContentManagerException
public String getName()
public Node getParentNode() throws IdentityManagerException, ContentManagerException
IdentityManagerException
ContentManagerException
public Long getParentNodeId()
public IDIFUser getUser()
public boolean grantAccessGroup(String groupId) throws ContentManagerException
groupId
- the group to grant access
ContentManagerException
public boolean grantAccessUser(IDIFUser user) throws ContentManagerException
user
- the user to grant access
ContentManagerException
public boolean isDeleted()
public boolean isPublic()
public boolean revokeAccessGroup(String groupId) throws ContentManagerException
groupId
- the group to revoke access
ContentManagerException
public boolean revokeAccessUser(IDIFUser user) throws ContentManagerException
user
- the user to revoke access
ContentManagerException
public void setCreationDate(Date creationDate)
creationDate
- the new creationDate value to setpublic void setCreatorID(String creatorID)
creatorID
- the new creatorID value to setpublic void setDescription(String description)
description
- the new description value to setpublic void setFullPathName(String fullPathName)
fullPathName
- the new fullPathName value to setpublic void setId(Long id)
id
- the new id value to setpublic void setName(String name)
name
- the new name value to setpublic void setParentNodeId(long parentNodeId)
parentNodeId
- the new parentNodeId value to setpublic void setPublic(boolean isPublic)
isPublic
- the new isPublic value to setpublic void setUser(IDIFUser user)
user
- the user currently using the objectpublic boolean update() throws IdentityManagerException, ContentManagerException
IdentityManagerException
ContentManagerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |