issrg.test.dis
Class VirtualLDAP

java.lang.Object
  extended by issrg.utils.repository.VirtualRepository
      extended by issrg.test.dis.VirtualLDAP
All Implemented Interfaces:
DISCore.Repository, AttributeRepository

public class VirtualLDAP
extends VirtualRepository
implements DISCore.Repository

Author:
anhnt

Field Summary
static java.lang.String AC_attribute
          Creates a new instance of VirtualLDAPUtility
 
Fields inherited from class issrg.utils.repository.VirtualRepository
diagnosis, repository
 
Fields inherited from interface issrg.utils.repository.AttributeRepository
FAILURE_STATUS, INHERENT_FAILURE_STATUS, PARTIAL_SUCCESS_STATUS, SUCCESS_STATUS
 
Constructor Summary
VirtualLDAP()
           
 
Method Summary
 void deleteAC(java.lang.String dn, int idx)
           
 void deleteAllACs(java.lang.String dn)
           
 javax.naming.directory.Attribute loadACs(java.lang.String dn)
           
 void save(byte[] ac)
           
 void save(java.io.File f)
           
 
Methods inherited from class issrg.utils.repository.VirtualRepository
get, getAllAttributes, getAttribute, getAttributes, getDiagnosis, getStatus, loadPKC, populate, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AC_attribute

public static java.lang.String AC_attribute
Creates a new instance of VirtualLDAPUtility

Constructor Detail

VirtualLDAP

public VirtualLDAP()
Method Detail

save

public void save(byte[] ac)
          throws java.lang.Exception
Specified by:
save in interface DISCore.Repository
Throws:
java.lang.Exception

save

public void save(java.io.File f)
          throws java.lang.Exception
Throws:
java.lang.Exception

loadACs

public javax.naming.directory.Attribute loadACs(java.lang.String dn)
                                         throws java.lang.Exception
Specified by:
loadACs in interface DISCore.Repository
Throws:
java.lang.Exception

deleteAC

public void deleteAC(java.lang.String dn,
                     int idx)
              throws java.lang.Exception
Specified by:
deleteAC in interface DISCore.Repository
Throws:
java.lang.Exception

deleteAllACs

public void deleteAllACs(java.lang.String dn)
                  throws java.lang.Exception
Specified by:
deleteAllACs in interface DISCore.Repository
Throws:
java.lang.Exception