Add userId as a new field for SearchIndexableData
See bug: #15837747 Search - update for Enterprise support Change-Id: I1231f8870754aafa449a4c17350be70b524da230
This commit is contained in:
@@ -57,6 +57,12 @@ public abstract class SearchIndexableData {
|
||||
*/
|
||||
public String key;
|
||||
|
||||
/**
|
||||
* The UserID for the data (in a multi user context). This is application specific and -1 is the
|
||||
* default non initialized value.
|
||||
*/
|
||||
public int userId = -1;
|
||||
|
||||
/**
|
||||
* The class name associated with the data. Generally this is a Fragment class name for
|
||||
* referring where the data is coming from and for launching the associated Fragment for
|
||||
@@ -147,6 +153,9 @@ public abstract class SearchIndexableData {
|
||||
sb.append("key: ");
|
||||
sb.append(key);
|
||||
sb.append(", ");
|
||||
sb.append("userId: ");
|
||||
sb.append(userId);
|
||||
sb.append(", ");
|
||||
sb.append("className: ");
|
||||
sb.append(className);
|
||||
sb.append(", ");
|
||||
|
||||
Reference in New Issue
Block a user