Class GalleryAccessControl
java.lang.Object
org.deltava.security.command.AccessControl
org.deltava.security.command.GalleryAccessControl
- All Implemented Interfaces:
Serializable
An Access Controller to support Image Gallery operations.
- Since:
- 1.0
- Version:
- 7.0
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class org.deltava.security.command.AccessControl
_ctx
-
Constructor Summary
ConstructorsConstructorDescriptionGalleryAccessControl
(SecurityContext ctx, Image img) Initializes the access controller. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns if a new Image Gallery entry can be created.boolean
Returns if the Image Gallery entry can be deleted.boolean
Returns if the Image Gallery entry can be edited.boolean
Returns if this user can like this Image Gallery entry.void
validate()
Calculates access rights.Methods inherited from class org.deltava.security.command.AccessControl
validateContext
-
Constructor Details
-
GalleryAccessControl
Initializes the access controller.- Parameters:
ctx
- the command contextimg
- the Image Gallery image
-
-
Method Details
-
validate
-
getCanCreate
public boolean getCanCreate()Returns if a new Image Gallery entry can be created.- Returns:
- TRUE if a new entry can be created, otherwise FALSE
-
getCanEdit
public boolean getCanEdit()Returns if the Image Gallery entry can be edited.- Returns:
- TRUE if the entry can be edited, otherwise FALSE
-
getCanLike
public boolean getCanLike()Returns if this user can like this Image Gallery entry.- Returns:
- TRUE if a like can be cast, otherwise FALSE
-
getCanDelete
public boolean getCanDelete()Returns if the Image Gallery entry can be deleted.- Returns:
- TRUE if the entry can be deleted, otherwise FALSE
-