Class ReadOnlyUtil


  • public class ReadOnlyUtil
    extends Object
    • Method Detail

      • checkModificationAllowed

        public static void checkModificationAllowed​(@NotNull
                                                    SPersistentEntity entity)
      • checkRemoveAllowed

        public static void checkRemoveAllowed​(@NotNull
                                              SPersistentEntity entity)
      • checkParameterModificationAllowed

        public static void checkParameterModificationAllowed​(@NotNull
                                                             SPersistentEntity entity,
                                                             @NotNull
                                                             String paramName)
      • checkProjectFeatureModificationAllowed

        public void checkProjectFeatureModificationAllowed​(@NotNull
                                                           SProject project,
                                                           @NotNull
                                                           SProjectFeatureDescriptor feature)
      • isCanBeMadeEditable

        public static boolean isCanBeMadeEditable​(@NotNull
                                                  ReadOnlyReason reason)
      • setEditable

        public void setEditable​(@NotNull
                                SPersistentEntity entity,
                                boolean editable)
      • disableReadOnlyCheck

        @NotNull
        public static Disposable disableReadOnlyCheck()
      • withDisabledReadOnlyCheck

        public static <T> T withDisabledReadOnlyCheck​(@NotNull
                                                      Supplier<T> runnable)