Package org.nuxeo.ecm.permissions
Class TransientUserPermissionHelper
java.lang.Object
org.nuxeo.ecm.permissions.TransientUserPermissionHelper
- Since:
- 8.1
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidAdds a token for the givenusername.static StringReturns the token linked to the given transientusername, ornullif no token can be found.protected static booleanhasOtherPermission(String username, DocumentModel doc) Returnstrueif the givenusernamehas a non-archived ACE on another document thandoc,falseotherwise.static voidrevokeToken(String username, DocumentModel doc)
-
Field Details
-
OTHER_DOCUMENT_WITH_PENDING_OR_EFFECTIVE_ACL_QUERY
- Since:
- 10.3
- See Also:
-
TRANSIENT_APP_NAME
- Since:
- 10.3
- See Also:
-
TRANSIENT_DEVICE_ID
- Since:
- 10.3
- See Also:
-
TRANSIENT_PERMISSION
- Since:
- 10.3
- See Also:
-
-
Method Details
-
addToken
Adds a token for the givenusername.Does nothing if
usernameis not a transient username or if a token already exists.- Since:
- 10.3
-
getToken
Returns the token linked to the given transientusername, ornullif no token can be found.- Since:
- 10.3
-
revokeToken
-
hasOtherPermission
Returnstrueif the givenusernamehas a non-archived ACE on another document thandoc,falseotherwise.Always returns
falseif the configuration propertyNuxeoPrincipal.TRANSIENT_USERNAME_UNIQUE_PROPistrue.- Since:
- 10.3
-