no.sintef.assetrepository
Class Asset

java.lang.Object
  extended byjava.util.Observable
      extended byno.sintef.assetrepository.Asset

public class Asset
extends java.util.Observable

Author:
fvr TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Method Summary
 void addRepresentation(Representation representation)
           
 void checkIn(java.lang.String annotation)
           
 void checkOut()
           
 Asset createChildAsset(java.lang.String type, java.lang.String name, java.lang.String description, java.util.Map properties, java.lang.String annotation, Representation[] representations)
           
static Asset createRootAsset(java.lang.String type, java.lang.String name, java.lang.String description, java.util.Map properties, java.lang.String annotation, Representation[] representations)
           
static Asset getAssetById(java.lang.String id)
           
static java.util.Collection getAssetsByType(java.lang.String type)
           
 java.util.Collection getChildIds()
           
 java.lang.String getDescription()
           
 java.lang.String getId()
           
 java.lang.String getName()
           
 java.lang.String getOwner()
           
 java.lang.String getProperty(java.lang.String key)
           
 Representation[] getRepresentations()
           
 boolean isDeleted()
           
 boolean isDirty()
           
 void markAsDeleted()
           
 void reloadAsset(boolean forceLoadBaseVersion)
           
 void removeRepresentation(Representation representation)
           
 void setDescription(java.lang.String newDescription)
           
static void setJndiUrl(java.lang.String hostname, int port)
           
 void setName(java.lang.String newName)
           
 void setOwner(java.lang.String newOwner)
           
 void setProperty(java.lang.String key, java.lang.String value)
           
 void unCheckOut()
           
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createRootAsset

public static Asset createRootAsset(java.lang.String type,
                                    java.lang.String name,
                                    java.lang.String description,
                                    java.util.Map properties,
                                    java.lang.String annotation,
                                    Representation[] representations)
                             throws no.sintef.lock.LockException
Throws:
no.sintef.lock.LockException

getAssetById

public static Asset getAssetById(java.lang.String id)

getAssetsByType

public static java.util.Collection getAssetsByType(java.lang.String type)

isDeleted

public boolean isDeleted()

markAsDeleted

public void markAsDeleted()
                   throws no.sintef.lock.LockException
Returns:
Throws:
RepositoryException
no.sintef.lock.LockException
java.rmi.RemoteException

reloadAsset

public void reloadAsset(boolean forceLoadBaseVersion)

checkOut

public void checkOut()
              throws no.sintef.lock.LockException
Throws:
no.sintef.lock.LockException

unCheckOut

public void unCheckOut()
                throws no.sintef.lock.LockException
Throws:
no.sintef.lock.LockException

checkIn

public void checkIn(java.lang.String annotation)
             throws no.sintef.lock.LockException
Throws:
no.sintef.lock.LockException

isDirty

public boolean isDirty()

getId

public java.lang.String getId()

getName

public java.lang.String getName()

setName

public void setName(java.lang.String newName)
             throws no.sintef.lock.LockRequiredException
Throws:
no.sintef.lock.LockRequiredException

getDescription

public java.lang.String getDescription()

setDescription

public void setDescription(java.lang.String newDescription)
                    throws no.sintef.lock.LockRequiredException
Throws:
no.sintef.lock.LockRequiredException

getOwner

public java.lang.String getOwner()

setOwner

public void setOwner(java.lang.String newOwner)
              throws no.sintef.lock.LockRequiredException
Throws:
no.sintef.lock.LockRequiredException

createChildAsset

public Asset createChildAsset(java.lang.String type,
                              java.lang.String name,
                              java.lang.String description,
                              java.util.Map properties,
                              java.lang.String annotation,
                              Representation[] representations)
                       throws no.sintef.lock.LockException
Throws:
no.sintef.lock.LockException

getProperty

public java.lang.String getProperty(java.lang.String key)

setProperty

public void setProperty(java.lang.String key,
                        java.lang.String value)
                 throws no.sintef.lock.LockRequiredException
Throws:
no.sintef.lock.LockRequiredException

getChildIds

public java.util.Collection getChildIds()

getRepresentations

public Representation[] getRepresentations()

addRepresentation

public void addRepresentation(Representation representation)
                       throws no.sintef.lock.LockRequiredException
Throws:
no.sintef.lock.LockRequiredException

removeRepresentation

public void removeRepresentation(Representation representation)
                          throws no.sintef.lock.LockRequiredException
Throws:
no.sintef.lock.LockRequiredException

setJndiUrl

public static final void setJndiUrl(java.lang.String hostname,
                                    int port)


Copyright © 2003-2005 SINTEF. All Rights Reserved.