Package it.eng.spagobi.container

Examples of it.eng.spagobi.container.Context


 
  /**
   * Retrieves the context from the input IBeanContainer instance
   */
  public Context getContext(IBeanContainer contextsContainer) {
    Context context;
   
    logger.debug("IN");
   
    context = null;
    try {
View Full Code Here


  /**
   * Creates a new context and puts it on the input IBeanContainer instance
   */
  public Context createContext(IBeanContainer sessionContainer) {
    Context context;
   
    logger.debug("IN");
   
    context = null;
    try {
      logger.debug("Creating a new context and putting on session with key = [" + contextId + "]");
      context = new Context();
      sessionContainer.set(contextId, context);
    } finally {
      logger.debug("OUT");
    }
   
View Full Code Here

  /**
   * Destroys the current context on the input IBeanContainer instance
   */
  public void destroyCurrentContext(IBeanContainer sessionContainer) {
    Context context;
   
    logger.debug("IN");
   
    try {
      context = (Context) sessionContainer.get(contextId);
View Full Code Here

        while (it.hasNext()) {
          String attributeName = (String) it.next();
          if (!attributeName.startsWith(SPAGOBI_SESSION_ATTRIBUTE)) {
            Object attributeObject = session.get(attributeName);
            if (attributeObject instanceof Context) {
              Context context = (Context) attributeObject;
              if (context.isOlderThan(minutes)) {
                logger.debug("Deleting context instance with last usage date = [" + context.getLastUsageDate() + "]");
                session.remove(attributeName);
              }
            } else {
              logger.debug("Session attribute with key [" + attributeName + "] is not a Context object; cannot delete it.");
            }
View Full Code Here

   */
  public Context getContext(IBeanContainer sessionContainer) {
    logger.debug("IN");
    try {
      logger.debug("Looking at Context on session with key = [" + _key + "]");
      Context context = (Context) sessionContainer.get(_key);
      return context;
    } finally {
      logger.debug("OUT");
    }
  }
View Full Code Here

   */
  public Context createContext(IBeanContainer sessionContainer) {
    logger.debug("IN");
    try {
      logger.debug("Creating a new context and putting on session with key = [" + _key + "]");
      Context context = new Context();
      sessionContainer.set(_key, context);
      return context;
    } finally {
      logger.debug("OUT");
    }
View Full Code Here

   * Destroys the current context on the input ISessionContainer instance
   */
  public void destroyCurrentContext(IBeanContainer sessionContainer) {
    logger.debug("IN");
    try {
      Context context = (Context) sessionContainer.get(_key);
      if (context != null) {
        sessionContainer.remove(_key);
      } else {
        logger.warn("Context not found!!");
      }
View Full Code Here

        while (it.hasNext()) {
          String attributeName = (String) it.next();
          if (!attributeName.startsWith(_sessionAttributeBaseKey)) {
            Object attributeObject = session.get(attributeName);
            if (attributeObject instanceof Context) {
              Context context = (Context) attributeObject;
              if (context.isOlderThan(minutes)) {
                logger.debug("Deleting context instance with last usage date = [" + context.getLastUsageDate() + "]");
                session.remove(attributeName);
              }
            } else {
              logger.debug("Session attribute with key [" + attributeName + "] is not a Context object; cannot delete it.");
            }
View Full Code Here

TOP

Related Classes of it.eng.spagobi.container.Context

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.