Package logisticspipes.security

Examples of logisticspipes.security.PermissionException


      throw new UnsupportedOperationException(error.toString());
    }

    if(match.getAnnotation(CCDirectCall.class) != null) {
      if(!isDirectCall) {
        throw new PermissionException();
      }
    }
   
    if(match.getAnnotation(CCCommand.class).needPermission()) {
      if(info.securityMethod != null) {
View Full Code Here


      throw new UnsupportedOperationException(error.toString());
    }

    if(match.getAnnotation(CCDirectCall.class) != null) {
      if(!isDirectCall) {
        throw new PermissionException();
      }
    }
   
    if(match.getAnnotation(CCCommand.class).needPermission()) {
      if(info.securityMethod != null) {
View Full Code Here

      int id = -1;
      if(this.container instanceof LogisticsTileGenericPipe) {
        id = ((LogisticsTileGenericPipe)this.container).getLastCCID();
      }
      if(!sec.getAllowCC(id)) {
        throw new PermissionException();
      }
    }
  }
View Full Code Here

 
  @CCCommand(description="Returns the access to the pipe of the givven router UUID")
  @ModDependentMethod(modId="ComputerCraft@1.6")
  @CCDirectCall
  public Object getPipeForUUID(String sUuid) throws PermissionException {
    if(!getUpgradeManager().hasCCRemoteControlUpgrade()) throw new PermissionException();
    UUID uuid = UUID.fromString(sUuid);
    int id = SimpleServiceLocator.routerManager.getIDforUUID(uuid);
    IRouter router = SimpleServiceLocator.routerManager.getRouter(id);
    if(router == null) return null;
    CoreRoutedPipe pipe = router.getPipe();
View Full Code Here

TOP

Related Classes of logisticspipes.security.PermissionException

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.