public class SMSFlatFileObject extends SMSFlatFileObjectBase
mDebug, mInitialized, mRootDir, mRootDirHandle, mRootDN, mRWLock
Constructor and Description |
---|
SMSFlatFileObject()
Constructor for SMSFlatFileObject.
|
Modifier and Type | Method and Description |
---|---|
void |
create(SSOToken token,
String objName,
Map attrs)
Creates the configuration object.
|
void |
delete(SSOToken token,
String objName)
Deletes the configuration object and all objects below it.
|
protected void |
deleteSunXmlKeyValFiles(File dirHandle)
Delete sunxmlkeyvalue files under the given directory.
|
boolean |
entryExists(SSOToken token,
String objName)
Returns
ture if the configuration object exists. |
protected Set |
getSubEntries(String objName,
String filter,
String sidFilter,
boolean isSubConfig,
int numOfEntries,
boolean sortResults,
boolean ascendingOrder)
Real routine to get sub entries, used by subEntries() and
schemaSubEntries().
|
protected void |
loadMapper()
Loads the name mapper, create it if it doesn't exist.
|
void |
modify(SSOToken token,
String objName,
ModificationItem[] mods)
Modify the attributes for the given configuration object.
|
Map |
read(SSOToken token,
String objName)
Reads in attributes of a configuration object.
|
String |
toString() |
decodeVal, deregisterCallbackHandler, encodeVal, initialize, loadProperties, modifyValues, registerCallbackHandler, saveProperties, schemaSubEntries, search, search, searchOrganizationNames, searchSubOrgNames, subEntries, toValSet, toValString, toValString
getAMSdkBaseDN, getRootSuffix
cacheResults, debug, getAttributeNames, getNamingAttribute, getOrgNamingAttribute, getSearchFilter, getServiceIdSearchFilter, initialize, registerCallbackHandler, shutdown
public SMSFlatFileObject() throws SMSException
SMSException
protected void loadMapper() throws SMSException
SMSException
protected Set getSubEntries(String objName, String filter, String sidFilter, boolean isSubConfig, int numOfEntries, boolean sortResults, boolean ascendingOrder) throws SMSException
getSubEntries
in class SMSFlatFileObjectBase
ServiceNotFoundException
- if the configuration object is
not found.SchemaException
- if a sub directory name is not in the
expected "ou=..." format.SMSException
protected void deleteSunXmlKeyValFiles(File dirHandle) throws SMSException
SMSException
public Map read(SSOToken token, String objName) throws SMSException, SSOException
read
in class SMSObject
token
- Ignored argument. Access check is assumed to have
occurred before reaching this method.objName
- Name of the configuration object, expected to be a dn.SMSException
- if an IO error occurred during the read.SchemaException
- if a format error occurred while reading the
attributes properties file.IllegalArgumentException
- if objName argument is null or empty.SSOException
public void create(SSOToken token, String objName, Map attrs) throws SMSException, SSOException
create
in class SMSObject
token
- Ignored argument. Access check is assumed to have
occurred before reaching this method.objName
- Name of the configuration object to create. Name is
expected to be a dn.attrs
- Map of attributes for the object.IllegalArgumentException
- if the objName or attrs argument is
null or empty.ServiceAlreadyExistsException
- if the configuration object
already exists.SMSException
- if an IO error occurred while creating the
configuration object.SSOException
public void modify(SSOToken token, String objName, ModificationItem[] mods) throws SMSException, SSOException
modify
in class SMSObject
token
- Ignored argument. Access check is assumed to have
occurred before reaching this method.objName
- Name of the configuration object to modify. Name is
expected to be a dn.mods
- Array of attributes to modify.IllegalArgumentException
- if objName or mods argument is null or
empty, or if an error was encountered getting attributes from the
mods argument.ServiceNotFoundException
- if the attributes properties file
for the configuration object is not found.SchemaException
- if a format error occurred while reading in the
existing attributes properties file.SMSException
- if an IO error occurred while reading or writing
to the attributes properties file.SSOException
public void delete(SSOToken token, String objName) throws SMSException, SSOException
delete
in class SMSObject
token
- Ignored argument. Access check is assumed to have
occurred before reaching this method.objName
- Name of the configuration object to delete. Name is
expected to be a dn.IllegalArgumentException
- if objName argument is null or empty.SMSException
- if any files for or under the configuration object
could not be removed.SSOException
public boolean entryExists(SSOToken token, String objName)
ture
if the configuration object exists.entryExists
in class SMSObject
token
- Ignored argument. Access check is assumed to have
occurred before reaching this method.objName
- Name of the configuration object to check.true>/code> if the configuration object exists.
IllegalArgumentException
- if objName is null or empty.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.