|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CPPermissionManager
Interface that performs access control checks, e. g. this can be used to test if a user is allowed to create ratings or to view tags.
For portal resources this interface is backed by the default portal access control layer whereas for custom resources an extension point is provided allowing to plug-in custom access control logic for tags and ratings.
This interface is designed to be implemented by clients. |
Method Summary | ||
---|---|---|
boolean |
canCreateCollaborativeResource(CollaborativeResourceType aType,
ObjectID userID)
Checks if the given user is allowed to create a collaborative resource of the given type |
|
boolean |
canCreatePrivateResource(CollaborativeResourceType aType,
ObjectID userID)
Checks if the given user is allowed to create a private collaborative resource of the given type |
|
boolean |
canCreateTag(CollaborativeResourceType aType,
ObjectID userID,
java.lang.String aTagName,
boolean isPrivate)
Checks if the given user is allowed to create a concrete tag. |
|
|
canDeleteCollaborativeResource(CollaborativeResourceType aType,
ObjectID userID,
C aResource)
Checks if the given user is allowed to delete the given collaborative resource |
|
|
canDeletePrivateResource(CollaborativeResourceType aType,
ObjectID userID,
C aResource)
Checks if the given user is allowed to delete the given private collaborative resource |
|
boolean |
canDeleteTag(CollaborativeResourceType aType,
ObjectID userID,
Tag aTag)
Checks if the given user is allowed to delete a concrete tag. |
|
boolean |
canUpdateTag(CollaborativeResourceType aType,
ObjectID userID,
Tag aTag)
Checks if the given user is allowed to update a concrete tag. |
|
boolean |
canViewCollaborativeResource(CollaborativeResourceType aType,
ObjectID userID)
Checks if the given user is allowed to read (view) a collaborative resource of the given type |
|
boolean |
canViewTag(CollaborativeResourceType aType,
ObjectID userID,
java.lang.String aTagName)
Checks if the given user is allowed to read (view) a concrete tag. |
Method Detail |
---|
boolean canCreateCollaborativeResource(CollaborativeResourceType aType, ObjectID userID) throws CPPermissionManagerException
aType
- The collaborative resource typeuserID
- The ObjectID
of the user
true
if the user is allowed to create a
collaborative resources of the given type
CPPermissionManagerException
boolean canCreatePrivateResource(CollaborativeResourceType aType, ObjectID userID) throws CPPermissionManagerException
aType
- The collaborative resource typeuserID
- The ObjectID
of the user
true
if the user is allowed to create a
private collaborative resources of the given type
CPPermissionManagerException
boolean canViewCollaborativeResource(CollaborativeResourceType aType, ObjectID userID) throws CPPermissionManagerException
aType
- The collaborative resource typeuserID
- The ObjectID
of the user
true
if the user is allowed to create a
collaborative resources of the given type
CPPermissionManagerException
<C extends CollaborativeResource> boolean canDeleteCollaborativeResource(CollaborativeResourceType aType, ObjectID userID, C aResource) throws CPPermissionManagerException
aType
- The collaborative resource typeuserID
- The ObjectID
of the useraResource
- The private collaborative resource the user wants to delete
true
if the user is allowed to delete the given
collaborative resource
CPPermissionManagerException
<C extends CollaborativeResource> boolean canDeletePrivateResource(CollaborativeResourceType aType, ObjectID userID, C aResource) throws CPPermissionManagerException
aType
- The collaborative resource typeuserID
- The ObjectID
of the useraResource
- The private collaborative resource the user wants to delete
true
if the user is allowed to delete the given
collaborative resource
CPPermissionManagerException
boolean canCreateTag(CollaborativeResourceType aType, ObjectID userID, java.lang.String aTagName, boolean isPrivate) throws CPPermissionManagerException
aType
- The collaborative resource typeuserID
- The ObjectID
of the useraTagName
- The name of the Tag
to be createdisPrivate
- Flag indicating whether the Tag
is private
true
if the user is allowed to create the concrete tag.
CPPermissionManagerException
boolean canViewTag(CollaborativeResourceType aType, ObjectID userID, java.lang.String aTagName) throws CPPermissionManagerException
aType
- The collaborative resource typeuserID
- The ObjectID
of the useraTagName
- The name of the Tag
to be created * @return true
if the user is allowed to read (view) the concrete tag.
CPPermissionManagerException
boolean canUpdateTag(CollaborativeResourceType aType, ObjectID userID, Tag aTag) throws CPPermissionManagerException
aType
- The collaborative resource typeuserID
- The ObjectID
of the useraTag
- The Tag
to be updated
true
if the user is allowed to update the concrete tag.
CPPermissionManagerException
boolean canDeleteTag(CollaborativeResourceType aType, ObjectID userID, Tag aTag) throws CPPermissionManagerException
aType
- The collaborative resource typeuserID
- The ObjectID
of the useraTag
- The Tag
to be deleted
true
if the user is allowed to delete the concrete tag.
CPPermissionManagerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |