|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RequestTemplateService
This class is used to manage request templates. This service allows
| Method Summary | |
|---|---|
RequestTemplate |
createTemplate(RequestTemplate template)Creates Request template. |
RequestTemplate |
createTemplate(RequestTemplate template, java.util.List roleKeys)Creates Request template and assigns it to given list of roles. |
void |
deleteTemplate(java.lang.Long templateKey, java.sql.Timestamp updatedTimestamp)Deletes the template with given key. |
java.util.List |
getGrantedRolesWithTemplate(java.lang.Long templateKey)Get the list of roles that are granted with the given template. |
RequestTemplate |
getTemplate(java.lang.String name)Get the template with given name |
java.util.List |
getTemplateNames(java.lang.String modelName)Get the list of templates matching the given name pattern and model name matching model name pattern. |
java.util.List |
getTemplates(java.lang.String namePattern, java.lang.String modelNamePattern)Get the list of templates matching the given name pattern and model name matching model name pattern. |
void |
grantTemplateToRoles(java.lang.Long templateKey, java.util.List roleKeys)Grants the given template to given roles. |
RequestTemplate |
modifyTemplate(RequestTemplate template)Modify the given template. |
void |
revokeTemplateFromRoles(java.lang.Long templateKey, java.util.List roleKeys)Revokes the template access from given roles. |
java.util.List |
searchTemplates(RequestTemplateSearchCriteria searchCriteria, java.util.Map configParams)Returns a list of request templates that match the given search criteria. |
| Method Detail |
|---|
RequestTemplate createTemplate(RequestTemplate template)
throws RequestServiceException
template - template object that needs to be createdRequestServiceException - if data validation or creation fails
RequestTemplate createTemplate(RequestTemplate template,
java.util.List roleKeys)
throws RequestServiceException
template - template object that needs to be createdroleKeys - list of roles to which the template needs to be assigned.RequestServiceException - if data validation or creation fails
java.util.List getTemplates(java.lang.String namePattern,
java.lang.String modelNamePattern)
throws RequestServiceException
namePattern - - template name pattern with "*" as wild charactermodelNamePattern - - model name pattern with "*" as wild characterRequestServiceException - if search fails
java.util.List getTemplateNames(java.lang.String modelName)
throws RequestServiceException
modelName -RequestServiceException - if search fails
java.util.List searchTemplates(RequestTemplateSearchCriteria searchCriteria,
java.util.Map configParams)
throws RequestServiceException
searchCriteria - Value object to specify the Request Template search criteria Below is the list of allowed search parameters
REQUEST_TEMPLATE_NAME , Name of the request templateMODEL_NAME , Request Model Name.configParams - Additional configurational parameters for search results
SEARCH_STARTROW , Start row of the search resultSEARCH_ENDROW , End row of the search resultSEARCH_SORTBY , Column on which results should be sorted onSEARCH_SORTORDER , Sort Order, allowed values are ASCENDING or DESCENDINGRequestServiceException - if data validation, search fails
RequestTemplate modifyTemplate(RequestTemplate template)
throws RequestServiceException
template - modified template object that needs to be savedRequestServiceException - if data validation or modification fails
void deleteTemplate(java.lang.Long templateKey,
java.sql.Timestamp updatedTimestamp)
throws RequestServiceException
templateKey - key of the template that needs to be deleted.updatedTimestamp - - the updatedTimestamp field of the request template. This can be obtained as requestTemplate.getLastUpdatedTimestamp();RequestServiceException - if data validation or deletion fails
java.util.List getGrantedRolesWithTemplate(java.lang.Long templateKey)
throws RequestServiceException
templateKey - key of the templateRequestServiceException - if search for granted role fails
void grantTemplateToRoles(java.lang.Long templateKey,
java.util.List roleKeys)
throws RequestServiceException
templateKey - key of the template that needs to be granted to the roleroleKeys - list of the role keysRequestServiceException - if role grant fails
void revokeTemplateFromRoles(java.lang.Long templateKey,
java.util.List roleKeys)
throws RequestServiceException
templateKey - key of the template that needs to be revoked from the roleroleKeys - list of the role keysRequestServiceException - if revoking the granted roles fails
RequestTemplate getTemplate(java.lang.String name)
throws RequestServiceException
name - - name of the template.RequestServiceException - if search fails
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||