Package anvil.server

Examples of anvil.server.Zone


  /// @throws AccessDenied If security policy denies this operation
  public static final Object[] p_getTribe = { null, "name" };
  public Any m_getTribe(Context context, String name)
  {
    context.checkAccess(AnyTribe.CAN_READ);
    Zone zone = _context.getZone();
    AccessPreferences access = zone.getAccessPreferences();
    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


    Zone[] zones = new Zone[n];
    int c = 0;
   
  alreadyChecked:
    for(int i=n-1; i>=0; i--) {
      Zone zone = peek(i).getZone();
      for(int j=0; j<c; j++) {
        if (zones[j] == zone) {
          continue alreadyChecked;
        }
      }
      if (zone.checkPermission(perm)) {
        return true;
      }
      zones[c++] = zone;
    }
   
View Full Code Here

  }


  public final Scope import_(String source)
  {
    Zone zone = zone();
   
    if (source.equals(Modules.NAME)) {
      return zone.getModules();
    }

    Address importing = null;
   
    try {     
      importing = address().resolve(source);
    } catch (anvil.server.ZoneInactiveException e) {
      throw ImportError(e.getMessage(), null);
    }
   
    checkImport(frame().getPathinfo(), importing.getPathinfo());
   
    try {
      return zone.getServer().getCache().load(importing).getModule();
     
    } catch (ForgingException e) {
      throw ImportError(source, e.getErrorListener());
     
    } catch (IOException e) {
View Full Code Here

TOP

Related Classes of anvil.server.Zone

Copyright © 2018 www.massapicom. 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.