@Internal public class SecurityIndexingUtils extends Object
indexPermissions(Document, Issue, String, String)
.Constructor and Description |
---|
SecurityIndexingUtils() |
Modifier and Type | Method and Description |
---|---|
static org.apache.lucene.util.BytesRef |
generateIssueLevelPermissionContents(Long issueSecurityLevel)
Generate query string that corresponds to a issue security level permission that is satisfied by the issue security level.
|
static org.apache.lucene.util.BytesRef |
generateIssueLevelPermissionContents(Long issueSecurityLevel,
Long projectId)
Generate query string that corresponds to a issue security level permission that is satisfied by the issue security level in the project.
|
static org.apache.lucene.util.BytesRef |
generateIssueLevelPermissionContents(Long issueSecurityLevel,
String fieldName,
String fieldValue)
Generate query string that corresponds to a issue security level permission that is satisfied by a concrete value of a concrete field.
|
static org.apache.lucene.util.BytesRef |
generateProjectPermissionFieldContents(Long projectId)
Generate query string that corresponds to a project permission that is satisfied by the project.
|
static org.apache.lucene.util.BytesRef |
generateProjectPermissionFieldContents(Long projectId,
String fieldName,
String fieldValue)
Generate query string that corresponds to a project permission that is satisfied by a concrete value of a concrete field.
|
static void |
indexPermissions(org.apache.lucene.document.Document doc,
Issue issue)
Index top level permissions - ones that depend only on the project and issue security level and not
on a specific field value.
|
static void |
indexPermissions(org.apache.lucene.document.Document doc,
Issue issue,
String fieldName,
String fieldValue)
Index field level permissions - ones that depend on specific field value.
|
public static void indexPermissions(org.apache.lucene.document.Document doc, Issue issue)
doc
- Document to which the indexed field will be addedissue
- Issue that is indexed in the documentpublic static void indexPermissions(org.apache.lucene.document.Document doc, Issue issue, String fieldName, String fieldValue)
doc
- Document to which the indexed field will be addedissue
- Issue that is indexed in the documentfieldName
- The name of the field that is being indexedfieldValue
- The value of the field that is being indexedpublic static org.apache.lucene.util.BytesRef generateProjectPermissionFieldContents(Long projectId)
projectId
- Id of the project for which we generate permission field contentpublic static org.apache.lucene.util.BytesRef generateProjectPermissionFieldContents(Long projectId, String fieldName, String fieldValue)
projectId
- Id of the project for which we generate field contentfieldName
- Field name for which we generate permission field contentfieldValue
- Value of the field for which we generate permission field contentpublic static org.apache.lucene.util.BytesRef generateIssueLevelPermissionContents(Long issueSecurityLevel)
issueSecurityLevel
- Id of the issue security level for which we generate field contentpublic static org.apache.lucene.util.BytesRef generateIssueLevelPermissionContents(Long issueSecurityLevel, Long projectId)
issueSecurityLevel
- Id of the issue security level for which we generate field contentprojectId
- Id of the project for which we generate field contentpublic static org.apache.lucene.util.BytesRef generateIssueLevelPermissionContents(Long issueSecurityLevel, String fieldName, String fieldValue)
issueSecurityLevel
- Id of the issue security level for which we generate field contentfieldName
- Field name for which we generate permission field contentfieldValue
- Value of the field for which we generate permission field contentCopyright © 2002-2019 Atlassian. All Rights Reserved.