public class SuffixP extends Object
Suffix
class. This class does perform simple data validations.
The FortressAntTask.addSuffixes()
method calls the add(org.apache.directory.fortress.core.model.Suffix)
from this
class during initial base loads. Removal FortressAntTask.deleteSuffixes()
is performed during regression tests and should never be executed targeting production directory systems.Suffix
, and forward on to it's corresponding DAO
class SuffixDAO
for add/delete of suffix.
Class will throw SecurityException
to caller in the event of security policy,
data constraint violation or system error internal to DAO object. This class will forward DAO exceptions
(FinderException
, CreateException
,
UpdateException
,RemoveException
),
or ValidationException
as
SecurityException
s with appropriate error id from GlobalErrIds
.
The delete(org.apache.directory.fortress.core.model.Suffix)
method in this class is destructive as it will remove all nodes below the suffix using recursive
delete function.
Extreme care should be taken during execution to ensure target dn is correct and permanent removal of data is intended.
There is no 'undo' for this operation.
Simple error mapping is performed in validate(org.apache.directory.fortress.core.model.Suffix)
class.
This class is thread safe.
Constructor and Description |
---|
SuffixP() |
Modifier and Type | Method and Description |
---|---|
void |
add(Suffix suffix)
Add a new suffix to the Directory Information Tree (DIT).
|
void |
delete(Suffix suffix)
Remove the suffix along with descendant nodes.
|
public final void add(Suffix suffix) throws SecurityException
suffix
- contains the dc name and top level dc for target node.SecurityException
- in event of validation or system error.public final void delete(Suffix suffix) throws SecurityException
This method is destructive and will remove all nodes below.
Extreme care should be taken during execution to ensure target dn is correct and permanent removal of data is intended. There is no
'undo' for this operation.
suffix
- contains the dc name and top level dc for target node.SecurityException
- in event of validation or system error.Copyright © 2003-2016, The Apache Software Foundation. All Rights Reserved. Generated 20160718-1621