public class SIDCache extends 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(String name,
SID sid)
Add a SID to the cache
|
Enumeration<String> |
enumerateNames()
Enumerate the names in the cache
|
Enumeration<SID> |
enumerateSIDs()
Enumerate the SIDs in the cache
|
String |
findName(SID sid)
Find the name of the matching SID
|
SID |
findSID(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(String index)
Delete a SID from the cache
|
public final int numberOfSIDs()
public final void addSID(String name, SID sid)
name
- Stringsid
- SIDpublic final SID findSID(String name)
name
- Stringpublic final String findName(SID sid)
sid
- SIDpublic final SID removeSID(String index)
index
- Stringpublic final Enumeration<String> enumerateNames()
public final Enumeration<SID> enumerateSIDs()
public final void removeAllSIDs()
Copyright © 2005–2017 Alfresco Software. All rights reserved.