/** * Returns the persistent search change type for the supplied integer constant. * * @param i to find change type for * * @return persistent search change type */ public static PersistentSearchChangeType valueOf(final int i) { for (PersistentSearchChangeType ct : PersistentSearchChangeType.values()) { if (ct.value() == i) { return ct; } } return null; } }
@Override public byte[] encode() { int types = 0; for (PersistentSearchChangeType type : getChangeTypes()) { types |= type.value(); } final ConstructedDEREncoder se = new ConstructedDEREncoder( UniversalDERTag.SEQ, new IntegerType(types), new BooleanType(getChangesOnly()), new BooleanType(getReturnEcs())); return se.encode(); } }
/** * Returns the persistent search change type for the supplied integer constant. * * @param i to find change type for * * @return persistent search change type */ public static PersistentSearchChangeType valueOf(final int i) { for (PersistentSearchChangeType ct : PersistentSearchChangeType.values()) { if (ct.value() == i) { return ct; } } return null; } }
@Override public byte[] encode() { int types = 0; for (PersistentSearchChangeType type : getChangeTypes()) { types |= type.value(); } final ConstructedDEREncoder se = new ConstructedDEREncoder( UniversalDERTag.SEQ, new IntegerType(types), new BooleanType(getChangesOnly()), new BooleanType(getReturnEcs())); return se.encode(); } }
/** * Returns the persistent search change type for the supplied integer constant. * * @param i to find change type for * * @return persistent search change type */ public static PersistentSearchChangeType valueOf(final int i) { for (PersistentSearchChangeType ct : PersistentSearchChangeType.values()) { if (ct.value() == i) { return ct; } } return null; } }
@Override public byte[] encode() { int types = 0; for (PersistentSearchChangeType type : getChangeTypes()) { types |= type.value(); } final ConstructedDEREncoder se = new ConstructedDEREncoder( UniversalDERTag.SEQ, new IntegerType(types), new BooleanType(getChangesOnly()), new BooleanType(getReturnEcs())); return se.encode(); } }
ctl = new PersistentSearchImpl(); for (PersistentSearchChangeType type : c.getChangeTypes()) { ((PersistentSearchImpl) ctl).enableNotification(ChangeType.getChangeType(type.value()));