org.modeshape.jcr.cache

## Interface SessionCache.SaveContext

- All Known Implementing Classes:
    AbstractSessionCache.BasicSaveContext
  Enclosing interface:
    SessionCache

      public static interface SessionCache.SaveContext

  The context of a save operation, created during each call to `SessionCache.save()` and passed to the `PreSave#process(MutableCachedNode, SaveContext)` invocations.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `DateTime` | `getTime()` Get the instance in time that the save is taking place.
    `String` | `getUserId()` Get the identifier for the user that is making this save.

- - ### Method Detail

    - #### getTime

          DateTime getTime()

      Get the instance in time that the save is taking place.
      Returns:
        the save timestamp; never null

    - #### getUserId

          String getUserId()

      Get the identifier for the user that is making this save.
      Returns:
        the user identifier; never null

Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.