// predefined authorization checks /* MEMBER OF CAMUNDA_ADMIN */ /// <summary> /// Checks if the current authentication contains the group /// <seealso cref="IGroups#CAMUNDA_ADMIN"/>. The check is ignored if the authorization is /// disabled or no authentication exists. /// </summary> /// <exception cref="AuthorizationException"> </exception> public virtual void CheckCamundaAdmin() { //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final org.camunda.bpm.engine.impl.identity.Authentication currentAuthentication = getCurrentAuthentication(); Authentication currentAuthentication = CurrentAuthentication; CommandContext commandContext = context.Impl.Context.CommandContext; if (AuthorizationEnabled && commandContext.AuthorizationCheckEnabled && currentAuthentication != null && !IsCamundaAdmin(currentAuthentication)) { throw Log.RequiredCamundaAdminException(); } }