Class ElementPermissionsManager

java.lang.Object
com.nomagic.magicdraw.uml.permissions.ElementPermissionsManager

@OpenApi public final class ElementPermissionsManager extends Object
Class responsible for managing permissions of element : readonly, can add children. This manager does not contain any logic, external ElementPermissions should be registered to handle permissions.
  • Method Details

    • getElementPermissionsManager

      @OpenApi public static ElementPermissionsManager getElementPermissionsManager()
      Singleton getter
      Returns:
      instance
    • addPermisionsHandler

      @OpenApi @Deprecated public void addPermisionsHandler(ElementPermissions permissions)
      Deprecated.
      spelling error. Use #addPermissionsHandler
      Register custom permission handler
      Parameters:
      permissions - permissions handler
    • addPermissionsHandler

      @OpenApi public void addPermissionsHandler(ElementPermissions permissions)
      Register custom permission handler
      Parameters:
      permissions - permissions handler
    • removePermisionsHandler

      @OpenApi @Deprecated public void removePermisionsHandler(ElementPermissions permissions)
      Deprecated.
      spelling error. Use #removePermissionsHandler
      Unregister custom permission handler
      Parameters:
      permissions - permissions handler
    • removePermissionsHandler

      @OpenApi public void removePermissionsHandler(ElementPermissions permissions)
      Unregister custom permission handler
      Parameters:
      permissions - permissions handler