|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.deltava.security.command.AccessControl
org.deltava.security.command.BlogAccessControl
public class BlogAccessControl
An Access Controller for blog entries.
| Field Summary |
|---|
| Fields inherited from class org.deltava.security.command.AccessControl |
|---|
_ctx |
| Constructor Summary | |
|---|---|
BlogAccessControl(SecurityContext ctx,
Entry e)
Initialize the Access Controller. |
|
| Method Summary | |
|---|---|
boolean |
getCanComment()
Returns whether the user can comment on the current blog entry. |
boolean |
getCanCreate()
Returns whether the user can create a new blog entry. |
boolean |
getCanDelete()
Returns whether the user can delete the current blog entry. |
boolean |
getCanEdit()
Returns whether the user can edit the current blog entry. |
void |
validate()
Calculates access roles. |
| Methods inherited from class org.deltava.security.command.AccessControl |
|---|
validateContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BlogAccessControl(SecurityContext ctx,
Entry e)
ctx - the security contexte - the blog Entry bean| Method Detail |
|---|
public void validate()
throws CommandException
validate in class AccessControlCommandException - if the entry cannot be readpublic boolean getCanCreate()
public boolean getCanEdit()
public boolean getCanComment()
public boolean getCanDelete()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||