0

I have some code that downloads a CMIS document:

contentStream = remoteDocument.getContentStream();

What is the most efficient way to check whether the current CMIS user has write access to this document's data content or not?

Preferably without making additional CMIS requests.

Nicolas Raoul
  • 58,567
  • 58
  • 222
  • 373

1 Answers1

1

AllowableActions.Actions has the information:

bool writeable = document.AllowableActions.Actions.Contains(
  PermissionMappingKeys.CanSetContentDocument)

If there is anything more efficient I would love to hear about it, though.

Nicolas Raoul
  • 58,567
  • 58
  • 222
  • 373