Constructor and Description |
---|
SMSEntry(SSOToken token,
String dn)
Constructor for a persistent SMS object given an authenticated SSOToken
and DN.
|
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(String attrName,
String value)
Adds the attribute value to the given attribute name.
|
static boolean |
checkIfEntryExists(String dn,
SSOToken token)
Checks if the provided DN exists.
|
Object |
clone() |
boolean |
containsAttrValue(String attrName,
String attrValue)
Checks if the attribute value exists in the attribute
|
void |
delete()
Delete the entry in the datastore.
|
void |
forceDelete(SSOToken adminToken)
Delete the entry in the datastore.
|
static String |
getAMSdkBaseDN() |
Map |
getAttributes()
Returns the read attributes
|
String[] |
getAttributeValues(String attrName)
Returns the attribute values for the given attribute name.
|
String[] |
getAttributeValues(String attrName,
boolean ignoreCache) |
static String |
getDataStore(SSOToken token) |
static String |
getFilterPatternService() |
static String |
getRootSuffix() |
static void |
initializeClass() |
protected static void |
initializeProperties() |
static boolean |
isAttributeCaseSensitive(String attrName) |
boolean |
isNewEntry()
Returns
true if the entry does not exist in the data store |
void |
modifyAttributes(ModificationItem[] modItems)
Modify the attribute values.
|
protected static Set |
parseResult(Set resultSet,
String dn) |
protected static Set |
parseResult(Set resultSet,
String dn,
boolean includeThisDN) |
void |
removeAttribute(String attrName)
Remove the attribute from the entry.
|
void |
removeAttribute(String attrName,
String value)
Removes the attribute value from the attribute.
|
void |
save()
Save the modification(s) to the object.
|
static Set<String> |
search(SSOToken token,
String dn,
String filter,
int numOfEntries,
int timeLimit,
boolean sortResults,
boolean ascendingOrder)
Returns the DNs that match the filter.
|
static Iterator |
search(SSOToken token,
String dn,
String filter,
int numOfEntries,
int timeLimit,
boolean sortResults,
boolean ascendingOrder,
Set exclude)
Returns the DNs and its attribute values that match the filter.
|
void |
setAttribute(String attrName,
String[] attrValues)
Set the attribute values.
|
void |
setAttributes(Map attributes)
Set the attributes.
|
String |
toString() |
static void |
validateToken(SSOToken token) |
public static final String ORGANIZATION_RDN
public static final String EQUALS
public static final String SERVICES_NODE
public static final String PLACEHOLDER_RDN
public static final String SERVICES_RDN
public static final String COMMA
public static Debug debug
public static Debug eventDebug
public static SSOTokenManager tm
public static String DATASTORE_FLAT_FILE
public static String DATASTORE_SUN_DIR
public static String DATASTORE_ACTIVE_DIR
public static ResourceBundle bundle
public static final String DB_PROXY_ENABLE
public static final String EXPORTEDARGS
public static final String IMPORTEDARGS
protected String dn
protected String normalizedDN
public static final String DC_RDN
public static final String DEFAULT_RDN
public static final String ATTR_SCHEMA
public static final String ATTR_PLUGIN_SCHEMA
public static final String ATTR_KEYVAL
public static final String ATTR_XML_KEYVAL
public static final String ATTR_OBJECTCLASS
public static final String ATTR_PRIORITY
public static final String ATTR_SERVICE_ID
public static final String ATTR_LABELED_URI
public static final String ATTR_MODIFY_TIMESTAMP
public static final String[] SMS_ATTRIBUTES
public static final String OC_TOP
public static final String OC_ORG_UNIT
public static final String OC_SERVICE
public static final String OC_REALM_SERVICE
public static final String OC_SERVICE_COMP
public static final String SMS_SERVER_GROUP
public static final String SUN_INTERNAL_REALM_NAME
public static final String SUN_INTERNAL_REALM_PREFIX
public static final String SUN_INTERNAL_REALM_PREFIX2
public static final String REALM_SERVICE
protected static final String FILTER_PATTERN_ALL
protected static final String FILTER_PATTERN
protected static final String FILTER_PATTERN_SERVICE
public static final String FILTER_SERVICE_COMPONENTS
public SMSEntry(SSOToken token, String dn) throws SSOException, SMSException
SSOException
SMSException
public static void initializeClass()
protected static void initializeProperties()
public Map getAttributes()
public String[] getAttributeValues(String attrName)
public void addAttribute(String attrName, String value) throws SMSException
SMSException
public void setAttribute(String attrName, String[] attrValues)
save()
must be called to make
the changes persistantpublic void modifyAttributes(ModificationItem[] modItems)
save()
must be called to make
the changes persistant. This does not affect the existing attributes
already read.public void setAttributes(Map attributes)
save()
must be called to make
the changes persistantpublic void removeAttribute(String attrName, String value) throws SMSException
attrName
- Name of attribute.value
- Value to be removed.SMSException
- if value cannot be removed.public void removeAttribute(String attrName) throws SMSException
SMSException
public boolean containsAttrValue(String attrName, String attrValue)
public void save() throws SSOException, SMSException
SSOException
SMSException
public void delete() throws SMSException, SSOException
SMSException
SSOException
public void forceDelete(SSOToken adminToken) throws SMSException, SSOException
SMSException
SSOException
public static Set<String> search(SSOToken token, String dn, String filter, int numOfEntries, int timeLimit, boolean sortResults, boolean ascendingOrder) throws SMSException
token
- Single-Sign On token.dn
- Base DNfilter
- Search Filter.numOfEntries
- number of max entries, 0 means unlimitedtimeLimit
- maximum number of seconds for the search to spend, 0
means unlimitedsortResults
- true
to have result sorted.ascendingOrder
- true
to have result sorted in
ascending order.SMSException
public static Iterator search(SSOToken token, String dn, String filter, int numOfEntries, int timeLimit, boolean sortResults, boolean ascendingOrder, Set exclude) throws SMSException
token
- Single-Sign On token.dn
- Base DNfilter
- Search Filter.numOfEntries
- number of max entries, 0 means unlimitedtimeLimit
- maximum number of seconds for the search to spend, 0
means unlimitedsortResults
- true
to have result sorted.ascendingOrder
- true
to have result sorted in
ascending order.exclude
- List of DN to exclude.SMSException
public static boolean checkIfEntryExists(String dn, SSOToken token)
public boolean isNewEntry()
true
if the entry does not exist in the data storepublic static void validateToken(SSOToken token) throws SMSException
SMSException
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public static String getRootSuffix()
public static String getAMSdkBaseDN()
public static boolean isAttributeCaseSensitive(String attrName)
public static String getFilterPatternService()
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.