Class QuestionProfileAccessControl
java.lang.Object
org.deltava.security.command.AccessControl
org.deltava.security.command.QuestionProfileAccessControl
- All Implemented Interfaces:
Serializable
An Access Controller for Examination Question Profiles.
- Since:
- 1.0
- Version:
- 9.1
- 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 a new profile can be created.boolean
Returns if the profile can be deleted.boolean
Returns if the profile can be edited.boolean
Returns if the profile can be included in an Examination.boolean
Returns if the profile can be viewed.void
validate()
Calculates access rights.Methods inherited from class org.deltava.security.command.AccessControl
validateContext
-
Constructor Details
-
QuestionProfileAccessControl
Initializes the Access Controller.- Parameters:
ctx
- the command contextqp
- the QuestionProfile
-
-
Method Details
-
validate
Calculates access rights.- Specified by:
validate
in classAccessControl
- Throws:
AccessControlException
- if the user cannot read the profile
-
getCanRead
public boolean getCanRead()Returns if the profile can be viewed.- Returns:
- TRUE if it can be viewed, otherwise FALSE
-
getCanCreate
public boolean getCanCreate()Returns if a new profile can be created.- Returns:
- TRUE if a new Question can be created, otherwise FALSE
-
getCanEdit
public boolean getCanEdit()Returns if the profile can be edited.- Returns:
- TRUE if it can be edited, otherwise FALSE
-
getCanInclude
public boolean getCanInclude()Returns if the profile can be included in an Examination.- Returns:
- TRUE if it can be included, otherwise FALSE
-
getCanDelete
public boolean getCanDelete()Returns if the profile can be deleted.- Returns:
- TRUE if it can be deleted, otherwise FALSE
-