public boolean canEdit() returns a boolean indicating
whether or not the user can edit the node.
Parameters
None
Returns
Returns a boolean representing whether or not the user can edit the node. True if the user can edit the node, 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: