nl.gx.webmanager.services.entitymanager
Class IdentifiableUtil

java.lang.Object
  extended by nl.gx.webmanager.services.entitymanager.IdentifiableUtil

public final class IdentifiableUtil
extends java.lang.Object

This is a utility class for the creation of WmIds for WebManager entity instances.


Method Summary
static WmId getId(java.lang.Object entity)
          Creates a WmId instance for a given entity.
static WmId getIdFromString(java.lang.String strId)
          Create a WmId instance from the given ID string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getId

public static WmId getId(java.lang.Object entity)
Creates a WmId instance for a given entity.

Parameters:
entity - the entity to create a WmId for
Returns:
a WmId for the given entity
Throws:
DomainError - if a WmId cannot be obtained (for instance, when an unknown entity type is given)

getIdFromString

public static WmId getIdFromString(java.lang.String strId)
Create a WmId instance from the given ID string.

Parameters:
strId - The identitier string, typically originally generated from WmId.toString().
Returns:
WmId or null if the string could not be parsed.


Copyright © 2007-2011 GX Software BV. All Rights Reserved.