@Override public EncryptedDataType clone() { EncryptedDataType cloned = new EncryptedDataType(); cloned.setCipherData(getCipherData().clone()); cloned.setEncryptionMethod(getEncryptionMethod().clone()); cloned.setKeyInfo(getKeyInfo().clone()); return cloned; } }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((cipherData == null) ? 0 : cipherData.hashCode()); result = prime * result + ((encryptionMethod == null) ? 0 : encryptionMethod.hashCode()); result = prime * result + ((keyInfo == null) ? 0 : keyInfo.hashCode()); return result; }
private static void adopt(ItemDeltaType itemDelta, PrismContext prismContext) throws SchemaException { for (RawType value : itemDelta.getValue()) { if (value != null) { value.revive(prismContext); } } for (RawType value : itemDelta.getEstimatedOldValue()) { if (value != null) { value.revive(prismContext); } } }
private boolean deltaContains(ObjectDeltaType delta) { for (ItemDeltaType itemDelta: delta.getItemDelta()) { ItemPath deltaPath = itemDelta.getPath().getItemPath(); if (itemPath.equivalent(deltaPath)) { return true; } } return false; }
private PolyStringType toPolyStringType(String orig) { PolyStringType polyStringType = new PolyStringType(); polyStringType.setOrig(orig); return polyStringType; }
/** * Create an instance of {@link PolyStringType } * */ public PolyStringType createPolyStringType() { return new PolyStringType(); }
/** * Create an instance of {@link ProtectedStringType } * */ public ProtectedStringType createProtectedStringType() { return new ProtectedStringType(); }
/** * Create an instance of {@link ItemPathType } * */ public ItemPathType createItemPathType() { return new ItemPathType(); }
/** * Create an instance of {@link RawType } * */ public RawType createRawType() { return new RawType(); }
/** * Create an instance of {@link ItemDeltaType } * */ public ItemDeltaType createItemDeltaType() { return new ItemDeltaType(); }
/** * Create an instance of {@link EncryptionMethodType } * */ public EncryptionMethodType createEncryptionMethodType() { return new EncryptionMethodType(); }
/** * Create an instance of {@link HashedDataType } * */ public HashedDataType createHashedDataType() { return new HashedDataType(); }
/** * Create an instance of {@link ObjectReferenceType.Filter } * */ public ObjectReferenceType.Filter createObjectReferenceTypeFilter() { return new ObjectReferenceType.Filter(); }
/** * Create an instance of {@link ObjectReferenceType } * */ public ObjectReferenceType createObjectReferenceType() { return new ObjectReferenceType(); }
/** * Create an instance of {@link Extension } * */ public Extension createExtension() { return new Extension(); }
/** * Create an instance of {@link XmlAsStringType } * */ public XmlAsStringType createXmlAsStringType() { return new XmlAsStringType(); }
/** * Create an instance of {@link ObjectType } * */ public ObjectType createObjectType() { return new ObjectType(); }
private PolyStringType createPoly(String orig) { PolyStringType poly = new PolyStringType(); poly.setOrig(orig); return poly; }
/** * Create an instance of {@link PolyStringType } * */ public PolyStringType createPolyStringType() { return new PolyStringType(); }
/** * Create an instance of {@link ProtectedStringType } * */ public ProtectedStringType createProtectedStringType() { return new ProtectedStringType(); }