|
||||||||||
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.ContentItem
public class ContentItem
Content Item definition class
Constructor Summary | |
---|---|
ContentItem(IDIFUser user)
Default constructor for DocumentRepositoryEntry . |
|
ContentItem(Long parentNodeId,
String name,
String creatorID,
IDIFUser user)
|
Method Summary | |
---|---|
boolean |
delete()
ContentItem is deleted in DB. |
List<ACLEntry> |
getACL()
Get ACL. |
String |
getContent()
Inspector for the 'content' attribute. |
Date |
getCreationDate()
Inspector for the 'creationDate' attribute. |
String |
getCreatorID()
Inspector for the 'creatorID' attribute. |
String |
getDescription()
Inspector for the 'description' attribute. |
String |
getId()
Inspector for the 'id' attribute. |
String |
getName()
Inspector for the 'name' attribute. |
Node |
getParentNode()
|
Long |
getParentNodeId()
Inspector for the 'parentNodeId' attribute. |
IDIFUser |
getUser()
Inspector for the 'userId' attribute. |
boolean |
grantAccessGroup(String groupId)
Grants ContentItem access to group. |
boolean |
grantAccessUser(IDIFUser user)
Grants ContentItem access to user. |
boolean |
isDeleted()
Inspector for the 'isDeleted' attribute. |
boolean |
revokeAccessGroup(String groupId)
Revokes ContentItem access to group. revoke access is done immediately |
boolean |
revokeAccessUser(IDIFUser user)
Revokes ContentItem access to group. revoke access is done immediately |
void |
setContent(String content)
Modifier for the 'content' attribute. |
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 |
setId(String id)
Modifier for the 'id' attribute. |
void |
setName(String name)
Modifier for the 'name' attribute. |
void |
setUserId(IDIFUser user)
Sets the 'userId' attribute. |
boolean |
update()
Updates the ContentItem 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 ContentItem(IDIFUser user)
DocumentRepositoryEntry
.
user
- The current userpublic ContentItem(Long parentNodeId, String name, String creatorID, IDIFUser user)
parentNodeId
- the parent node IDname
- the content namecreatorID
- the creator IDuser
- The current userMethod Detail |
---|
public boolean delete() throws IdentityManagerException, ContentManagerException
IdentityManagerException
ContentManagerException
public List<ACLEntry> getACL() throws ContentManagerException
ContentManagerException
public String getContent()
public Date getCreationDate()
public String getCreatorID()
public String getDescription()
public String getId()
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 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 setContent(String content)
content
- the new content value to setpublic 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 setId(String id)
id
- the new id value to setpublic void setName(String name)
name
- the new name value to setpublic void setUserId(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 |