Tabnine Logo
SessionDAO.create
Code IndexAdd Tabnine to your IDE (free)

How to use
create
method
in
org.apache.shiro.session.mgt.eis.SessionDAO

Best Java code snippets using org.apache.shiro.session.mgt.eis.SessionDAO.create (Showing top 4 results out of 315)

origin: apache/shiro

/**
 * Persists the given session instance to an underlying EIS (Enterprise Information System).  This implementation
 * delegates and calls
 * <code>this.{@link SessionDAO sessionDAO}.{@link SessionDAO#create(org.apache.shiro.session.Session) create}(session);<code>
 *
 * @param session the Session instance to persist to the underlying EIS.
 */
protected void create(Session session) {
  if (log.isDebugEnabled()) {
    log.debug("Creating new EIS record for new session instance [" + session + "]");
  }
  sessionDAO.create(session);
}
origin: apache/shiro

expect(sessionDAO.create(eq(session1))).andReturn(sessionId1);
sessionDAO.update(eq(session1));
expectLastCall().anyTimes();
origin: org.apache.shiro/shiro-core

/**
 * Persists the given session instance to an underlying EIS (Enterprise Information System).  This implementation
 * delegates and calls
 * <code>this.{@link SessionDAO sessionDAO}.{@link SessionDAO#create(org.apache.shiro.session.Session) create}(session);<code>
 *
 * @param session the Session instance to persist to the underlying EIS.
 */
protected void create(Session session) {
  if (log.isDebugEnabled()) {
    log.debug("Creating new EIS record for new session instance [" + session + "]");
  }
  sessionDAO.create(session);
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.shiro

/**
 * Persists the given session instance to an underlying EIS (Enterprise Information System).  This implementation
 * delegates and calls
 * <code>this.{@link SessionDAO sessionDAO}.{@link SessionDAO#create(org.apache.shiro.session.Session) create}(session);<code>
 *
 * @param session the Session instance to persist to the underlying EIS.
 */
protected void create(Session session) {
  if (log.isDebugEnabled()) {
    log.debug("Creating new EIS record for new session instance [" + session + "]");
  }
  sessionDAO.create(session);
}
org.apache.shiro.session.mgt.eisSessionDAOcreate

Javadoc

Inserts a new Session record into the underling EIS (e.g. Relational database, file system, persistent cache, etc, depending on the DAO implementation).

After this method is invoked, the org.apache.shiro.session.Session#getId()method executed on the argument must return a valid session identifier. That is, the following should always be true:

 
Serializable id = create( session ); 
id.equals( session.getId() ) == true

Implementations are free to throw any exceptions that might occur due to integrity violation constraints or other EIS related errors.

Popular methods of SessionDAO

  • readSession
    Retrieves the session from the EIS uniquely identified by the specified sessionId.
  • delete
    Deletes the associated EIS record of the specified session. If there never existed a session EIS rec
  • update
    Updates (persists) data from a previously created Session instance in the EIS identified by {@link S
  • getActiveSessions
    Returns all sessions in the EIS that are considered active, meaning all sessions that haven't been s

Popular in Java

  • Start an intent from android
  • setRequestProperty (URLConnection)
  • getSystemService (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now