|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.sconman.PermissionAggregator net.sourceforge.sconman.Role
public class Role
Roles group users according to the way they must use and access to the
Category
and ContentType
defined in the Project
,
defining the set of permissions that User
with that role will have.
Field Summary | |
---|---|
(package private) java.lang.String |
id
The role id |
Fields inherited from class net.sourceforge.sconman.PermissionAggregator |
---|
permissions, sctx |
Constructor Summary | |
---|---|
Role(SecurityContext sctx,
java.lang.String id)
Main constructor |
Method Summary | |
---|---|
java.lang.String |
getId()
Returns the role id |
boolean |
hasAddNewPermission(ContentType ctype)
Checks whether the aggregator can create new contents of the given type |
boolean |
hasAdminProjectPermission()
Checks that the user can manage the project (Manage Roles and Users) |
boolean |
hasDeletePermission(Category cat)
Checks whether the aggregator can remove a category |
boolean |
hasDeletePermission(ContentType ctype)
Checks whether the aggregator can delete that content type |
boolean |
hasModifyPermission(Category cat)
Checks whether the aggregator can modify a category |
boolean |
hasModifyPermission(ContentType ctype)
Checks whether the aggregator can modify that content type |
boolean |
hasViewPermission(Category cat)
Checks whether the aggregator can view a category |
boolean |
hasViewPermission(ContentType ctype)
Checks whether the aggregator can view that content type |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
java.lang.String id
Constructor Detail |
---|
Role(SecurityContext sctx, java.lang.String id)
sctx
- id
- Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getId()
public boolean hasAddNewPermission(ContentType ctype)
PermissionAggregator
hasAddNewPermission
in class PermissionAggregator
public boolean hasAdminProjectPermission()
PermissionAggregator
hasAdminProjectPermission
in class PermissionAggregator
public boolean hasDeletePermission(Category cat)
PermissionAggregator
hasDeletePermission
in class PermissionAggregator
public boolean hasDeletePermission(ContentType ctype)
PermissionAggregator
hasDeletePermission
in class PermissionAggregator
public boolean hasModifyPermission(Category cat)
PermissionAggregator
hasModifyPermission
in class PermissionAggregator
public boolean hasModifyPermission(ContentType ctype)
PermissionAggregator
hasModifyPermission
in class PermissionAggregator
public boolean hasViewPermission(ContentType ctype)
PermissionAggregator
hasViewPermission
in class PermissionAggregator
public boolean hasViewPermission(Category cat)
PermissionAggregator
hasViewPermission
in class PermissionAggregator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |