public IOidFacade RestoreOid(OidTranslationSlashSeparatedTypeAndIds id) { Type type = ValidateObjectId(id); string[] keys = GetKeys(id.InstanceId, type); var adapter = GetObject(keys, type); if (adapter == null) { throw new ObjectResourceNotFoundNOSException(id + ": null adapter"); } return new OidFacade(adapter.Oid); }
public IOidFacade RestoreSid(OidTranslationSlashSeparatedTypeAndIds id) { Type type = ValidateServiceId(id); IServiceSpec spec; try { spec = (IServiceSpec) framework.MetamodelManager.GetSpecification(type); } catch (Exception e) { throw new ServiceResourceNotFoundNOSException(type.ToString(), e); } if (spec == null) { throw new ServiceResourceNotFoundNOSException(type.ToString()); } INakedObjectAdapter service = framework.ServicesManager.GetServicesWithVisibleActions(framework.LifecycleManager).SingleOrDefault(no => no.Spec.IsOfType(spec)); if (service == null) { throw new ServiceResourceNotFoundNOSException(type.ToString()); } return new OidFacade(service.Oid); }
public IOidFacade RestoreSid(OidTranslationSlashSeparatedTypeAndIds id) { throw new NotImplementedException(); }