SAP NetWeaver '04

com.sapportals.wcm.repository.service.statemanagement
Interface IStep

[contained in: com.sap.km.cm.repository.service.base.par - km.shared.repository.service.statemanagement_api.jar]
public interface IStep

The IStep represents a step in the approval workflow. The workflow can consist of several steps, and each step can have several approvers. It is used in the user interface to define and display the workflow for a resource.

See Also:
IStepList

Method Summary
 void addApprover(IApprover impApprover)
          Adds one approver to the step.
 boolean appendApproverStringToStep(java.lang.String impApproverString)
          Adds one approver to the step by using a string from the list which is returned by getApproverStringsOfStep() The list which is returned by getApproverStringsOfStep() contains strings, each of which represents a single approver entry assigned to the step.
 boolean containsApprover(com.sapportals.portal.security.usermanagement.IUser impUser)
          Checks whether a IUser is contained in the approver list of the step.
 java.util.List deleteSelectedApprovers()
          Removes the selected approvers.
 java.util.List getApproverOfStep()
          Returns a list of approvers for one step.
 java.util.List getApproverStringsOfStep()
          Returns a list of strings representing the approvers of the step.
 java.lang.String getDisplayName()
          Returns a description of the Step .
 boolean isEmpty()
          Checks whether approvers are assigned to the step.
 boolean isSelected()
          Checks whether the step has been selected.
 void setDisplayName(java.lang.String impName)
          Sets a description for the Step .
 void setSelected(boolean impSelected)
          Sets the selected flag.
 

Method Detail

addApprover

public void addApprover(IApprover impApprover)
Adds one approver to the step. The impApprover is added to the current step. Duplicate entries are prevented, which means that the approver is only added, if there is no other IApprover that equals the imApprover already assigend to the step.
Parameters:
impApprover - the approver to be added to the list

isSelected

public boolean isSelected()
Checks whether the step has been selected. A step can be selected in the use interface.
Returns:
true if step is selected

isEmpty

public boolean isEmpty()
Checks whether approvers are assigned to the step. A step is only meaningful if approvers are assigned to it. As a temporary measure, a step can be saved without any approvers being assigned, but it has to be removed from the workflow before the workflow can be used. This method is used to check if the step has to be removed from a IStepList before the steplist can be used.
Returns:
true if no approvers are assigned to the step

setSelected

public void setSelected(boolean impSelected)
Sets the selected flag. A step can be selected in the user interface.
Parameters:
impSelected - Boolean flag to select or deselect the step

getDisplayName

public java.lang.String getDisplayName()
Returns a description of the Step . A step can have a meaningful name to be displayed in the user interface.
Returns:
the name of the step to use in the UI

setDisplayName

public void setDisplayName(java.lang.String impName)
Sets a description for the Step . A step can have a meaningful name to be displayed in the user interface.
Parameters:
impName - display name of the step

getApproverOfStep

public java.util.List getApproverOfStep()
Returns a list of approvers for one step. A step can have a list of approvers assigned to it. The List returned contains only IApprover objects.
Returns:
list with IApprover objects
See Also:
IApprover

getApproverStringsOfStep

public java.util.List getApproverStringsOfStep()
Returns a list of strings representing the approvers of the step. This method is used to serialize the current status of the IStep into a list of string values. The IStep can be deserialized using the appendApproverStringToStep for each element contained in the List returned by this method.
Returns:
a list of IApprovers
See Also:
IApprover

appendApproverStringToStep

public boolean appendApproverStringToStep(java.lang.String impApproverString)
                                   throws WcmException
Adds one approver to the step by using a string from the list which is returned by getApproverStringsOfStep() The list which is returned by getApproverStringsOfStep() contains strings, each of which represents a single approver entry assigned to the step. The name of the step is also encoded in each string. This method checks if the name of the step in the string matches the name of the current step, and returns false if it does not match.
Parameters:
impApproverString - string for a single approver within the step
Returns:
true if append was successful, false, if approver does not belong to the current step
Throws:
WcmException - exception raised in failure situation

deleteSelectedApprovers

public java.util.List deleteSelectedApprovers()
Removes the selected approvers. Each approver assigned to the step can be selected in the step. This method is used by the UI to remove the selected approvers from the step. A list with all IApprovers that are removed is returned.
Returns:
list of all deleted IApprovers
Throws:
- WcmException

containsApprover

public boolean containsApprover(com.sapportals.portal.security.usermanagement.IUser impUser)
Checks whether a IUser is contained in the approver list of the step. An approver can be a single user, or a group or role. This method checks all approvers assigned to this step. If the approver is a group or role, the method checks if the user is contained in this group or role.
Parameters:
impUser - user that is checked
Returns:
true if the user is contained in the step
See Also:
IApprover

SAP NetWeaver '04

Copyright © 2004 by SAP AG. All Rights Reserved.
SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.