/** * Create an instance of {@link PagedSearchCapabilityType } * */ public PagedSearchCapabilityType createPagedSearchCapabilityType() { return new PagedSearchCapabilityType(); }
/** * Creates a new {@code PagedSearchCapabilityType} instance by deeply copying a given {@code PagedSearchCapabilityType} instance. * * * @param o * The instance to copy. * @throws NullPointerException * if {@code o} is {@code null}. */ public PagedSearchCapabilityType(final PagedSearchCapabilityType o) { // CC-XJC Version 2.0 Build 2011-09-16T18:27:24+0000 super(o); if (o == null) { throw new NullPointerException("Cannot create a copy of 'PagedSearchCapabilityType' from 'null'."); } // CBuiltinLeafInfo: javax.xml.namespace.QName this.defaultSortField = ((o.defaultSortField == null)?null:o.getDefaultSortField()); // CEnumLeafInfo: com.evolveum.prism.xml.ns._public.query_3.OrderDirectionType this.defaultSortDirection = ((o.defaultSortDirection == null)?null:o.getDefaultSortDirection()); }
public boolean equals(Object object) { final EqualsStrategy strategy = DomAwareEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); }
public PagedSearchCapabilityType defaultSortField(QName value) { setDefaultSortField(value); return this; }
public int hashCode() { final HashCodeStrategy strategy = DomAwareHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); }
public PagedSearchCapabilityType defaultSortDirection(OrderDirectionType value) { setDefaultSortDirection(value); return this; }
/** * Creates and returns a deep copy of this object. * * * @return * A deep copy of this object. */ @Override public PagedSearchCapabilityType clone() { { // CC-XJC Version 2.0 Build 2011-09-16T18:27:24+0000 final PagedSearchCapabilityType clone = ((PagedSearchCapabilityType) super.clone()); // CBuiltinLeafInfo: javax.xml.namespace.QName clone.defaultSortField = ((this.defaultSortField == null)?null:this.getDefaultSortField()); // CEnumLeafInfo: com.evolveum.prism.xml.ns._public.query_3.OrderDirectionType clone.defaultSortDirection = ((this.defaultSortDirection == null)?null:this.getDefaultSortDirection()); return clone; } }
/** * Create an instance of {@link PagedSearchCapabilityType } * */ public PagedSearchCapabilityType createPagedSearchCapabilityType() { return new PagedSearchCapabilityType(); }
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = super.hashCode(locator, strategy); { QName theDefaultSortField; theDefaultSortField = this.getDefaultSortField(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "defaultSortField", theDefaultSortField), currentHashCode, theDefaultSortField); } { OrderDirectionType theDefaultSortDirection; theDefaultSortDirection = this.getDefaultSortDirection(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "defaultSortDirection", theDefaultSortDirection), currentHashCode, theDefaultSortDirection); } return currentHashCode; }
/** * Create an instance of {@link PagedSearchCapabilityType } * */ public PagedSearchCapabilityType createPagedSearchCapabilityType() { return new PagedSearchCapabilityType(); }
lhsDefaultSortField = this.getDefaultSortField(); QName rhsDefaultSortField; rhsDefaultSortField = that.getDefaultSortField(); if (!strategy.equals(LocatorUtils.property(thisLocator, "defaultSortField", lhsDefaultSortField), LocatorUtils.property(thatLocator, "defaultSortField", rhsDefaultSortField), lhsDefaultSortField, rhsDefaultSortField)) { return false; lhsDefaultSortDirection = this.getDefaultSortDirection(); OrderDirectionType rhsDefaultSortDirection; rhsDefaultSortDirection = that.getDefaultSortDirection(); if (!strategy.equals(LocatorUtils.property(thisLocator, "defaultSortDirection", lhsDefaultSortDirection), LocatorUtils.property(thatLocator, "defaultSortDirection", rhsDefaultSortDirection), lhsDefaultSortDirection, rhsDefaultSortDirection)) { return false;
PagedSearchCapabilityType capPage = new PagedSearchCapabilityType(); capabilities.add(CAPABILITY_OBJECT_FACTORY.createPagedSearch(capPage));
optionsBuilder.setPagedResultsOffset(1); optionsBuilder.setPageSize(1); if (pagedSearchCapabilityType.getDefaultSortField() != null) { String orderByIcfName = connIdNameMapper.convertAttributeNameToConnId(pagedSearchCapabilityType.getDefaultSortField(), objectClassDefinition, "(default sorting field)"); boolean isAscending = pagedSearchCapabilityType.getDefaultSortDirection() != OrderDirectionType.DESCENDING; optionsBuilder.setSortKeys(new SortKey(orderByIcfName, isAscending));
desc = "(explicitly specified orderBy attribute)"; } else { orderByAttributeName = pagedSearchCapabilityType.getDefaultSortField(); isAscending = pagedSearchCapabilityType.getDefaultSortDirection() != OrderDirectionType.DESCENDING; desc = "(default orderBy attribute from capability definition)";