public boolean canComment() returns a boolean indicating
whether or not the user can comment on the node.
Parameters
None
Returns
Returns a boolean representing whether or not the user can comment on the node. True if the user can comment, false otherwise.
Example
ServiceRegistry serviceRegistry = session.getServiceRegistry(); DocumentFolderService documentFolderService = serviceRegistry.getDocumentFolderService(); Node node = getTestNode(session, "ClimbingVolcanoes.JPG"); Permissions perms = documentFolderService.getPermissions(node); Log.d(TAG, "canAddChildren: " + perms.canAddChildren()); Log.d(TAG, "canComment: " + perms.canComment()); Log.d(TAG, "canDelete: " + perms.canDelete()); Log.d(TAG, "canEdit: " + perms.canEdit());
Would produce output such as the following: