Package it.eng.spago.security

Examples of it.eng.spago.security.IEngUserProfile


        Iterator j = emails.iterator();
        while(j.hasNext()){
          Email e = (Email) j.next();
          String email = e.getEmail();
          String userTemp = e.getUserId();
          IEngUserProfile userProfile = GeneralUtilities.createNewUserProfile(userTemp);       
          if(ObjectsAccessVerifier.canSee(biobj, userProfile))  {       
            if (j.hasNext()) {mailTos = mailTos+email+",";}
            else {mailTos = mailTos+email;}
          }
View Full Code Here


  @Override
  public void doService() {
    logger.debug("IN");
    IDataSetDAO dsDao;
    IEngUserProfile profile = getUserProfile();
    try {
      dsDao = DAOFactory.getDataSetDAO();
      dsDao.setUserProfile(profile);
    } catch (EMFUserError e1) {
      logger.error(e1.getMessage(), e1);
View Full Code Here

  AuditManager auditManager = AuditManager.getInstance();
  if (auditId != null) {
      auditManager.updateAudit(auditId, new Long(System.currentTimeMillis()), null, "EXECUTION_STARTED", null,
        null);
  }
  IEngUserProfile profile = null;
  try {
      RequestContainer reqCont = RequestContainer.getRequestContainer();
      SessionContainer sessCont = reqCont.getSessionContainer();
      SessionContainer permSess = sessCont.getPermanentContainer();
      profile = (IEngUserProfile) permSess.getAttribute(IEngUserProfile.ENG_USER_PROFILE);
View Full Code Here

          ResponseContainer.setResponseContainer(resContainer);
          Locale locale = new Locale("it","IT","");
          SessionContainer session = new SessionContainer(true);
          reqContainer.setSessionContainer(session);
          SessionContainer permSession = session.getPermanentContainer();
          IEngUserProfile profile =UserProfile.createSchedulerUserProfile();         
          permSession.setAttribute(IEngUserProfile.ENG_USER_PROFILE, profile);
          errorHandler = defaultRequestContext.getErrorHandler();
          reqContainer.setAttribute("model_node_instance", modelInstanceId);
          reqContainer.setAttribute("start_date", beginDate);
          reqContainer.setAttribute("end_date", endDate);
View Full Code Here

      isMultischema = true;
    }
    RequestContainer requestContainer = this.getRequestContainer()
    SessionContainer session = requestContainer.getSessionContainer();
    SessionContainer permanentSession = session.getPermanentContainer();
    IEngUserProfile profile = (IEngUserProfile)permanentSession.getAttribute(IEngUserProfile.ENG_USER_PROFILE);
    logger.debug("user profile:"+ profile);
    String schemaattr = (String) serviceRequest.getAttribute("schemaattr");
    logger.debug("User Attribute:"+ schemaattr);
   
    String schema=(String)profile.getUserAttribute(schemaattr);
    logger.debug("schema:"+ schema);
    Connection connection = null;
    Context ctx;
    try {
      if (isjndi.equals("true")){
View Full Code Here

  private void runSchedule(SourceBean request, SourceBean response) throws EMFUserError {
    try {
      RequestContainer reqCont = getRequestContainer();
      SessionContainer sessCont = reqCont.getSessionContainer();
      SessionContainer permSess = sessCont.getPermanentContainer();
      IEngUserProfile profile = (IEngUserProfile)permSess.getAttribute(IEngUserProfile.ENG_USER_PROFILE);

     
        SchedulerServiceSupplier schedulerService=new SchedulerServiceSupplier();
      String jobName = (String)request.getAttribute("jobName");
      String jobGroupName = (String)request.getAttribute("jobGroupName");
View Full Code Here

  private void saveScheduleForJob(SourceBean request, SourceBean response) throws EMFUserError {
    try{
      RequestContainer reqCont = getRequestContainer();
      SessionContainer sessCont = reqCont.getSessionContainer();
      SessionContainer permSess = sessCont.getPermanentContainer();
      IEngUserProfile profile = (IEngUserProfile)permSess.getAttribute(IEngUserProfile.ENG_USER_PROFILE);
        SchedulerServiceSupplier schedulerService=new SchedulerServiceSupplier();
      TriggerInfo triggerInfo = (TriggerInfo)sessCont.getAttribute(SpagoBIConstants.TRIGGER_INFO);
      JobInfo jobInfo = triggerInfo.getJobInfo();
      String jobName = jobInfo.getJobName();
      String jobGroupName = jobInfo.getJobGroupName();
View Full Code Here

    public String saveSubObject(String token,String user,String documentiId,String analysisName,String analysisDescription,String visibilityBoolean,String content){
        logger.debug("IN");
        Monitor monitor =MonitorFactory.start("spagobi.service.content.saveSubObject");
        try {
            validateTicket(token,user);
            IEngUserProfile profile = GeneralUtilities.createNewUserProfile(user);
            if (!profile.getFunctionalities().contains(SpagoBIConstants.SAVE_SUBOBJECT_FUNCTIONALITY)) {
              logger.debug("KO - User " + user + " cannot save subobjects");
              return "KO - You cannot save subobjects";
            }
            String userId = ((UserProfile)profile).getUserId().toString();
            //return saveSubObject(user,documentiId,analysisName,analysisDescription,visibilityBoolean,content);
View Full Code Here

 
  try {
    RequestContainer reqCont = getRequestContainer();
    SessionContainer sessCont = reqCont.getSessionContainer();
    SessionContainer permSess = sessCont.getPermanentContainer();
    IEngUserProfile profile = (IEngUserProfile)permSess.getAttribute(IEngUserProfile.ENG_USER_PROFILE);
   
    ISbiGeoFeaturesDAO dao=DAOFactory.getSbiGeoFeaturesDAO();
    dao.setUserProfile(profile);
    GeoFeature feature = recoverFeatureDetails(request);
    if (feature.getName() == null) {
View Full Code Here

        }
      }
      RequestContainer reqCont = getRequestContainer();
      SessionContainer sessCont = reqCont.getSessionContainer();
      SessionContainer permSess = sessCont.getPermanentContainer();
      IEngUserProfile profile = (IEngUserProfile)permSess.getAttribute(IEngUserProfile.ENG_USER_PROFILE);
      IEngineDAO dao=DAOFactory.getEngineDAO();
      dao.setUserProfile(profile);
      if (mod.equalsIgnoreCase(AdmintoolsConstants.DETAIL_INS)) {
        dao.insertEngine(engine);
      } else {
View Full Code Here

TOP

Related Classes of it.eng.spago.security.IEngUserProfile

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.