Examples of Tribe


Examples of anvil.server.Tribe

    if (access != null) {
      String realmName = access.getRealm();
      context.checkRealm(realmName);
      Realm realm = zone.getRealm(realmName);
      if (realm != null) {
        Tribe tribe = realm.getTribe(name);
        if (tribe != null) {
          return new AnyTribe(tribe);
        }
      }
    }
View Full Code Here

Examples of anvil.server.Tribe

  /// Recursively searches for tribe with given identity.
  /// @synopsis Tribe find(int identity)
  public static final Object[] p_find = { "identity" };
  public Any m_find(int identity)
  {
    Tribe t = find(_tribe, identity);
    return (t != null) ? new AnyTribe(t) : UNDEFINED;
  }
View Full Code Here

Examples of anvil.server.Tribe

  /// Recursively searches for tribe with given identity.
  /// @synopsis Tribe find(int identity)
  public static final Object[] p_find = { "identity" };
  public Any m_find(int identity)
  {
    Tribe t = find(_tribe, identity);
    return (t != null) ? new AnyTribe(t) : UNDEFINED;
  }
View Full Code Here

Examples of anvil.server.Tribe

  /// @throws AccessDenied If security policy denies this operation
  public static final Object[] p_getTribe = new Object[] { null, "name" };
  public Any m_getTribe(Context context, String name)
  {
    context.checkAccess(AnyTribe.CAN_READ);
    Tribe tribe = _realm.getTribe(name);
    if (tribe != null) {
      return new AnyTribe(tribe);
    } else {
      return UNDEFINED;
    }
View Full Code Here

Examples of anvil.server.Tribe

  public Any m_createTribe(Context context, String name)
  {
    context.checkAccess(CAN_WRITE);
    context.checkAccess(AnyTribe.CAN_WRITE);
    try {
      Tribe tribe = _realm.createTribe(name);
      return (tribe != null) ? new AnyTribe(tribe) : UNDEFINED;
    } catch (OperationFailedException e) {
      throw context.exception(e);
    }
  }
View Full Code Here

Examples of anvil.server.Tribe

  /// @synopsis Tribe getRoot()
  /// @throws AccessDenied If security policy denies this operation
  public Any m_getRoot(Context context)
  {
    context.checkAccess(AnyTribe.CAN_READ);
    Tribe root = _realm.getRoot();
    return (root != null) ? new AnyTribe(root) : UNDEFINED;
  }
View Full Code Here

Examples of anvil.server.Tribe

  /// @throws AccessDenied If security policy denies this operation
  public static final Object[] p_find = new Object[] { null, "address" };
  public Any m_find(Context context, int address)
  {
    context.checkAccess(AnyTribe.CAN_READ);
    Tribe t = AnyTribe.find(_realm.getRoot(), address);
    return (t != null) ? new AnyTribe(t) : UNDEFINED;
  }
View Full Code Here

Examples of anvil.server.Tribe

  /// @throws AccessDenied If security policy denies this operation
  public static final Object[] p_getTribe = new Object[] { null, "name" };
  public Any m_getTribe(Context context, String name)
  {
    context.checkAccess(AnyTribe.CAN_READ);
    Tribe tribe = _realm.getTribe(name);
    if (tribe != null) {
      return new AnyTribe(tribe);
    } else {
      return UNDEFINED;
    }
View Full Code Here

Examples of anvil.server.Tribe

  public Any m_createTribe(Context context, String name)
  {
    context.checkAccess(CAN_WRITE);
    context.checkAccess(AnyTribe.CAN_WRITE);
    try {
      Tribe tribe = _realm.createTribe(name);
      return (tribe != null) ? new AnyTribe(tribe) : UNDEFINED;
    } catch (OperationFailedException e) {
      throw context.exception(e);
    }
  }
View Full Code Here

Examples of anvil.server.Tribe

  /// @synopsis Tribe getRoot()
  /// @throws AccessDenied If security policy denies this operation
  public Any m_getRoot(Context context)
  {
    context.checkAccess(AnyTribe.CAN_READ);
    Tribe root = _realm.getRoot();
    return (root != null) ? new AnyTribe(root) : UNDEFINED;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.