Skip navigation links


oracle.iam.oimcommon.api
Interface ResourceService


public interface ResourceService

Method Summary
 java.util.List getAllResourceTypeNames()
          gets a list of all Resource type names.
 java.util.List getAllResourceTypes()
          returns a list of all resource types available.
 java.util.List getCertifiableResourceTypeIds()
           
 java.util.List getFilteredResources(java.util.List resourceIds, java.lang.Integer itemRisk)
          filters out given resources based on a given item risk value.
 java.util.List getResourcesByIds(java.util.List resourceIds)
          get a list of resources by their Ids.
 java.util.List getResourcesByType(java.lang.Long resourceTypeId)
          returns a list of resources based on a resource type id.
 ResourceType getResourceTypeByAttributeId(java.lang.Long attributeId)
          gets a resourceType given an attribute Id.

 

Method Detail

getAllResourceTypeNames

java.util.List getAllResourceTypeNames()
gets a list of all Resource type names.
Returns:
a List of resource type names

getAllResourceTypes

java.util.List getAllResourceTypes()
returns a list of all resource types available.
Returns:
a List of ResourceType objects.

getResourceTypeByAttributeId

ResourceType getResourceTypeByAttributeId(java.lang.Long attributeId)
gets a resourceType given an attribute Id.
Parameters:
attributeId - : ID of the attribute which is present in a resource type
Returns:
a ResourceType object which contains this attribute

getResourcesByType

java.util.List getResourcesByType(java.lang.Long resourceTypeId)
returns a list of resources based on a resource type id.
Parameters:
resourceTypeId - - Id of resource type
Returns:
a List of Resource objects.

getResourcesByIds

java.util.List getResourcesByIds(java.util.List resourceIds)
get a list of resources by their Ids.
Parameters:
resourceIds - : list of resource IDs
Returns:
a List of Resource objects.

getFilteredResources

java.util.List getFilteredResources(java.util.List resourceIds,
                                    java.lang.Integer itemRisk)
filters out given resources based on a given item risk value. Takes out all resources which do not have given item risk.
Parameters:
resourceIds - : a list of resource ids
itemRisk - : itemRisk, which could be of value low, medium, high
Returns:
a list of resource objects all having given value of itemRisk.

getCertifiableResourceTypeIds

java.util.List getCertifiableResourceTypeIds()

Skip navigation links


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