Codota Logo
CachingRealm.isEmpty
Code IndexAdd Codota to your IDE (free)

How to use
isEmpty
method
in
org.apache.shiro.realm.CachingRealm

Best Java code snippets using org.apache.shiro.realm.CachingRealm.isEmpty (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: apache/shiro

/**
 * Clears out any cached data associated with the specified account identity/identities.
 * <p/>
 * This implementation will return quietly if the principals argument is null or empty.  Otherwise it delegates
 * to {@link #doClearCache(org.apache.shiro.subject.PrincipalCollection)}.
 *
 * @param principals the principals of the account for which to clear any cached data.
 * @since 1.2
 */
protected void clearCache(PrincipalCollection principals) {
  if (!isEmpty(principals)) {
    doClearCache(principals);
    log.trace("Cleared cache entries for account with principals [{}]", principals);
  }
}
origin: apache/shiro

if (!isEmpty(principals)) {
  Collection thisPrincipals = principals.fromRealm(getName());
  if (!CollectionUtils.isEmpty(thisPrincipals)) {
origin: org.apache.shiro/shiro-core

/**
 * Clears out any cached data associated with the specified account identity/identities.
 * <p/>
 * This implementation will return quietly if the principals argument is null or empty.  Otherwise it delegates
 * to {@link #doClearCache(org.apache.shiro.subject.PrincipalCollection)}.
 *
 * @param principals the principals of the account for which to clear any cached data.
 * @since 1.2
 */
protected void clearCache(PrincipalCollection principals) {
  if (!isEmpty(principals)) {
    doClearCache(principals);
    log.trace("Cleared cache entries for account with principals [{}]", principals);
  }
}
origin: org.apache.shiro/shiro-core

if (!isEmpty(principals)) {
  Collection thisPrincipals = principals.fromRealm(getName());
  if (!CollectionUtils.isEmpty(thisPrincipals)) {
org.apache.shiro.realmCachingRealmisEmpty

Popular methods of CachingRealm

  • afterCacheManagerSet
    Template method that may be implemented by subclasses should they wish to react to a CacheManager in
  • clearCache
    Clears out any cached data associated with the specified account identity/identities. This implement
  • doClearCache
    This implementation does nothing - it is a template to be overridden by subclasses if necessary.
  • getName
  • onLogout
    If caching is enabled, this will clear any cached data associated with the specified account identit
  • setCacheManager
    Sets the CacheManager to be used for data caching to reduce EIS round trips. This property is null
  • setName

Popular in Java

  • Start an intent from android
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • startActivity (Activity)
  • getSystemService (Context)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • TreeMap (java.util)
    A Red-Black tree based NavigableMap implementation. The map is sorted according to the Comparable of
  • JCheckBox (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now