コード例 #1
0
 @Override
 protected void storeChilds(String deviceDN, Device device) throws NamingException {
   super.storeChilds(deviceDN, device);
   if (!(device instanceof ArchiveDevice)) return;
   ArchiveDevice arcDev = (ArchiveDevice) device;
   for (Entity entity : Entity.values())
     createSubcontext(
         dnOf("dcmEntity", entity.toString(), deviceDN),
         storeTo(arcDev.getAttributeFilter(entity), entity, new BasicAttributes(true)));
 }
コード例 #2
0
 @Override
 protected void storeChilds(String aeDN, ApplicationEntity ae) throws NamingException {
   super.storeChilds(aeDN, ae);
   if (!(ae instanceof ArchiveApplicationEntity)) return;
   ArchiveApplicationEntity arcAE = (ArchiveApplicationEntity) ae;
   store(arcAE.getAttributeCoercions(), aeDN);
   for (StoreDuplicate sd : arcAE.getStoreDuplicates())
     createSubcontext(dnOf(sd, aeDN), storeTo(sd, new BasicAttributes(true)));
   for (RejectionNote rn : arcAE.getRejectionNotes())
     createSubcontext(dnOf(rn, aeDN), storeTo(rn, new BasicAttributes(true)));
 }