|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.ixb.actor.actions.IxbActionsHelper
Field Summary | |
static String |
CHECKOUT
|
static String |
CREATE_NEW_OBJECT
|
static boolean |
DEBUG
|
static String |
DEFAULT_IMPORT_POLICY_FILE
|
static String |
IGNORE
|
static String |
IMPORT_NONVERSIONED_ATTRIBUTES
|
static String |
IMPORT_POLICY_FILE_KEY
|
private static String |
importPolicyFilePath
|
static String |
NEW_ITERATION
|
static String |
NEW_VERSION
|
static String |
PICK_EXISTING_OBJECT
|
static String |
RB
|
static String |
RESTORE
|
static String |
SUBSTITUTE_OBJECT
|
static String |
UNLOCK_AND_NEW_ITER
|
static String |
UPDATE_IN_PLACE
|
static String |
XML_ACTION_INFO_TAG
|
static String |
XML_ACTION_KEY
|
static String |
XML_ACTION_PARAMS_KEY
|
static String |
XML_ACTION_PARAMS_TAG
|
static String |
XML_ACTION_TAG
|
static String |
XML_EXISTING_OBJECT_ID_TAG
|
Constructor Summary | |
IxbActionsHelper()
|
Method Summary | |
static void |
checkApplicabilityOfAction(String objId,
String action)
Checks if the given action can be applied to the given object. |
static void |
checkIfObjectCanBeCheckedOut(Object obj)
To be used by actors which need to check out object, currently CHECKOUT |
static void |
checkIfObjectCanBeLocked(Object obj)
|
static void |
checkIfObjectCanBeUnlocked(Object obj)
To be used by actors which will need to unlock the object in the system, currently UNLOCK_AND_NEW_ITER |
static void |
checkIfObjectIsCheckedOut(Object obj)
To be used by actors which work with checked out object, currently UPDATE_IN_PLACE |
static String |
getActorDisplayName(String actorName)
|
private static String |
getDefaultActorDisplayName(Locale locale)
|
static String |
getDefaultImportAction(IxbDocument fileXml)
|
static String |
getDefaultImportAction(IxbDocument fileXml,
StreamSource importPolicySource)
Gets default Import action from Import policy. |
private static void |
PP(String s)
|
private static void |
printStackTrace(Exception e)
|
static IxbDocument |
writeActionAndParametersToFileXML(IxbDocument fileXml,
StreamSource importPolicySource)
Helper method to be used by standard ixb service. |
static IxbDocument |
writeActionParametersToFileXML(IxbDocument fileXml,
String paramString)
Some actions (e.g. |
static void |
writeActionToFileXML(IxbElement rootElem,
String action,
boolean override)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String IMPORT_POLICY_FILE_KEY
public static final String DEFAULT_IMPORT_POLICY_FILE
public static final String RB
public static boolean DEBUG
public static final String XML_ACTION_INFO_TAG
public static final String XML_ACTION_TAG
public static final String XML_ACTION_KEY
public static final String XML_ACTION_PARAMS_TAG
public static final String XML_ACTION_PARAMS_KEY
public static final String XML_EXISTING_OBJECT_ID_TAG
public static final String PICK_EXISTING_OBJECT
public static final String IGNORE
public static final String UPDATE_IN_PLACE
public static final String NEW_ITERATION
public static final String NEW_VERSION
public static final String CHECKOUT
public static final String UNLOCK_AND_NEW_ITER
public static final String CREATE_NEW_OBJECT
public static final String IMPORT_NONVERSIONED_ATTRIBUTES
public static final String SUBSTITUTE_OBJECT
public static final String RESTORE
private static String importPolicyFilePath
Constructor Detail |
public IxbActionsHelper()
Method Detail |
public static String getDefaultImportAction(IxbDocument fileXml) throws WTException
WTException
public static String getDefaultImportAction(IxbDocument fileXml, StreamSource importPolicySource) throws WTException
fileXml
- IxbDocument representing the object which should be importedimportPolicySource
- StreamSource representing XSL file with import policy. Can be null, in which
case customized or default import policy file from the registry will be used.
WTException
public static void writeActionToFileXML(IxbElement rootElem, String action, boolean override) throws WTException
WTException
public static IxbDocument writeActionAndParametersToFileXML(IxbDocument fileXml, StreamSource importPolicySource) throws WTException
importPolicySource
- StreamSource representing XSL file with import policy. Can be null, in which
case customized or default import policy file from the registry will be used.
WTException
public static IxbDocument writeActionParametersToFileXML(IxbDocument fileXml, String paramString) throws WTException
fileXml
- IxbDocumentparamString
- name/value pairs for action parameters in the following format:
"param1=value1,param2=value2" etc
WTException
public static void checkApplicabilityOfAction(String objId, String action) throws WTException
objId
- Ufid of the matching object (hopefully, the same one to which the action will be really applied!!!)action
- action name
IxbUnapplicableActionException
- if the action is not applicable
WTException
public static void checkIfObjectCanBeUnlocked(Object obj) throws WTException
WTException
public static void checkIfObjectIsCheckedOut(Object obj) throws WTException
WTException
public static void checkIfObjectCanBeCheckedOut(Object obj) throws IxbInapplicableActionException
IxbInapplicableActionException
public static void checkIfObjectCanBeLocked(Object obj) throws IxbInapplicableActionException
IxbInapplicableActionException
public static String getActorDisplayName(String actorName)
private static String getDefaultActorDisplayName(Locale locale)
private static void printStackTrace(Exception e)
private static void PP(String s)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |