org.jboss.dna.connector.federation.executor
Class ProjectedGetPropertiesCommand

java.lang.Object
  extended by org.jboss.dna.connector.federation.executor.ActsOnProjectedPathCommand<GetPropertiesCommand>
      extended by org.jboss.dna.connector.federation.executor.ProjectedGetPropertiesCommand
All Implemented Interfaces:
Serializable, Cacheable, ActsOnPath, GetPropertiesCommand, GraphCommand

public class ProjectedGetPropertiesCommand
extends ActsOnProjectedPathCommand<GetPropertiesCommand>
implements GetPropertiesCommand

Author:
Randall Hauch
See Also:
Serialized Form

Constructor Summary
ProjectedGetPropertiesCommand(GetPropertiesCommand delegate, Path projectedPath)
           
 
Method Summary
 CachePolicy getCachePolicy()
          Get the caching policy to be used for this object.
 DateTime getTimeLoaded()
          Get the time that this node data was originally loaded.
 void setCachePolicy(CachePolicy cachePolicy)
          Set the caching policy for this object.
 void setProperty(Property property)
          Set the values for the named property.
 
Methods inherited from class org.jboss.dna.connector.federation.executor.ActsOnProjectedPathCommand
getError, getPath, hasError, hasNoError, isCancelled, setError
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.dna.graph.commands.GraphCommand
getError, hasError, hasNoError, isCancelled, setError
 
Methods inherited from interface org.jboss.dna.graph.commands.ActsOnPath
getPath
 

Constructor Detail

ProjectedGetPropertiesCommand

public ProjectedGetPropertiesCommand(GetPropertiesCommand delegate,
                                     Path projectedPath)
Method Detail

getCachePolicy

public CachePolicy getCachePolicy()
Get the caching policy to be used for this object.

Note that the values of the policy are relative to the time the node was loaded, so the same instance can be used for many nodes.

Specified by:
getCachePolicy in interface Cacheable
Returns:
cachePolicy the caching policy, which may not be null
See Also:
Cacheable.getCachePolicy()

getTimeLoaded

public DateTime getTimeLoaded()
Get the time that this node data was originally loaded.

Specified by:
getTimeLoaded in interface Cacheable
Returns:
the system time (in milliseconds) that the node data was loaded
See Also:
Cacheable.getTimeLoaded()

setCachePolicy

public void setCachePolicy(CachePolicy cachePolicy)
Set the caching policy for this object.

Specified by:
setCachePolicy in interface Cacheable
Parameters:
cachePolicy - the caching policy to use for this object
See Also:
Cacheable.setCachePolicy(org.jboss.dna.graph.cache.CachePolicy)

setProperty

public void setProperty(Property property)
Set the values for the named property. Any existing property values, if previously set, will be overwritten. If there are no property vlaues or if all of the property values are null, the property will be removed.

Specified by:
setProperty in interface GetPropertiesCommand
Parameters:
property - the property
See Also:
GetPropertiesCommand.setProperty(org.jboss.dna.graph.properties.Property)


Copyright © 2008-Present JBoss a division of Red Hat. All Rights Reserved.