Class ExamProfileAccessControl
java.lang.Object
org.deltava.security.command.AccessControl
org.deltava.security.command.ExamProfileAccessControl
- All Implemented Interfaces:
Serializable
An Access Controller for Examination 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
ConstructorsConstructorDescriptionInitialize the Access Controller. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns if a new Examination 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 viewed.void
validate()
Calculates access control rightsMethods inherited from class org.deltava.security.command.AccessControl
validateContext
-
Constructor Details
-
ExamProfileAccessControl
Initialize the Access Controller.- Parameters:
ctx
- the Security Contextep
- the Examination profile bean
-
-
Method Details
-
validate
public void validate()Description copied from class:AccessControl
Calculates access control rights- Specified by:
validate
in classAccessControl
-
getCanRead
public boolean getCanRead()Returns if the profile can be viewed.- Returns:
- TRUE if it can be viewed, otherwise FALSE
-
getCanEdit
public boolean getCanEdit()Returns if the profile can be edited.- Returns:
- TRUE if it can be edited, otherwise FALSE
-
getCanCreate
public boolean getCanCreate()Returns if a new Examination Profile can be created.- Returns:
- TRUE if it can be created, otherwise FALSE
-
getCanDelete
public boolean getCanDelete()Returns if the profile can be deleted.- Returns:
- TRUE if it can be deleted, otherwise FALSE
-