|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CatalogService
Service can be used to perform all CRUDQ operation on Catalog entities.
Method Summary | |
---|---|
Result |
addCatalogItems(Catalog catalog) Adds the list of catalog items in to the catalog table. |
java.util.List |
deleteCatalogItems(java.util.List catalogItems, boolean softDelete) Delete the catalog item from catalog table. |
java.util.List |
getCatalogDetailsAsMetadata(java.lang.Long catalogID, java.lang.String entityKey, OIMType entityType, OperationContext opContext) To get the details of the catalog items this should be used. |
Catalog |
getCatalogItemDetails(java.lang.Long catalogID, java.lang.String entityKey, OIMType entityType, OperationContext opContext) To get the details of the catalog items this should be used. |
java.util.List |
getCatalogItemDetailsInBulk(java.util.List catalogIDs, java.util.List entityKeys, java.util.List entityTypes) Bulk API to get the details of the catalog items this should be used. |
CategoryTally |
getCategoryWithCount(CatalogSearchCriteria searchCriteria) This is to get the search category ion on the basis of Tags that has been provided by User, All the tags will be AND-ed, It will return the objects after applying the entity level security. |
java.util.List |
getMetaDataDefinition(java.lang.String name) To get the catalog meta data on the basis of name. |
CatalogSearchResult |
search(CatalogSearchCriteria searchCriteria, int lowerBound, int higherBound, java.lang.String sortField, CatalogSearchCriteria.SortCriteria sortCriteria) Search on the basis of Tags that has been provided by User, All the tags will be AND-ed, It will return the objects after applying the entity level security. |
Result |
updateCatalogItems(Catalog catalogItems) Update the catalog item, this can also be used to update the tags and metadata value. |
Result |
updateCatalogMetadataValues(java.util.List catalogItemList) Adds/Updates metadata values for catalog items against metadata definitions defined for all the catalog items. |
Method Detail |
---|
Result updateCatalogItems(Catalog catalogItems) throws CatalogException
catalogItems
- The catalog item that has to be updated.CatalogException
- @CatalogException
Result addCatalogItems(Catalog catalog) throws CatalogException
catalog
- Catalog item that will be inserted in to catalog table.CatalogException
java.util.List deleteCatalogItems(java.util.List catalogItems, boolean softDelete)
catalogItems
- List of catalog items that have to be soft deleted.softDelete
- User want to soft delete or hard delete if true it will be soft deleted means isdeleted will be updated to 1 for all the catalog items passed in a listCatalog getCatalogItemDetails(java.lang.Long catalogID, java.lang.String entityKey, OIMType entityType, OperationContext opContext) throws CatalogException
catalogID
- Primary key that uniquely identifies the Catalog Items in catalog tabel.entityKey
- This is the Prmiary key of Entities like Role, Entitlement and TargetResources. when this is passed Entity type should also bepassed.entityType
- This is one of the entity Type like Role, Entitlement or TargetResourceopContext
- operation Context to be passed when in request context else it can be null. This should bepassed in combination with entity key and typeCatalogException
CatalogSearchResult search(CatalogSearchCriteria searchCriteria, int lowerBound, int higherBound, java.lang.String sortField, CatalogSearchCriteria.SortCriteria sortCriteria) throws CatalogException
searchCriteria
- Object that contains the search criteria, It could contain the List of Category or the List of TagslowerBound
- lower bound for searchhigherBound
- higher bound for paginated searchsortField
- Field on which sorting needs to be performed.sortCriteria
- Criteria if its an Ascending or DescendingCatalogException
java.util.List getCatalogItemDetailsInBulk(java.util.List catalogIDs, java.util.List entityKeys, java.util.List entityTypes) throws CatalogException
catalogIDs
- List of primary key that uniquely identifies the Catalog Items in catalog tabel.entityKeys
- List of prmiary key of Entities like Role, Entitlement and TargetResources. when this is passed Entity type should also bepassed.entityTypes
- List of entity Type like Role, Entitlement or TargetResourceCatalogException
Result updateCatalogMetadataValues(java.util.List catalogItemList)
catalogItemList
- Catalog VO List for which metadata values has to be added/updatedjava.util.List getCatalogDetailsAsMetadata(java.lang.Long catalogID, java.lang.String entityKey, OIMType entityType, OperationContext opContext) throws CatalogException
catalogID
- Primary key that uniquely identifies the Catalog Items in catalog tabel.entityKey
- This is the Prmiary key of Entities like Role, Entitlement and TargetResources. when this is passed Entity type should also bepassed.entityType
- This is one of the entity Type like Role, Entitlement or TargetResourceopContext
- operation Context to be passed when in request context else it can be null. This should bepassed in combination with entity key and typeCatalogException
java.util.List getMetaDataDefinition(java.lang.String name) throws CatalogException
name
- Search pattern to get catalog metadataCatalogException
CategoryTally getCategoryWithCount(CatalogSearchCriteria searchCriteria) throws CatalogException
searchCriteria
- Object that contains the search criteria, It could contain the List of Category or the List of TagslowerBound
- lower bound for searchhigherBound
- higher bound for paginated searchsortField
- Field on which sorting needs to be performed.sortCriteria
- Criteria if its an Ascending or DescendingCatalogException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |