Skip to content
Snippets Groups Projects
Commit 3e85a0d3 authored by jakubs's avatar jakubs
Browse files

BIS-190 SP-295 add more constructors to metaproject identifier id

SVN: 27530
parent bc04baa3
No related branches found
No related tags found
No related merge requests found
...@@ -18,6 +18,7 @@ package ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.id.metaproject; ...@@ -18,6 +18,7 @@ package ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.id.metaproject;
import ch.systemsx.cisd.base.annotation.JsonObject; import ch.systemsx.cisd.base.annotation.JsonObject;
import ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.id.ObjectIdentifierId; import ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.id.ObjectIdentifierId;
import ch.systemsx.cisd.openbis.generic.shared.basic.dto.MetaprojectIdentifier;
import ch.systemsx.cisd.openbis.generic.shared.basic.dto.ServiceVersionHolder; import ch.systemsx.cisd.openbis.generic.shared.basic.dto.ServiceVersionHolder;
/** /**
...@@ -39,6 +40,23 @@ public class MetaprojectIdentifierId extends ObjectIdentifierId implements IMeta ...@@ -39,6 +40,23 @@ public class MetaprojectIdentifierId extends ObjectIdentifierId implements IMeta
super(identifier); super(identifier);
} }
/**
* @param identifier Metaproject identifier
*/
public MetaprojectIdentifierId(MetaprojectIdentifier identifier)
{
super(identifier.format());
}
/**
* @param ownerId Metaproject owner
* @param name Metaproject name
*/
public MetaprojectIdentifierId(String ownerId, String name)
{
this(new MetaprojectIdentifier(ownerId, name));
}
// //
// JSON-RPC // JSON-RPC
// //
......
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