public class SIDCache
extends java.lang.Object
Cache used to hold SIDs from lookups on a remote server to prevent multiple lookups for the same name/id.
Constructor and Description |
---|
SIDCache()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addSID(java.lang.String name,
SID sid)
Add a SID to the cache
|
java.util.Enumeration |
enumerateNames()
Enumerate the names in the cache
|
java.util.Enumeration |
enumerateSIDs()
Enumerate the SIDs in the cache
|
java.lang.String |
findName(SID sid)
Find the name of the matching SID
|
SID |
findSID(java.lang.String name)
Return the SID for the specified name
|
int |
numberOfSIDs()
Return the number of SIDs in the cache
|
void |
removeAllSIDs()
Clear all SIDs from the cache
|
SID |
removeSID(java.lang.String index)
Delete a SID from the cache
|
public final int numberOfSIDs()
public final void addSID(java.lang.String name, SID sid)
index
- Stringsid
- SIDpublic final SID findSID(java.lang.String name)
name
- Stringpublic final java.lang.String findName(SID sid)
sid
- SIDpublic final SID removeSID(java.lang.String index)
index
- Stringpublic final java.util.Enumeration enumerateNames()
public final java.util.Enumeration enumerateSIDs()
public final void removeAllSIDs()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.