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 AccessControl
_ctx -
Constructor Summary
ConstructorsConstructorDescriptionInitializes the Access Controller. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns if the Channel can be accessed.booleanReturns if this Channel can be deleted.booleanReturns if the Channel Profile can be edited.booleanReturns if new Threads can be made in this Channel.booleanReturns if the Channel Profile can be read.voidUpdates the Security Context verify access with.voidvalidate()Calculates access rights.Methods inherited from class 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
-