Class CmsDirectEditResourceInfo
java.lang.Object
org.opencms.workplace.editors.directedit.CmsDirectEditResourceInfo
Contains information about a resource that is direct edited.
For example, the information in this class allows implementations
of a I_CmsDirectEditProvider
to render HTML
with extended information about the resource displayed on the buttons.
- Since:
- 6.2.3
-
Field Summary
Modifier and TypeFieldDescriptionstatic final CmsDirectEditResourceInfo
Constant for inactive permissions without further resource info. -
Constructor Summary
ConstructorDescriptionCmsDirectEditResourceInfo
(CmsDirectEditPermissions permissions) Creates a new direct edit resource info container without any specific information about the resource to be direct edited.CmsDirectEditResourceInfo
(CmsDirectEditPermissions permissions, CmsResource resource, CmsLock lock) Creates a new direct edit resource info container. -
Method Summary
Modifier and TypeMethodDescriptiongetLock()
Returns the lock on the direct edit resource.Returns the direct edit permissions of the resource.Returns the resource that is to be direct edited.
-
Field Details
-
INACTIVE
Constant for inactive permissions without further resource info.
-
-
Constructor Details
-
CmsDirectEditResourceInfo
Creates a new direct edit resource info container without any specific information about the resource to be direct edited.- Parameters:
permissions
- the direct edit permissions of the resource
-
CmsDirectEditResourceInfo
public CmsDirectEditResourceInfo(CmsDirectEditPermissions permissions, CmsResource resource, CmsLock lock) Creates a new direct edit resource info container.- Parameters:
permissions
- the direct edit permissions of the resourceresource
- the resource that is to be direct editedlock
- the lock on the direct edit resource
-
-
Method Details
-
getLock
Returns the lock on the direct edit resource.This may be
null
in case the result isINACTIVE
.- Returns:
- the lock on the direct edit resource
-
getPermissions
Returns the direct edit permissions of the resource.The result is ensured not to be
null
.- Returns:
- the direct edit permissions of the resource
-
getResource
Returns the resource that is to be direct edited.This may be
null
in case the result isINACTIVE
.- Returns:
- the resource that is to be direct edited
-