info.magnolia.dam.api
Class ItemKey

java.lang.Object
  extended by info.magnolia.dam.api.ItemKey

public class ItemKey
extends Object

A "composite key": in the dam, every Asset and Folder are identified by its provider's ID and its provider-specific ID (i.e the ID with which the provider can uniquely identify the asset itself).


Constructor Summary
ItemKey(String providerId, String assetId)
           
 
Method Summary
 String asString()
           
 boolean equals(Object o)
           
static ItemKey from(String compositeKey)
           
 String getAssetId()
           
 String getProviderId()
           
 int hashCode()
           
static boolean isValid(String compositeKey)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemKey

public ItemKey(String providerId,
               String assetId)
Method Detail

from

public static ItemKey from(String compositeKey)

isValid

public static boolean isValid(String compositeKey)

getProviderId

public String getProviderId()

getAssetId

public String getAssetId()

asString

public String asString()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2014 Magnolia International Ltd.. All Rights Reserved.