Examples of IStructureObject


Examples of it.hotel.model.hotel.IStructureObject

   */
  public Object invoke(MethodInvocation invocation) throws Throwable {
    Object rval = null;
    rval = invocation.proceed();   
    if(!"admin".equals(getRoleName()) && rval != null){     
      IStructureObject element = (IStructureObject)rval;
      boolean permitted = element.isFromStructure(getUserHotelId());
      if(!permitted) {
        rval = null;
      }
    }
    return rval;
View Full Code Here

Examples of it.hotel.model.hotel.IStructureObject

    boolean permitted = true;
    if(!"admin".equals(getRoleName())){
      Object parameter = invocation.getArguments()[0];
      // SE IL PARAMETRO E' UN'ENTITA' DELL'ALBERGO
      if(IStructureObject.class.isInstance(parameter)){
        IStructureObject element = (IStructureObject)parameter;
        permitted = element.isFromStructure(getUserHotelId());
      }
    }
    if(permitted) {
      rval = invocation.proceed();
    }
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.