|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectome.services.sessions.SessionContextImpl
public class SessionContextImpl
Constructor Summary | |
---|---|
SessionContextImpl(ome.model.meta.Session session,
List<Long> lGroups,
List<Long> mGroups,
List<String> roles,
SessionStats stats)
|
Method Summary | |
---|---|
int |
decrement()
Decrement the current reference count and return the
new value atomically. |
Long |
getCurrentEventId()
|
String |
getCurrentEventType()
|
Long |
getCurrentGroupId()
|
String |
getCurrentGroupName()
|
Long |
getCurrentSessionId()
|
String |
getCurrentSessionUuid()
|
Long |
getCurrentShareId()
|
ome.model.internal.Permissions |
getCurrentUmask()
|
Long |
getCurrentUserId()
|
String |
getCurrentUserName()
|
List<Long> |
getLeaderOfGroupsList()
|
List<Long> |
getMemberOfGroupsList()
|
ome.model.meta.Session |
getSession()
|
List<String> |
getUserRoles()
|
int |
increment()
Increment the current reference count and return the
new value atomically. |
boolean |
isCurrentUserAdmin()
|
boolean |
isReadOnly()
|
int |
refCount()
Return the current number of references which this session is aware of. |
void |
setShareId(Long shareId)
The Share id is the only mutable bit in the SessionContext . |
SessionStats |
stats()
Return a SessionStats implementation for this session. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SessionContextImpl(ome.model.meta.Session session, List<Long> lGroups, List<Long> mGroups, List<String> roles, SessionStats stats)
Method Detail |
---|
public int refCount()
SessionContext
refCount
in interface SessionContext
public int increment()
SessionContext
reference count
and return the
new value atomically.
increment
in interface SessionContext
public int decrement()
SessionContext
reference count
and return the
new value atomically.
decrement
in interface SessionContext
public SessionStats stats()
SessionContext
SessionStats
implementation for this session.
stats
in interface SessionContext
public ome.model.meta.Session getSession()
getSession
in interface SessionContext
public List<String> getUserRoles()
getUserRoles
in interface SessionContext
public void setShareId(Long shareId)
SessionContext
SessionContext
.
setShareId
in interface SessionContext
public Long getCurrentShareId()
getCurrentShareId
in interface EventContext
public Long getCurrentSessionId()
getCurrentSessionId
in interface EventContext
public String getCurrentSessionUuid()
getCurrentSessionUuid
in interface EventContext
public Long getCurrentEventId()
getCurrentEventId
in interface EventContext
public String getCurrentEventType()
getCurrentEventType
in interface EventContext
public Long getCurrentGroupId()
getCurrentGroupId
in interface EventContext
public String getCurrentGroupName()
getCurrentGroupName
in interface EventContext
public Long getCurrentUserId()
getCurrentUserId
in interface EventContext
public String getCurrentUserName()
getCurrentUserName
in interface EventContext
public List<Long> getLeaderOfGroupsList()
getLeaderOfGroupsList
in interface EventContext
public List<Long> getMemberOfGroupsList()
getMemberOfGroupsList
in interface EventContext
public boolean isCurrentUserAdmin()
isCurrentUserAdmin
in interface EventContext
public boolean isReadOnly()
isReadOnly
in interface EventContext
public ome.model.internal.Permissions getCurrentUmask()
getCurrentUmask
in interface EventContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: Beta-4.1.1-r5927-b91
Copyright © 2009 The University of Dundee. All Rights Reserved.