Skip to content
Snippets Groups Projects
Commit 4707d7cb authored by buczekp's avatar buczekp
Browse files

[LMS-1979] fixed dependency

SVN: 20277
parent f20ea50f
No related branches found
No related tags found
No related merge requests found
...@@ -19,7 +19,7 @@ package ch.systemsx.cisd.openbis.generic.server.business.bo.managed_property; ...@@ -19,7 +19,7 @@ package ch.systemsx.cisd.openbis.generic.server.business.bo.managed_property;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import ch.systemsx.cisd.openbis.generic.client.web.client.exception.UserFailureException; import ch.systemsx.cisd.common.exceptions.UserFailureException;
import ch.systemsx.cisd.openbis.generic.server.dataaccess.IDAOFactory; import ch.systemsx.cisd.openbis.generic.server.dataaccess.IDAOFactory;
import ch.systemsx.cisd.openbis.generic.shared.ResourceNames; import ch.systemsx.cisd.openbis.generic.shared.ResourceNames;
import ch.systemsx.cisd.openbis.generic.shared.basic.IIdentifierHolder; import ch.systemsx.cisd.openbis.generic.shared.basic.IIdentifierHolder;
...@@ -110,7 +110,7 @@ public class EntityInformationProvider implements IEntityInformationProvider ...@@ -110,7 +110,7 @@ public class EntityInformationProvider implements IEntityInformationProvider
homeInstance); homeInstance);
if (space == null) if (space == null)
{ {
throw new UserFailureException("space " + spaceCode + " doesn't exist"); throw UserFailureException.fromTemplate("space '%s' doesn't exist ", spaceCode);
} }
SamplePE sample = daoFactory.getSampleDAO().tryFindByCodeAndSpace(sampleCode, space); SamplePE sample = daoFactory.getSampleDAO().tryFindByCodeAndSpace(sampleCode, space);
return (sample != null) ? sample.getPermId() : null; return (sample != null) ? sample.getPermId() : null;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment