org.kuali.rice.kew.api.action
Class ActionItem.Builder

java.lang.Object
  extended by org.kuali.rice.kew.api.action.ActionItem.Builder
All Implemented Interfaces:
Serializable, ModelBuilder, ActionItemContract
Enclosing class:
ActionItem

public static final class ActionItem.Builder
extends Object
implements Serializable, ModelBuilder, ActionItemContract

A builder which can be used to construct ActionItem instances. Enforces the constraints of the ActionItemContract.

See Also:
Serialized Form

Method Summary
 ActionItem build()
          Returns an instance of the object being built by this builder based on the current state of the builder.
static ActionItem.Builder create(ActionItemContract contract)
           
static ActionItem.Builder create(String documentId, String actionRequestCd, String actionRequestId, org.joda.time.DateTime dateTimeAssigned, String docLabel, String docHanderlURL, String docName, String responsibilityId, String principalId)
           
 Integer getActionItemIndex()
          Deprecated. 
 String getActionRequestCd()
           
 String getActionRequestId()
           
 String getActionToTake()
          Deprecated. 
 String getDateAssignedString()
          Deprecated. 
 org.joda.time.DateTime getDateTimeAssigned()
           
 DelegationType getDelegationType()
           
 String getDelegatorGroupId()
           
 String getDelegatorPrincipalId()
           
 String getDocHandlerURL()
           
 String getDocLabel()
           
 String getDocName()
           
 String getDocTitle()
           
 String getDocumentId()
           
 String getGroupId()
           
 String getId()
           
 String getPrincipalId()
           
 String getResponsibilityId()
           
 String getRoleName()
           
 void setActionItemIndex(Integer actionItemIndex)
          Deprecated. actionItemIndex is never used
 void setActionRequestCd(String actionRequestCd)
           
 void setActionRequestId(String actionRequestId)
           
 void setActionToTake(String actionToTake)
          Deprecated. actionToTake is never used
 void setDateAssignedString(String dateAssignedString)
          Deprecated. dateAssignedString is never used
 void setDateTimeAssigned(org.joda.time.DateTime dateTimeAssigned)
           
 void setDelegationType(DelegationType delegationType)
           
 void setDelegatorGroupId(String delegatorGroupId)
           
 void setDelegatorPrincipalId(String delegatorPrincipalId)
           
 void setDocHandlerURL(String docHandlerURL)
           
 void setDocLabel(String docLabel)
           
 void setDocName(String docName)
           
 void setDocTitle(String docTitle)
           
 void setDocumentId(String documentId)
           
 void setGroupId(String groupId)
           
 void setId(String id)
           
 void setPrincipalId(String principalId)
           
 void setResponsibilityId(String responsibilityId)
           
 void setRoleName(String roleName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static ActionItem.Builder create(String documentId,
                                        String actionRequestCd,
                                        String actionRequestId,
                                        org.joda.time.DateTime dateTimeAssigned,
                                        String docLabel,
                                        String docHanderlURL,
                                        String docName,
                                        String responsibilityId,
                                        String principalId)

create

public static ActionItem.Builder create(ActionItemContract contract)

build

public ActionItem build()
Description copied from interface: ModelBuilder
Returns an instance of the object being built by this builder based on the current state of the builder. It should be possible to invoke this method more than once on the same builder. It should never return null;

Specified by:
build in interface ModelBuilder
Returns:
an instance of the object being built by this builder, should never return null

getId

public String getId()
Specified by:
getId in interface ActionItemContract

getDateTimeAssigned

public org.joda.time.DateTime getDateTimeAssigned()
Specified by:
getDateTimeAssigned in interface ActionItemContract

getActionRequestCd

public String getActionRequestCd()
Specified by:
getActionRequestCd in interface ActionItemContract

getActionRequestId

public String getActionRequestId()
Specified by:
getActionRequestId in interface ActionItemContract

getDocumentId

public String getDocumentId()
Specified by:
getDocumentId in interface ActionItemContract

getDocTitle

public String getDocTitle()
Specified by:
getDocTitle in interface ActionItemContract

getDocLabel

public String getDocLabel()
Specified by:
getDocLabel in interface ActionItemContract

getDocHandlerURL

public String getDocHandlerURL()
Specified by:
getDocHandlerURL in interface ActionItemContract

getDocName

public String getDocName()
Specified by:
getDocName in interface ActionItemContract

getResponsibilityId

public String getResponsibilityId()
Specified by:
getResponsibilityId in interface ActionItemContract

getRoleName

public String getRoleName()
Specified by:
getRoleName in interface ActionItemContract

getDateAssignedString

@Deprecated
public String getDateAssignedString()
Deprecated. 

Description copied from interface: ActionItemContract
This method should never be called, has been deprecated, and will always return null. It was mistakenly added to this interface when it was created and has been left here for compatibility purposes.

Specified by:
getDateAssignedString in interface ActionItemContract
Returns:
always returns null

getActionToTake

@Deprecated
public String getActionToTake()
Deprecated. 

Description copied from interface: ActionItemContract
This method should never be called, has been deprecated, and will always return null. It was mistakenly added to this interface when it was created and has been left here for compatibility purposes.

Specified by:
getActionToTake in interface ActionItemContract
Returns:
always returns null

getActionItemIndex

@Deprecated
public Integer getActionItemIndex()
Deprecated. 

Description copied from interface: ActionItemContract
This method should never be called, has been deprecated, and will always return null. It was mistakenly added to this interface when it was created and has been left here for compatibility purposes.

Specified by:
getActionItemIndex in interface ActionItemContract
Returns:
always returns null

getDelegationType

public DelegationType getDelegationType()
Specified by:
getDelegationType in interface ActionItemContract

getGroupId

public String getGroupId()
Specified by:
getGroupId in interface ActionItemContract

getPrincipalId

public String getPrincipalId()
Specified by:
getPrincipalId in interface ActionItemContract

getDelegatorGroupId

public String getDelegatorGroupId()
Specified by:
getDelegatorGroupId in interface ActionItemContract

getDelegatorPrincipalId

public String getDelegatorPrincipalId()
Specified by:
getDelegatorPrincipalId in interface ActionItemContract

setId

public void setId(String id)

setDateTimeAssigned

public void setDateTimeAssigned(org.joda.time.DateTime dateTimeAssigned)

setActionRequestCd

public void setActionRequestCd(String actionRequestCd)

setActionRequestId

public void setActionRequestId(String actionRequestId)

setDocumentId

public void setDocumentId(String documentId)

setDocTitle

public void setDocTitle(String docTitle)

setDocLabel

public void setDocLabel(String docLabel)

setDocHandlerURL

public void setDocHandlerURL(String docHandlerURL)

setDocName

public void setDocName(String docName)

setResponsibilityId

public void setResponsibilityId(String responsibilityId)

setRoleName

public void setRoleName(String roleName)

setDateAssignedString

@Deprecated
public void setDateAssignedString(String dateAssignedString)
Deprecated. dateAssignedString is never used

This method has been deprecated and should not be called. If it is, then it will have no effect. It was mistakenly added to this interface when it was created and has been left here for compatibility purposes.


setActionToTake

@Deprecated
public void setActionToTake(String actionToTake)
Deprecated. actionToTake is never used

This method has been deprecated and should not be called. If it is, then it will have no effect. It was mistakenly added to this interface when it was created and has been left here for compatibility purposes.


setDelegationType

public void setDelegationType(DelegationType delegationType)

setActionItemIndex

@Deprecated
public void setActionItemIndex(Integer actionItemIndex)
Deprecated. actionItemIndex is never used

This method has been deprecated and should not be called. If it is, then it will have no effect. It was mistakenly added to this interface when it was created and has been left here for compatibility purposes.


setGroupId

public void setGroupId(String groupId)

setPrincipalId

public void setPrincipalId(String principalId)

setDelegatorGroupId

public void setDelegatorGroupId(String delegatorGroupId)

setDelegatorPrincipalId

public void setDelegatorPrincipalId(String delegatorPrincipalId)


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.