Package org.opencms.gwt.shared
Class CmsPermissionInfo
java.lang.Object
org.opencms.gwt.shared.CmsPermissionInfo
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable
public class CmsPermissionInfo
extends Object
implements com.google.gwt.user.client.rpc.IsSerializable
The permission info bean.
-
Constructor Summary
ModifierConstructorDescriptionprotected
Constructor for serialization only.CmsPermissionInfo
(boolean hasViewPermission, boolean hasWritePermission, String noEditReason) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the noEditReason.boolean
Returns the hasViewPermission.boolean
Returns the hasWritePermission.void
setNoEditReason
(String noEditReason) Sets the no edit reason.
-
Constructor Details
-
CmsPermissionInfo
public CmsPermissionInfo(boolean hasViewPermission, boolean hasWritePermission, String noEditReason) Constructor.- Parameters:
hasViewPermission
- if view is permittedhasWritePermission
- is write is permittednoEditReason
- the no edit reason
-
CmsPermissionInfo
protected CmsPermissionInfo()Constructor for serialization only.
-
-
Method Details
-
getNoEditReason
Returns the noEditReason.- Returns:
- the noEditReason
-
hasViewPermission
Returns the hasViewPermission.- Returns:
- the hasViewPermission
-
hasWritePermission
Returns the hasWritePermission.- Returns:
- the hasWritePermission
-
setNoEditReason
Sets the no edit reason.- Parameters:
noEditReason
- the no edit reason
-