Class CoolerChannelAccessControl
java.lang.Object
org.deltava.security.command.AccessControl
org.deltava.security.command.CoolerChannelAccessControl
- All Implemented Interfaces:
Serializable
An Access Controller for Water Cooler channels.
- Since:
- 1.0
- Version:
- 9.0
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class org.deltava.security.command.AccessControl
_ctx
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes the Access Controller. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns if the Channel can be accessed.boolean
Returns if this Channel can be deleted.boolean
Returns if the Channel Profile can be edited.boolean
Returns if new Threads can be made in this Channel.boolean
Returns if the Channel Profile can be read.void
Updates the Security Context verify access with.void
validate()
Calculates access rights.Methods inherited from class org.deltava.security.command.AccessControl
validateContext
-
Constructor Details
-
CoolerChannelAccessControl
Initializes the Access Controller.- Parameters:
ctx
- the Command Context.c
- the Channel
-
-
Method Details
-
updateContext
Updates the Security Context verify access with. Since this Access controller may be called many times in succession, it is more efficient to update the security context rather than constantly creating a new CoolerChannelAccessControl object.- Parameters:
ctx
- the SecurityContext
-
validate
-
getCanAccess
public boolean getCanAccess()Returns if the Channel can be accessed.- Returns:
- TRUE if a thread listing can be retrieved, otherwise FALSE
-
getCanRead
public boolean getCanRead()Returns if the Channel Profile can be read.- Returns:
- TRUE if the profile can be retrieved, otherwise FALSE
-
getCanEdit
public boolean getCanEdit()Returns if the Channel Profile can be edited.- Returns:
- TRUE if the profile can be edited, otherwise FALSE
-
getCanPost
public boolean getCanPost()Returns if new Threads can be made in this Channel.- Returns:
- TRUE if new posts can be made, otherwise FALSE
-
getCanDelete
public boolean getCanDelete()Returns if this Channel can be deleted.- Returns:
- TRUE if it can be deleted, otherwise FALSE
-