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 AccessControl
_ctx -
Constructor Summary
ConstructorsConstructorDescriptionInitialize the Access Controller. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns if a new Examination Profile can be created.booleanReturns if the profile can be deleted.booleanReturns if the profile can be edited.booleanReturns if the profile can be viewed.voidvalidate()Calculates access control rightsMethods inherited from class 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:AccessControlCalculates access control rights- Specified by:
validatein 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
-