com.endeca.infront.cartridge.model
Class RecordAction

java.lang.Object
  extended by com.endeca.infront.cartridge.model.Action
      extended by com.endeca.infront.cartridge.model.RecordAction

public class RecordAction
extends Action

An Action which represents the selection of a particular record or aggregate record.


Constructor Summary
RecordAction()
          Default constructor.
RecordAction(String recordState)
          Constructs a record action with the given record state.
RecordAction(String recordState, String label)
          Constructs a record action with the given record state and label.
RecordAction(String recordState, String label, String siteRootPath, String contentPath)
          Constructs a record action with the given record state, label, site root path and content path.
 
Method Summary
 String getRecordState()
           
 void setRecordState(String recordState)
          Sets the record state for this Action.
 
Methods inherited from class com.endeca.infront.cartridge.model.Action
getContentPath, getLabel, getSiteRootPath, setContentPath, setLabel, setSiteRootPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecordAction

public RecordAction()
Default constructor.


RecordAction

public RecordAction(String recordState)
Constructs a record action with the given record state.

Parameters:
recordState - a string representing the record state

RecordAction

public RecordAction(String recordState,
                    String label)
Constructs a record action with the given record state and label.

Parameters:
recordState - a string representing the record state
label - a label with the user-visible text

RecordAction

public RecordAction(String recordState,
                    String label,
                    String siteRootPath,
                    String contentPath)
Constructs a record action with the given record state, label, site root path and content path.

Parameters:
recordState - the string representing the record state
label - the label with the user-visible text
siteRootPath - the site root path
contentPath - the content path
Method Detail

getRecordState

public String getRecordState()
Returns:
The serialized RecordState that corresponds to this action. A RecordState is serialized by calling its RecordState#toString() method.

setRecordState

public void setRecordState(String recordState)
Sets the record state for this Action. Example: "/Canon/EF-50mm-f-1-2L-USM/_/A-932391", "A=123", R="123"

Parameters:
recordState - the string representing the record state
See Also:
getRecordState()


Copyright © 2012, Oracle and/or its affiliates. All rights reserved.