Skip navigation links


oracle.iam.request.api
Interface RequestTemplateService


Deprecated.

@Deprecated
public interface RequestTemplateService

This class is used to manage request templates. This service allows

This class is no longer supported. RequestProfile needs to be used as alternative to request templates. Please refer to product documentation for further information.


Method Summary
 RequestTemplate createTemplate(RequestTemplate template)
          Deprecated. Creates Request template.
 RequestTemplate createTemplate(RequestTemplate template, java.util.List roleKeys)
          Deprecated. Creates Request template and assigns it to given list of roles.
 void deleteTemplate(java.lang.Long templateKey, java.sql.Timestamp updatedTimestamp)
          Deprecated. Deletes the template with given key.
 java.util.List getGrantedRolesWithTemplate(java.lang.Long templateKey)
          Deprecated. Get the list of roles that are granted with the given template.
 RequestTemplate getTemplate(java.lang.String name)
          Deprecated. Get the template with given name
 java.util.List getTemplateNames(java.lang.String modelName)
          Deprecated. 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)
          Deprecated. 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)
          Deprecated. Grants the given template to given roles.
 RequestTemplate modifyTemplate(RequestTemplate template)
          Deprecated. Modify the given template.
 void revokeTemplateFromRoles(java.lang.Long templateKey, java.util.List roleKeys)
          Deprecated. Revokes the template access from given roles.
 java.util.List searchTemplates(RequestTemplateSearchCriteria searchCriteria, java.util.Map configParams)
          Deprecated. Returns a list of request templates that match the given search criteria.

 

Method Detail

createTemplate

RequestTemplate createTemplate(RequestTemplate template)
                               throws RequestServiceException
Deprecated. 
Creates Request template.
Parameters:
template - template object that needs to be created
Returns:
template that is created. The key field of template is populated. This object can be used for further modifications.
Throws:
RequestServiceException - if data validation or creation fails

createTemplate

RequestTemplate createTemplate(RequestTemplate template,
                               java.util.List roleKeys)
                               throws RequestServiceException
Deprecated. 
Creates Request template and assigns it to given list of roles. Users having these roles can use this template for request creation.
Parameters:
template - template object that needs to be created
roleKeys - list of roles to which the template needs to be assigned.
Returns:
template that is created. The key field of template is populated. This object can be used for further modifications.
Throws:
RequestServiceException - if data validation or creation fails

getTemplates

java.util.List getTemplates(java.lang.String namePattern,
                            java.lang.String modelNamePattern)
                            throws RequestServiceException
Deprecated. 
Get the list of templates matching the given name pattern and model name matching model name pattern.
Parameters:
namePattern - - template name pattern with "*" as wild character
modelNamePattern - - model name pattern with "*" as wild character
Returns:
list of templates matching the given name pattern and model name matching model name pattern.
Throws:
RequestServiceException - if search fails

getTemplateNames

java.util.List getTemplateNames(java.lang.String modelName)
                                throws RequestServiceException
Deprecated. 
Get the list of templates matching the given name pattern and model name matching model name pattern.
Parameters:
modelName -
Returns:
list of templates matching the given modelName also checks OES policy to check availability of template.
Throws:
RequestServiceException - if search fails

searchTemplates

java.util.List searchTemplates(RequestTemplateSearchCriteria searchCriteria,
                               java.util.Map configParams)
                               throws RequestServiceException
Deprecated. 
Returns a list of request templates that match the given search criteria. This API takes permissions into consideration and only request template administrators can search for request templates
Parameters:
searchCriteria - Value object to specify the Request Template search criteria Below is the list of allowed search parameters
configParams - Additional configurational parameters for search results
Returns:
List of Request Template object based on search criteria
Throws:
RequestServiceException - if data validation, search fails

modifyTemplate

RequestTemplate modifyTemplate(RequestTemplate template)
                               throws RequestServiceException
Deprecated. 
Modify the given template.
Parameters:
template - modified template object that needs to be saved
Returns:
RequestTemplate modified template object
Throws:
RequestServiceException - if data validation or modification fails

deleteTemplate

void deleteTemplate(java.lang.Long templateKey,
                    java.sql.Timestamp updatedTimestamp)
                    throws RequestServiceException
Deprecated. 
Deletes the template with given key.
Parameters:
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();
Throws:
RequestServiceException - if data validation or deletion fails

getGrantedRolesWithTemplate

java.util.List getGrantedRolesWithTemplate(java.lang.Long templateKey)
                                           throws RequestServiceException
Deprecated. 
Get the list of roles that are granted with the given template.
Parameters:
templateKey - key of the template
Returns:
list of roles that are granted with the given template.
Throws:
RequestServiceException - if search for granted role fails

grantTemplateToRoles

void grantTemplateToRoles(java.lang.Long templateKey,
                          java.util.List roleKeys)
                          throws RequestServiceException
Deprecated. 
Grants the given template to given roles. All users with these roles will be able to raise requests with this template.
Parameters:
templateKey - key of the template that needs to be granted to the role
roleKeys - list of the role keys
Throws:
RequestServiceException - if role grant fails

revokeTemplateFromRoles

void revokeTemplateFromRoles(java.lang.Long templateKey,
                             java.util.List roleKeys)
                             throws RequestServiceException
Deprecated. 
Revokes the template access from given roles. Users with these roles will no longer be able to raise requests with this template
Parameters:
templateKey - key of the template that needs to be revoked from the role
roleKeys - list of the role keys
Throws:
RequestServiceException - if revoking the granted roles fails

getTemplate

RequestTemplate getTemplate(java.lang.String name)
                            throws RequestServiceException
Deprecated. 
Get the template with given name
Parameters:
name - - name of the template.
Returns:
RequestTemplate template object with given name
Throws:
RequestServiceException - if search fails

Skip navigation links


Copyright © 2014, Oracle and/or its affiliates. All rights reserved.