Use this. Prefix in Sandbox
Issue gh-745
This commit is contained in:
@@ -45,15 +45,15 @@ public class VirtualListViewControlAggregateDirContextProcessor extends Aggregat
|
||||
public VirtualListViewControlAggregateDirContextProcessor(
|
||||
SortControlDirContextProcessor sortControlDirContextProcessor,
|
||||
VirtualListViewControlDirContextProcessor virtualListViewControlDirContextProcessor) {
|
||||
_sortControlDirContextProcessor = sortControlDirContextProcessor;
|
||||
_virtualListViewControlDirContextProcessor = virtualListViewControlDirContextProcessor;
|
||||
this._sortControlDirContextProcessor = sortControlDirContextProcessor;
|
||||
this._virtualListViewControlDirContextProcessor = virtualListViewControlDirContextProcessor;
|
||||
|
||||
addDirContextProcessor(sortControlDirContextProcessor);
|
||||
addDirContextProcessor(virtualListViewControlDirContextProcessor);
|
||||
}
|
||||
|
||||
public VirtualListViewResultsCookie getCookie() {
|
||||
return _virtualListViewControlDirContextProcessor.getCookie();
|
||||
return this._virtualListViewControlDirContextProcessor.getCookie();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -111,23 +111,23 @@ public class VirtualListViewControlDirContextProcessor
|
||||
}
|
||||
|
||||
public VirtualListViewResultsCookie getCookie() {
|
||||
return cookie;
|
||||
return this.cookie;
|
||||
}
|
||||
|
||||
public int getPageSize() {
|
||||
return pageSize;
|
||||
return this.pageSize;
|
||||
}
|
||||
|
||||
public int getListSize() {
|
||||
return listSize;
|
||||
return this.listSize;
|
||||
}
|
||||
|
||||
public NamingException getException() {
|
||||
return exception;
|
||||
return this.exception;
|
||||
}
|
||||
|
||||
public int getTargetOffset() {
|
||||
return targetOffset;
|
||||
return this.targetOffset;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -140,7 +140,7 @@ public class VirtualListViewControlDirContextProcessor
|
||||
}
|
||||
|
||||
public boolean isOffsetPercentage() {
|
||||
return offsetPercentage;
|
||||
return this.offsetPercentage;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -150,20 +150,22 @@ public class VirtualListViewControlDirContextProcessor
|
||||
public Control createRequestControl() {
|
||||
Control control;
|
||||
|
||||
if (offsetPercentage) {
|
||||
control = super.createRequestControl(new Class[] { int.class, int.class, boolean.class }, new Object[] {
|
||||
Integer.valueOf(targetOffset), Integer.valueOf(pageSize), Boolean.valueOf(CRITICAL_CONTROL) });
|
||||
if (this.offsetPercentage) {
|
||||
control = super.createRequestControl(new Class[] { int.class, int.class, boolean.class },
|
||||
new Object[] { Integer.valueOf(this.targetOffset), Integer.valueOf(this.pageSize),
|
||||
Boolean.valueOf(CRITICAL_CONTROL) });
|
||||
}
|
||||
else {
|
||||
control = super.createRequestControl(
|
||||
new Class[] { int.class, int.class, int.class, int.class, boolean.class },
|
||||
new Object[] { Integer.valueOf(targetOffset), Integer.valueOf(listSize), Integer.valueOf(0),
|
||||
Integer.valueOf(pageSize - 1), Boolean.valueOf(CRITICAL_CONTROL) });
|
||||
new Object[] { Integer.valueOf(this.targetOffset), Integer.valueOf(this.listSize),
|
||||
Integer.valueOf(0), Integer.valueOf(this.pageSize - 1),
|
||||
Boolean.valueOf(CRITICAL_CONTROL) });
|
||||
}
|
||||
|
||||
if (cookie != null) {
|
||||
if (this.cookie != null) {
|
||||
invokeMethod("setContextID", requestControlClass, control, new Class[] { byte[].class },
|
||||
new Object[] { cookie.getCookie() });
|
||||
new Object[] { this.cookie.getCookie() });
|
||||
}
|
||||
|
||||
return control;
|
||||
@@ -177,8 +179,8 @@ public class VirtualListViewControlDirContextProcessor
|
||||
|
||||
this.cookie = new VirtualListViewResultsCookie(result, targetOffset.intValue(), listSize.intValue());
|
||||
|
||||
if (exception != null) {
|
||||
throw LdapUtils.convertLdapException(exception);
|
||||
if (this.exception != null) {
|
||||
throw LdapUtils.convertLdapException(this.exception);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -47,15 +47,15 @@ public class VirtualListViewResultsCookie {
|
||||
* @return the cookie.
|
||||
*/
|
||||
public byte[] getCookie() {
|
||||
return cookie;
|
||||
return this.cookie;
|
||||
}
|
||||
|
||||
public int getContentCount() {
|
||||
return contentCount;
|
||||
return this.contentCount;
|
||||
}
|
||||
|
||||
public int getTargetPosition() {
|
||||
return targetPosition;
|
||||
return this.targetPosition;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user