public XregistryImpl getRegistryImpl() {
return registryImpl;
}
public AddOGCEResourceResponseDocument addOGCEResource(AddOGCEResourceDocument input) throws XregistryException {
log.info("Request Received " + input.xmlText());
AddOGCEResource resource = input.getAddOGCEResource();
String userDN = null;
if(resource.getOwner() != null && resource.getOwner() != ""){
userDN = resource.getOwner();
}else{
userDN = findUserDN();
}
String parentTypedID = resource.getParentTypedID();
if(parentTypedID == null || parentTypedID.trim() == "" )
{
parentTypedID = XregistryConstants.DEFAULTPARENT;
}
registryImpl.registerOGCEResource(userDN, resource.getResourceID(),resource.getResourceName(), resource.getResourceType(),resource.getResourceDesc(), resource.getResourceDocument(), parentTypedID);
AddOGCEResourceResponseDocument responseDocument = AddOGCEResourceResponseDocument.Factory.newInstance();
responseDocument.addNewAddOGCEResourceResponse();
log.info("Response " + responseDocument.xmlText());
return responseDocument;
}