edu.internet2.middleware.grouper.ws.rest.attribute.WsRestFindAttributeDefNamesRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of grouper-ws Show documentation
Show all versions of grouper-ws Show documentation
Internet2 Groups Management WS Core
/*******************************************************************************
* Copyright 2012 Internet2
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
******************************************************************************/
/**
* @author mchyzer
* $Id$
*/
package edu.internet2.middleware.grouper.ws.rest.attribute;
import edu.internet2.middleware.grouper.ws.coresoap.WsAttributeDefLookup;
import edu.internet2.middleware.grouper.ws.coresoap.WsAttributeDefNameLookup;
import edu.internet2.middleware.grouper.ws.coresoap.WsParam;
import edu.internet2.middleware.grouper.ws.coresoap.WsSubjectLookup;
import edu.internet2.middleware.grouper.ws.rest.WsRequestBean;
import edu.internet2.middleware.grouper.ws.rest.method.GrouperRestHttpMethod;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* request bean in body of rest request
*/
@ApiModel(description = "bean that will be the data from rest request for finding attribute def names
actAsSubjectLookup: If allowed to act as other users (e.g. if a UI uses the Grouper WS behind the scenes), specify the user to act as here
"
+ "
subjectLookup: subject if looking for privileges or service role
"
+ "
params: optional params for this request
"
+ "
wsAttributeDefNameLookup: if you want to pass just a list of Uuids or Names
")
public class WsRestFindAttributeDefNamesRequest implements WsRequestBean {
/**
* subject if looking for privileges or service role
*/
private WsSubjectLookup subjectLookup;
/**
* subject if looking for privileges or service role
* @return subject
*/
public WsSubjectLookup getSubjectLookup() {
return this.subjectLookup;
}
/**
* subject if looking for privileges or service role
* @param subjectLookup1
*/
public void setSubjectLookup(WsSubjectLookup subjectLookup1) {
this.subjectLookup = subjectLookup1;
}
/**
* from ServiceRole enum, which service role you are querying
* e.g. admin or user
*/
private String serviceRole;
/**
* from ServiceRole enum, which service role you are querying
* e.g. admin or user
* @return service role
*/
@ApiModelProperty(value = "from ServiceRole enum, which service role you are querying", example = "admin or user")
public String getServiceRole() {
return this.serviceRole;
}
/**
* from ServiceRole enum, which service role you are querying
* e.g. admin or user
* @param serviceRole1
*/
public void setServiceRole(String serviceRole1) {
this.serviceRole = serviceRole1;
}
/**
* search string with % as wildcards will search name, display name, description
*/
private String scope;
/**
* search string with % as wildcards will search name, display name, description
* @return the scope
*/
@ApiModelProperty(value = "search string with % as wildcards will search name, display name, description", example = "!!")
public String getScope() {
return this.scope;
}
/**
* search string with % as wildcards will search name, display name, description
* @param scope1 the scope to set
*/
public void setScope(String scope1) {
this.scope = scope1;
}
/**
* splitScope T or F, if T will split the scope by whitespace, and find attribute def names with each token.
* e.g. if you have a scope of "pto permissions", and split scope T, it will return
* school:apps:pto_app:internal:the_permissions:whatever
* @return the splitScope
*/
@ApiModelProperty(value = "splitScope T or F, if T will split the scope by whitespace, and find attribute def names with each token. e.g. if you have a scope of \"pto permissions\", and split scope T, it will return school:apps:pto_app:internal:the_permissions:whatever", example = "T|F")
public String getSplitScope() {
return this.splitScope;
}
/**
* splitScope T or F, if T will split the scope by whitespace, and find attribute def names with each token.
* e.g. if you have a scope of "pto permissions", and split scope T, it will return
* school:apps:pto_app:internal:the_permissions:whatever
* @param splitScope1 the splitScope to set
*/
public void setSplitScope(String splitScope1) {
this.splitScope = splitScope1;
}
/**
* find names associated with this attribute definition
* @return the wsAttributeDefLookup
*/
public WsAttributeDefLookup getWsAttributeDefLookup() {
return this.wsAttributeDefLookup;
}
/**
* find names associated with this attribute definition
* @param wsAttributeDefLookup1 the wsAttributeDefLookup to set
*/
public void setWsAttributeDefLookup(WsAttributeDefLookup wsAttributeDefLookup1) {
this.wsAttributeDefLookup = wsAttributeDefLookup1;
}
/**
* where can the attribute definition be assigned, e.g. any_mem, any_mem_asgn, attr_def,
* attr_def_asgn, group, group_asgn, imm_mem, imm_mem_asgn, mem_asgn, member, stem, stem_asgn
* @return the attributeAssignType
*/
@ApiModelProperty(value = "where can the attribute definition be assigned", example = "any_mem, any_mem_asgn, attr_def, attr_def_asgn, group, group_asgn, imm_mem, imm_mem_asgn, mem_asgn, member, stem, stem_asgn")
public String getAttributeAssignType() {
return this.attributeAssignType;
}
/**
* where can the attribute definition be assigned, e.g. any_mem, any_mem_asgn, attr_def,
* attr_def_asgn, group, group_asgn, imm_mem, imm_mem_asgn, mem_asgn, member, stem, stem_asgn
* @param attributeAssignType1 the attributeAssignType to set
*/
public void setAttributeAssignType(String attributeAssignType1) {
this.attributeAssignType = attributeAssignType1;
}
/**
* type of attribute definition, e.g. attr, domain, limit, perm, type
* @return the attributeDefType
*/
@ApiModelProperty(value = "type of attribute definition", example = "attr, domain, limit, perm, type")
public String getAttributeDefType() {
return this.attributeDefType;
}
/**
* type of attribute definition, e.g. attr, domain, limit, perm, type
* @param attributeDefType1 the attributeDefType to set
*/
public void setAttributeDefType(String attributeDefType1) {
this.attributeDefType = attributeDefType1;
}
/**
* if you want to just pass in a list of uuids and/or names.
* @return the wsAttributeDefNameLookups
*/
public WsAttributeDefNameLookup[] getWsAttributeDefNameLookups() {
return this.wsAttributeDefNameLookups;
}
/**
* if you want to just pass in a list of uuids and/or names.
* @param wsAttributeDefNameLookups1 the wsAttributeDefNameLookups to set
*/
public void setWsAttributeDefNameLookups(
WsAttributeDefNameLookup[] wsAttributeDefNameLookups1) {
this.wsAttributeDefNameLookups = wsAttributeDefNameLookups1;
}
/**
* page size if paging on a sort filter or parent
* @return the pageSize
*/
@ApiModelProperty(value = "Page size if paging", example = "100")
public String getPageSize() {
return this.pageSize;
}
/**
* page size if paging on a sort filter or parent
* @param pageSize1 the pageSize to set
*/
public void setPageSize(String pageSize1) {
this.pageSize = pageSize1;
}
/**
* page number 1 indexed if paging on a sort filter or parent
* @return the pageNumber
*/
@ApiModelProperty(value = "Page number 1 indexed if paging", example = "1")
public String getPageNumber() {
return this.pageNumber;
}
/**
* page number 1 indexed if paging on a sort filter or parent
* @param pageNumber1 the pageNumber to set
*/
public void setPageNumber(String pageNumber1) {
this.pageNumber = pageNumber1;
}
/**
* must be an hql query field, e.g.
* can sort on name, displayName, extension, displayExtension
* @return the sortString
*/
@ApiModelProperty(value = "Must be an hql query field, e.g. can sort on name, displayName, extension, displayExtension",
example = "name | displayName | extension | displayExtension")
public String getSortString() {
return this.sortString;
}
/**
* must be an hql query field, e.g.
* can sort on name, displayName, extension, displayExtension
* @param sortString1 the sortString to set
*/
public void setSortString(String sortString1) {
this.sortString = sortString1;
}
/**
* ascending or null for ascending, F for descending.
* @return the ascending
*/
@ApiModelProperty(value = "T or null for ascending, F for descending. If you pass true or false, must pass a sort string", example = "T|F")
public String getAscending() {
return this.ascending;
}
/**
* ascending or null for ascending, F for descending.
* @param ascending1 the ascending to set
*/
public void setAscending(String ascending1) {
this.ascending = ascending1;
}
/**
* wsInheritanceSetRelation if there is one wsAttributeDefNameLookup, and this is specified, then find
* the attribute def names which are related to the lookup by this relation, e.g. IMPLIED_BY_THIS,
* IMPLIED_BY_THIS_IMMEDIATE, THAT_IMPLY_THIS, THAT_IMPLY_THIS_IMMEDIATE
* @return the wsInheritanceSetRelation
*/
@ApiModelProperty(value = "wsInheritanceSetRelation if there is one wsAttributeDefNameLookup, and this is specified, then find the attribute def names which are related to the lookup by this relation", example = "IMPLIED_BY_THIS, IMPLIED_BY_THIS_IMMEDIATE, THAT_IMPLY_THIS, THAT_IMPLY_THIS_IMMEDIATE")
public String getWsInheritanceSetRelation() {
return this.wsInheritanceSetRelation;
}
/**
* wsInheritanceSetRelation if there is one wsAttributeDefNameLookup, and this is specified, then find
* the attribute def names which are related to the lookup by this relation, e.g. IMPLIED_BY_THIS,
* IMPLIED_BY_THIS_IMMEDIATE, THAT_IMPLY_THIS, THAT_IMPLY_THIS_IMMEDIATE
* @param wsInheritanceSetRelation1 the wsInheritanceSetRelation to set
*/
public void setWsInheritanceSetRelation(String wsInheritanceSetRelation1) {
this.wsInheritanceSetRelation = wsInheritanceSetRelation1;
}
/**
* splitScope T or F, if T will split the scope by whitespace, and find attribute def names with each token.
* e.g. if you have a scope of "pto permissions", and split scope T, it will return
* school:apps:pto_app:internal:the_permissions:whatever
*/
private String splitScope;
/**
* find names associated with this attribute definition
*/
private WsAttributeDefLookup wsAttributeDefLookup;
/**
* where can the attribute definition be assigned, e.g. any_mem, any_mem_asgn, attr_def,
* attr_def_asgn, group, group_asgn, imm_mem, imm_mem_asgn, mem_asgn, member, stem, stem_asgn
*/
private String attributeAssignType;
/**
* type of attribute definition, e.g. attr, domain, limit, perm, type
*/
private String attributeDefType;
/**
* if you want to just pass in a list of uuids and/or names.
*/
private WsAttributeDefNameLookup[] wsAttributeDefNameLookups;
/**
* page size if paging on a sort filter or parent
*/
private String pageSize;
/**
* page number 1 indexed if paging on a sort filter or parent
*/
private String pageNumber;
/**
* must be an hql query field, e.g.
* can sort on name, displayName, extension, displayExtension
*/
private String sortString;
/**
* ascending or null for ascending, F for descending.
*/
private String ascending;
/**
* wsInheritanceSetRelation if there is one wsAttributeDefNameLookup, and this is specified, then find
* the attribute def names which are related to the lookup by this relation, e.g. IMPLIED_BY_THIS,
* IMPLIED_BY_THIS_IMMEDIATE, THAT_IMPLY_THIS, THAT_IMPLY_THIS_IMMEDIATE
*/
private String wsInheritanceSetRelation;
/**
* @see edu.internet2.middleware.grouper.ws.rest.WsRequestBean#retrieveRestHttpMethod()
*/
@Override
public GrouperRestHttpMethod retrieveRestHttpMethod() {
return GrouperRestHttpMethod.GET;
}
/** is the version of the client. Must be in GrouperWsVersion, e.g. v1_3_000 */
private String clientVersion;
/**
* is the version of the client. Must be in GrouperWsVersion, e.g. v1_3_000
* @return version
*/
@ApiModelProperty(value = "Version of the client (i.e. that the client was coded against)", example = "v2_6_001")
public String getClientVersion() {
return this.clientVersion;
}
/**
* is the version of the client. Must be in GrouperWsVersion, e.g. v1_3_000
* @param clientVersion1
*/
public void setClientVersion(String clientVersion1) {
this.clientVersion = clientVersion1;
}
/** if acting as someone else */
private WsSubjectLookup actAsSubjectLookup;
/**
* if acting as someone else
* @return act as subject
*/
public WsSubjectLookup getActAsSubjectLookup() {
return this.actAsSubjectLookup;
}
/**
* if acting as someone else
* @param actAsSubjectLookup1
*/
public void setActAsSubjectLookup(WsSubjectLookup actAsSubjectLookup1) {
this.actAsSubjectLookup = actAsSubjectLookup1;
}
/** optional: reserved for future use */
private WsParam[] params;
/**
* optional: reserved for future use
* @return params
*/
public WsParam[] getParams() {
return this.params;
}
/**
* optional: reserved for future use
* @param params1
*/
public void setParams(WsParam[] params1) {
this.params = params1;
}
/**
* T|F default to F. if this is T then we are doing cursor paging
*/
private String pageIsCursor;
/**
* field that will be sent back for cursor based paging
*/
private String pageLastCursorField;
/**
* could be: string, int, long, date, timestamp
*/
private String pageLastCursorFieldType;
/**
* T|F
*/
private String pageCursorFieldIncludesLastRetrieved;
/**
* @return the pageIsCursor
*/
@ApiModelProperty(value = "T|F default to F. if this is T then we are doing cursor paging", example = "T|F")
public String getPageIsCursor() {
return this.pageIsCursor;
}
/**
* @param pageIsCursor1 the pageIsCursor to set
*/
public void setPageIsCursor(String pageIsCursor1) {
this.pageIsCursor = pageIsCursor1;
}
/**
* @return the pageLastCursorField
*/
@ApiModelProperty(value = "Field that will be sent back for cursor based paging", example = "abc123")
public String getPageLastCursorField() {
return this.pageLastCursorField;
}
/**
* @param pageLastCursorField1 the pageLastCursorField to set
*/
public void setPageLastCursorField(String pageLastCursorField1) {
this.pageLastCursorField = pageLastCursorField1;
}
/**
* @return the pageLastCursorFieldType
*/
@ApiModelProperty(value = "Could be: string, int, long, date, timestamp", example = "string|int|long|date|timestamp")
public String getPageLastCursorFieldType() {
return this.pageLastCursorFieldType;
}
/**
* @param pageLastCursorFieldType1 the pageLastCursorFieldType to set
*/
public void setPageLastCursorFieldType(String pageLastCursorFieldType1) {
this.pageLastCursorFieldType = pageLastCursorFieldType1;
}
/**
* @return the pageCursorFieldIncludesLastRetrieved
*/
@ApiModelProperty(value = "If cursor field is unique, this should be false. If not, then should be true. i.e. if should include the last cursor field in the next resultset", example = "T|F")
public String getPageCursorFieldIncludesLastRetrieved() {
return this.pageCursorFieldIncludesLastRetrieved;
}
/**
* @param pageCursorFieldIncludesLastRetrieved1 the pageCursorFieldIncludesLastRetrieved to set
*/
public void setPageCursorFieldIncludesLastRetrieved(String pageCursorFieldIncludesLastRetrieved1) {
this.pageCursorFieldIncludesLastRetrieved = pageCursorFieldIncludesLastRetrieved1;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy