Package logisticspipes.interfaces

Examples of logisticspipes.interfaces.ISecurityProvider


    return true;
  }
 
  @Override
  public boolean canBeDestroyed() {
    ISecurityProvider sec = getSecurityProvider();
    if(sec != null) {
      if(!sec.canAutomatedDestroy()) {
        return false;
      }
    }
    return true;
  }
View Full Code Here


    return preventRemove;
  }
 
  @CCSecurtiyCheck
  public void checkCCAccess() throws PermissionException {
    ISecurityProvider sec = getSecurityProvider();
    if(sec != null) {
      int id = -1;
      if(this.container instanceof LogisticsTileGenericPipe) {
        id = ((LogisticsTileGenericPipe)this.container).getLastCCID();
      }
      if(!sec.getAllowCC(id)) {
        throw new PermissionException();
      }
    }
  }
View Full Code Here

    return false;
  }

  @CCCommand(description="Returns true if the computer is allowed to interact with the connected pipe.", needPermission=false)
  public boolean canAccess() {
    ISecurityProvider sec = getSecurityProvider();
    if(sec != null) {
      int id = -1;
      if(this.container instanceof LogisticsTileGenericPipe) {
        id = ((LogisticsTileGenericPipe)this.container).getLastCCID();
      }
      return sec.getAllowCC(id);
    }
    return true;
  }
View Full Code Here

TOP

Related Classes of logisticspipes.interfaces.ISecurityProvider

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.