Java Code Examples for org.apache.shiro.session.mgt.SessionKey

The following examples show how to use org.apache.shiro.session.mgt.SessionKey. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: supplierShop   Source File: OnlineWebSessionManager.java    License: MIT License 5 votes vote down vote up
@Override
public void setAttribute(SessionKey sessionKey, Object attributeKey, Object value) throws InvalidSessionException
{
    super.setAttribute(sessionKey, attributeKey, value);
    if (value != null && needMarkAttributeChanged(attributeKey))
    {
        OnlineSession session = getOnlineSession(sessionKey);
        session.markAttributeChanged();
    }
}
 
Example 2
Source Project: supplierShop   Source File: OnlineWebSessionManager.java    License: MIT License 5 votes vote down vote up
@Override
public Object removeAttribute(SessionKey sessionKey, Object attributeKey) throws InvalidSessionException
{
    Object removed = super.removeAttribute(sessionKey, attributeKey);
    if (removed != null)
    {
        OnlineSession s = getOnlineSession(sessionKey);
        s.markAttributeChanged();
    }

    return removed;
}
 
Example 3
Source Project: ruoyiplus   Source File: OnlineWebSessionManager.java    License: MIT License 5 votes vote down vote up
@Override
public void setAttribute(SessionKey sessionKey, Object attributeKey, Object value) throws InvalidSessionException
{
    super.setAttribute(sessionKey, attributeKey, value);
    if (value != null && needMarkAttributeChanged(attributeKey))
    {
        OnlineSession s = (OnlineSession) doGetSession(sessionKey);
        s.markAttributeChanged();
    }
}
 
Example 4
Source Project: ruoyiplus   Source File: OnlineWebSessionManager.java    License: MIT License 5 votes vote down vote up
@Override
public Object removeAttribute(SessionKey sessionKey, Object attributeKey) throws InvalidSessionException
{
    Object removed = super.removeAttribute(sessionKey, attributeKey);
    if (removed != null)
    {
        OnlineSession s = (OnlineSession) doGetSession(sessionKey);
        s.markAttributeChanged();
    }

    return removed;
}
 
Example 5
Source Project: super-cloudops   Source File: AbstractIamSessionManager.java    License: Apache License 2.0 5 votes vote down vote up
protected Session retrieveSession(SessionKey sessionKey) {
	try {
		return super.retrieveSession(sessionKey);
	} catch (UnknownSessionException e) {
		// Failure to obtain SESSION does not throw an exception
		return null;
	}
}
 
Example 6
Source Project: super-cloudops   Source File: AbstractIamSessionManager.java    License: Apache License 2.0 5 votes vote down vote up
public Date getStartTimestamp(SessionKey key) {
	try {
		return super.getStartTimestamp(key);
	} catch (InvalidSessionException e) {
		// Ignore exceptions
		return null;
	}
}
 
Example 7
Source Project: super-cloudops   Source File: AbstractIamSessionManager.java    License: Apache License 2.0 5 votes vote down vote up
public Date getLastAccessTime(SessionKey key) {
	try {
		return super.getLastAccessTime(key);
	} catch (InvalidSessionException e) {
		// Ignore exceptions
		return null;
	}
}
 
Example 8
Source Project: super-cloudops   Source File: AbstractIamSessionManager.java    License: Apache License 2.0 5 votes vote down vote up
public long getTimeout(SessionKey key) {
	try {
		return super.getTimeout(key);
	} catch (InvalidSessionException e) {
		// Ignore exceptions
		return 0;
	}
}
 
Example 9
Source Project: super-cloudops   Source File: AbstractIamSessionManager.java    License: Apache License 2.0 5 votes vote down vote up
public void setTimeout(SessionKey key, long maxIdleTimeInMillis) {
	try {
		super.setTimeout(key, maxIdleTimeInMillis);
	} catch (InvalidSessionException e) {
		// Ignore exceptions
	}
}
 
Example 10
Source Project: super-cloudops   Source File: AbstractIamSessionManager.java    License: Apache License 2.0 5 votes vote down vote up
public void touch(SessionKey key) {
	try {
		super.touch(key);
	} catch (InvalidSessionException e) {
		// Ignore exceptions
	}
}
 
Example 11
Source Project: super-cloudops   Source File: AbstractIamSessionManager.java    License: Apache License 2.0 5 votes vote down vote up
public String getHost(SessionKey key) {
	try {
		return super.getHost(key);
	} catch (InvalidSessionException e) {
		// Ignore exceptions
		return null;
	}
}
 
Example 12
Source Project: super-cloudops   Source File: AbstractIamSessionManager.java    License: Apache License 2.0 5 votes vote down vote up
public Collection<Object> getAttributeKeys(SessionKey key) {
	try {
		return super.getAttributeKeys(key);
	} catch (InvalidSessionException e) {
		// Ignore exceptions
		return null;
	}
}
 
Example 13
Source Project: super-cloudops   Source File: AbstractIamSessionManager.java    License: Apache License 2.0 5 votes vote down vote up
public Object getAttribute(SessionKey sessionKey, Object attributeKey) {
	try {
		return super.getAttribute(sessionKey, attributeKey);
	} catch (InvalidSessionException e) {
		// Ignore exceptions
		return null;
	}
}
 
Example 14
Source Project: super-cloudops   Source File: AbstractIamSessionManager.java    License: Apache License 2.0 5 votes vote down vote up
public void setAttribute(SessionKey sessionKey, Object attributeKey, Object value) {
	try {
		super.setAttribute(sessionKey, attributeKey, value);
	} catch (InvalidSessionException e) {
		// Ignore exceptions
	}
}
 
