public class ModelClientUtil extends Object
Modifier and Type | Field and Description |
---|---|
static QName |
COMMON_ASSIGNMENT |
static QName |
COMMON_GIVEN_NAME |
static QName |
COMMON_PATH |
static QName |
COMMON_VALUE |
static String |
NS_COMMON |
static String |
NS_ICFS |
static String |
NS_RI |
static String |
NS_TYPES |
static QName |
TYPES_CLEAR_VALUE |
Constructor and Description |
---|
ModelClientUtil() |
Modifier and Type | Method and Description |
---|---|
static <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType,T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
createAssignDeltaList(Class<O> focusType,
String focusOid,
Class<T> targetType,
String targetOid)
Deprecated.
|
static <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
createConstructionAssignDelta(Class<O> focusType,
String focusOid,
String resourceOid) |
static <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
createConstructionAssignDelta(Class<O> focusType,
String focusOid,
String resourceOid,
com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType kind) |
static <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
createConstructionAssignDelta(Class<O> focusType,
String focusOid,
String resourceOid,
com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType kind,
String intent) |
static com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentType |
createConstructionAssignment(String resourceOid) |
static com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentType |
createConstructionAssignment(String resourceOid,
com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType kind) |
static com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentType |
createConstructionAssignment(String resourceOid,
com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType kind,
String intent) |
static <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
createConstructionAssignmentDelta(Class<O> focusType,
String focusOid,
ModificationTypeType modType,
String resourceOid,
com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType kind,
String intent) |
static com.evolveum.midpoint.xml.ns._public.common.api_types_3.ObjectDeltaListType |
createDeltaList(ObjectDeltaType... deltas) |
static ItemPathType |
createItemPathType(String stringPath) |
static <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
createModificationDeltaList(Class<O> type,
String oid,
String path,
ModificationTypeType modType,
Object... values) |
static com.evolveum.midpoint.xml.ns._public.common.common_3.CredentialsType |
createPasswordCredentials(String password) |
static com.evolveum.midpoint.xml.ns._public.common.common_3.PasswordType |
createPasswordType(String password) |
static Element |
createPathElement(String stringPath,
Document doc) |
static PolyStringType |
createPolyStringType(String string) |
static PolyStringType |
createPolyStringType(String string,
Document doc) |
static ProtectedStringType |
createProtectedString(String clearValue) |
static com.evolveum.midpoint.xml.ns._public.common.common_3.ModelExecuteOptionsType |
createRawExecuteOption() |
static com.evolveum.midpoint.xml.ns._public.common.api_types_3.GetOperationOptionsType |
createRawGetOption() |
static <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
createRoleAssignDelta(Class<O> focusType,
String focusOid,
String... roleOids) |
static com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentType |
createRoleAssignment(String roleOid) |
static <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
createRoleAssignmentDelta(Class<O> focusType,
String focusOid,
ModificationTypeType modType,
String... roleOids) |
static <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
createRoleUnassignDelta(Class<O> focusType,
String focusOid,
String... roleOids) |
static com.evolveum.midpoint.xml.ns._public.common.api_types_3.SelectorQualifiedGetOptionsType |
createRootGetOptions(com.evolveum.midpoint.xml.ns._public.common.api_types_3.GetOperationOptionsType opt) |
static Element |
createTextElement(QName qname,
String value,
Document doc) |
static <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType,T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
createUnassignDeltaList(Class<O> focusType,
String focusOid,
Class<T> targetType,
String targetOid)
Deprecated.
|
static com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectDeltaOperationType |
findInDeltaOperationList(com.evolveum.midpoint.xml.ns._public.common.api_types_3.ObjectDeltaOperationListType operationListType,
ObjectDeltaType originalDelta) |
static Document |
getDocumnent() |
static QName |
getElementName(Class<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> type) |
static Element |
getFirstChildElement(Node parent) |
static String |
getOidFromDeltaOperationList(com.evolveum.midpoint.xml.ns._public.common.api_types_3.ObjectDeltaOperationListType operationListType,
ObjectDeltaType originalDelta)
Retrieves OID created by model Web Service from the returned list of ObjectDeltaOperations.
|
static String |
getOrig(PolyStringType polyStringType) |
static QName |
getTypeQName(Class<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> type) |
static String |
getTypeUri(Class<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> type) |
static JAXBContext |
instantiateJaxbContext() |
static <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
marshallToSting(O object) |
static <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
marshallToSting(O object,
boolean formatted) |
static <T> String |
marshallToSting(QName elementName,
T object,
boolean formatted) |
static Element |
parseElement(String stringXml) |
static SearchFilterType |
parseSearchFilterType(String filterClauseAsXml) |
static <T> JAXBElement<T> |
toJaxbElement(QName name,
T value) |
static <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
toString(O obj) |
static String |
toString(PolyStringType poly) |
static <O> O |
unmarshallFile(File file) |
static <O> O |
unmarshallResource(String path) |
public static final String NS_COMMON
public static final String NS_TYPES
public static final String NS_RI
public static final String NS_ICFS
public static final QName COMMON_PATH
public static final QName COMMON_VALUE
public static final QName COMMON_GIVEN_NAME
public static final QName COMMON_ASSIGNMENT
public static final QName TYPES_CLEAR_VALUE
public static JAXBContext instantiateJaxbContext() throws JAXBException
JAXBException
public static ItemPathType createItemPathType(String stringPath)
public static SearchFilterType parseSearchFilterType(String filterClauseAsXml) throws IOException, SAXException, JAXBException
IOException
SAXException
JAXBException
public static PolyStringType createPolyStringType(String string, Document doc)
public static PolyStringType createPolyStringType(String string)
public static String getOrig(PolyStringType polyStringType)
public static com.evolveum.midpoint.xml.ns._public.common.common_3.CredentialsType createPasswordCredentials(String password)
public static com.evolveum.midpoint.xml.ns._public.common.common_3.PasswordType createPasswordType(String password)
public static ProtectedStringType createProtectedString(String clearValue)
public static <T> JAXBElement<T> toJaxbElement(QName name, T value)
public static Document getDocumnent()
public static String getTypeUri(Class<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> type)
public static QName getTypeQName(Class<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> type)
public static QName getElementName(Class<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> type)
public static Element parseElement(String stringXml) throws SAXException, IOException
SAXException
IOException
public static String getOidFromDeltaOperationList(com.evolveum.midpoint.xml.ns._public.common.api_types_3.ObjectDeltaOperationListType operationListType, ObjectDeltaType originalDelta)
operationListType
- result of the model web service executeChanges calloriginalDelta
- original request used to find corresponding ObjectDeltaOperationType instance. Must be of ADD type.public static com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectDeltaOperationType findInDeltaOperationList(com.evolveum.midpoint.xml.ns._public.common.api_types_3.ObjectDeltaOperationListType operationListType, ObjectDeltaType originalDelta)
public static <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> com.evolveum.midpoint.xml.ns._public.common.api_types_3.ObjectDeltaListType createModificationDeltaList(Class<O> type, String oid, String path, ModificationTypeType modType, Object... values)
@Deprecated public static <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType,T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> com.evolveum.midpoint.xml.ns._public.common.api_types_3.ObjectDeltaListType createAssignDeltaList(Class<O> focusType, String focusOid, Class<T> targetType, String targetOid)
@Deprecated public static <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType,T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> com.evolveum.midpoint.xml.ns._public.common.api_types_3.ObjectDeltaListType createUnassignDeltaList(Class<O> focusType, String focusOid, Class<T> targetType, String targetOid)
public static <O> O unmarshallResource(String path) throws JAXBException, FileNotFoundException
JAXBException
FileNotFoundException
public static <O> O unmarshallFile(File file) throws JAXBException, FileNotFoundException
JAXBException
FileNotFoundException
public static <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> String marshallToSting(O object) throws JAXBException
JAXBException
public static <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> String marshallToSting(O object, boolean formatted) throws JAXBException
JAXBException
public static <T> String marshallToSting(QName elementName, T object, boolean formatted) throws JAXBException
JAXBException
public static <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> ObjectDeltaType createRoleAssignDelta(Class<O> focusType, String focusOid, String... roleOids)
public static <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> ObjectDeltaType createRoleUnassignDelta(Class<O> focusType, String focusOid, String... roleOids)
public static <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> ObjectDeltaType createRoleAssignmentDelta(Class<O> focusType, String focusOid, ModificationTypeType modType, String... roleOids)
public static com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentType createRoleAssignment(String roleOid)
public static <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> ObjectDeltaType createConstructionAssignDelta(Class<O> focusType, String focusOid, String resourceOid)
public static <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> ObjectDeltaType createConstructionAssignDelta(Class<O> focusType, String focusOid, String resourceOid, com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType kind)
public static <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> ObjectDeltaType createConstructionAssignDelta(Class<O> focusType, String focusOid, String resourceOid, com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType kind, String intent)
public static <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> ObjectDeltaType createConstructionAssignmentDelta(Class<O> focusType, String focusOid, ModificationTypeType modType, String resourceOid, com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType kind, String intent)
public static com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentType createConstructionAssignment(String resourceOid)
public static com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentType createConstructionAssignment(String resourceOid, com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType kind)
public static com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentType createConstructionAssignment(String resourceOid, com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType kind, String intent)
public static com.evolveum.midpoint.xml.ns._public.common.api_types_3.ObjectDeltaListType createDeltaList(ObjectDeltaType... deltas)
public static com.evolveum.midpoint.xml.ns._public.common.api_types_3.SelectorQualifiedGetOptionsType createRootGetOptions(com.evolveum.midpoint.xml.ns._public.common.api_types_3.GetOperationOptionsType opt)
public static com.evolveum.midpoint.xml.ns._public.common.api_types_3.GetOperationOptionsType createRawGetOption()
public static com.evolveum.midpoint.xml.ns._public.common.common_3.ModelExecuteOptionsType createRawExecuteOption()
public static <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> String toString(O obj)
public static String toString(PolyStringType poly)
Copyright © 2016 evolveum. All rights reserved.