public class CategoryTable
extends java.lang.Object
ObjectProfileCategory| Modifier and Type | Method and Description |
|---|---|
ObjectProfileCategory |
getCategory(java.lang.String categoryName)
Gets category by name
|
static CategoryTable |
getInstance(DistinguishedName tenantDN)
Get getInstance method for this singleton class
|
long |
getLastRefreshTime()
Return the last refresh time
|
void |
refresh()
Update cache against LDAP data
|
ObjectProfileCategory |
retrieveCategory(java.lang.String categoryName)
Gets category from directory server
|
void |
setLastRefreshTime(long time)
Update last refresh time
|
void |
updateCategory(ObjectProfileCategory cat)
Updates category in cache and store into ldap
|
public static CategoryTable getInstance(DistinguishedName tenantDN) throws ModelIntegrityException
tenantDN - tenant dn for this category tableModelIntegrityExceptionpublic ObjectProfileCategory getCategory(java.lang.String categoryName) throws ObjectNotFoundException
categoryName - name of the categoryObjectNotFoundExceptionpublic ObjectProfileCategory retrieveCategory(java.lang.String categoryName) throws ModelIntegrityException, ModelCommunicationException
categoryName - name of the categoryModelIntegrityExceptionModelCommunicationExceptionpublic void updateCategory(ObjectProfileCategory cat) throws ModelIntegrityException, ModelCommunicationException
cat - new category for updateModelIntegrityExceptionModelCommunicationExceptionpublic void refresh()
public long getLastRefreshTime()
public void setLastRefreshTime(long time)
time -