org.jasig.portal.channels.jsp.tree
Class DefaultSurrogate

java.lang.Object
  extended by org.jasig.portal.channels.jsp.tree.BaseSurrogateImpl
      extended by org.jasig.portal.channels.jsp.tree.DefaultSurrogate
All Implemented Interfaces:
ISurrogate

Deprecated. All IChannel implementations should be migrated to portlets

@Deprecated
public class DefaultSurrogate
extends BaseSurrogateImpl

Provides default resolution of domain objects for presenting in a tree. The class uses object hashCodes for the identifiers of objects and the results of toString() for label data.

Author:
Mark Boyd

Constructor Summary
DefaultSurrogate()
          Deprecated.  
 
Method Summary
 boolean canResolve(Object o)
          Deprecated. Always returns true since it can resolve any domain object using basic java language constructs for representing the objects in the tree.
 String getId(Object o)
          Deprecated. Returns the String version of the hash code of the passed-in object.
 Object getLabelData(Object o)
          Deprecated. Returns the results of calling toString() on the passed in object.
 
Methods inherited from class org.jasig.portal.channels.jsp.tree.BaseSurrogateImpl
canContainChildren, getAspects, getChildren, hasAspects, hasChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSurrogate

public DefaultSurrogate()
Deprecated. 
Method Detail

canResolve

public boolean canResolve(Object o)
Deprecated. 
Always returns true since it can resolve any domain object using basic java language constructs for representing the objects in the tree.

Returns:
true if this class can act as a surrogate for the passed in object.

getId

public String getId(Object o)
Deprecated. 
Returns the String version of the hash code of the passed-in object.

Returns:
the id for o.

getLabelData

public Object getLabelData(Object o)
Deprecated. 
Returns the results of calling toString() on the passed in object.

Specified by:
getLabelData in interface ISurrogate
Overrides:
getLabelData in class BaseSurrogateImpl
Returns:
the UI presentable label for o.


Copyright © 2010 Jasig. All Rights Reserved.