Example 15
Source Project: super-cloudops   Source File: AbstractIamSessionManager.java    License: Apache License 2.0 5 votes vote down vote up
public Object removeAttribute(SessionKey sessionKey, Object attributeKey) {
	try {
		return super.removeAttribute(sessionKey, attributeKey);
	} catch (InvalidSessionException e) {
		// Ignore exceptions
		return null;
	}
}
 
Example 16
Source Project: super-cloudops   Source File: AbstractIamSessionManager.java    License: Apache License 2.0 5 votes vote down vote up
public void checkValid(SessionKey key) {
	try {
		super.checkValid(key);
	} catch (InvalidSessionException e) {
		// Ignore exceptions
	}
}
 
Example 17
Source Project: super-cloudops   Source File: AbstractIamSessionManager.java    License: Apache License 2.0 5 votes vote down vote up
public void stop(SessionKey key) {
	try {
		super.stop(key);
	} catch (InvalidSessionException e) {
		// Ignore exceptions
	}
}
 
Example 18
Source Project: RuoYi   Source File: OnlineWebSessionManager.java    License: Apache License 2.0 5 votes vote down vote up
@Override
public void setAttribute(SessionKey sessionKey, Object attributeKey, Object value){
    super.setAttribute(sessionKey, attributeKey, value);
    if (value != null && needMarkAttributeChanged(attributeKey)) {
        OnlineSession s = (OnlineSession) doGetSession(sessionKey);
        s.markAttributeChanged();
    }
}
 
Example 19
Source Project: RuoYi   Source File: OnlineWebSessionManager.java    License: Apache License 2.0 5 votes vote down vote up
@Override
public Object removeAttribute(SessionKey sessionKey, Object attributeKey){
    Object removed = super.removeAttribute(sessionKey, attributeKey);
    if (removed != null) {
        OnlineSession s = (OnlineSession) doGetSession(sessionKey);
        s.markAttributeChanged();
    }

    return removed;
}
 
Example 20
@Override
public void setAttribute(SessionKey sessionKey, Object attributeKey, Object value) throws InvalidSessionException
{
    super.setAttribute(sessionKey, attributeKey, value);
    if (value != null && needMarkAttributeChanged(attributeKey))
    {
        OnlineSession s = (OnlineSession) doGetSession(sessionKey);
        s.markAttributeChanged();
    }
}
 
Example 21
@Override
public Object removeAttribute(SessionKey sessionKey, Object attributeKey) throws InvalidSessionException
{
    Object removed = super.removeAttribute(sessionKey, attributeKey);
    if (removed != null)
    {
        OnlineSession s = (OnlineSession) doGetSession(sessionKey);
        s.markAttributeChanged();
    }

    return removed;
}
 
Example 22
Source Project: easyweb   Source File: SessionManager.java    License: Apache License 2.0 5 votes vote down vote up
protected Session retrieveSession(SessionKey sessionKey) {
	try{
		return super.retrieveSession(sessionKey);
	}catch (UnknownSessionException e) {
   		// 获取不到SESSION不抛出异常
		return null;
	}
}
 
Example 23
Source Project: easyweb   Source File: SessionManager.java    License: Apache License 2.0 5 votes vote down vote up
public Date getStartTimestamp(SessionKey key) {
  	try{
  		return super.getStartTimestamp(key);
  	}catch (InvalidSessionException e) {
  		// 获取不到SESSION不抛出异常
      	return null;
}
  }
 
Example 24
Source Project: easyweb   Source File: SessionManager.java    License: Apache License 2.0 5 votes vote down vote up
public Date getLastAccessTime(SessionKey key) {
  	try{
  		return super.getLastAccessTime(key);
  	}catch (InvalidSessionException e) {
  		// 获取不到SESSION不抛出异常
      	return null;
}
  }
 
Example 25
Source Project: easyweb   Source File: SessionManager.java    License: Apache License 2.0 5 votes vote down vote up
public long getTimeout(SessionKey key){
  	try{
  		return super.getTimeout(key);
  	}catch (InvalidSessionException e) {
  		// 获取不到SESSION不抛出异常
      	return 0;
}
  }
 
Example 26
Source Project: easyweb   Source File: SessionManager.java    License: Apache License 2.0 5 votes vote down vote up
public void setTimeout(SessionKey key, long maxIdleTimeInMillis) {
  	try{
  		super.setTimeout(key, maxIdleTimeInMillis);
  	}catch (InvalidSessionException e) {
  		// 获取不到SESSION不抛出异常
}
  }
 
Example 27
Source Project: easyweb   Source File: SessionManager.java    License: Apache License 2.0 5 votes vote down vote up
public void touch(SessionKey key) {
  	try{
   	super.touch(key);
}catch (InvalidSessionException e) {
	// 获取不到SESSION不抛出异常
}
  }
 
Example 28
Source Project: easyweb   Source File: SessionManager.java    License: Apache License 2.0 5 votes vote down vote up
public String getHost(SessionKey key) {
  	try{
  		return super.getHost(key);
  	}catch (InvalidSessionException e) {
  		// 获取不到SESSION不抛出异常
      	return null;
}
  }
 
Example 29
Source Project: easyweb   Source File: SessionManager.java    License: Apache License 2.0 5 votes vote down vote up
public Collection<Object> getAttributeKeys(SessionKey key) {
  	try{
  		return super.getAttributeKeys(key);
  	}catch (InvalidSessionException e) {
  		// 获取不到SESSION不抛出异常
      	return null;
}
  }
 
Example 30
Source Project: easyweb   Source File: SessionManager.java    License: Apache License 2.0 5 votes vote down vote up
public Object getAttribute(SessionKey sessionKey, Object attributeKey) {
  	try{
  		return super.getAttribute(sessionKey, attributeKey);
  	}catch (InvalidSessionException e) {
  		// 获取不到SESSION不抛出异常
      	return null;
}
  }