Class ChannelRI
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends ChannelMapBase>
voidchannelMapChangeOrderOfMapField(String key, String channelMapName, String fieldKey, boolean decreaseOrder) POST: channelmap/{channelMapName}/{key}/field/{fieldKey}/move?up=falsevoidchannelMapChangeOrderOfMapField(ChannelMapBase channelMap, ChannelMapField channelMapField, boolean decreaseOrder) Increases or decreases prio of ChannelMapField within list of all ChannelMapField of this channelMap.<T extends ChannelMapBase>
javax.ws.rs.core.ResponsechannelMapEdit(String key, String channelMapName) POST: channelmap/{channelMapName}/{key}?data=[jsonDataMap]channelMapFieldSave(ChannelMapField channelMapField, DataMap dataMap) Inserts or updates given ChannelMapField by setting its fields from given paramMap.<T extends ChannelMapBase>
javax.ws.rs.core.ResponsechannelMapInsert(String channelMapName) POST: channelmap/{channelMapName}?data=[jsonDataMap]<T extends ChannelMapBase>
voidchannelMapRemoveChannelMapField(String key, String channelMapName, String fieldKey) DELETE: channelmap/{channelMapName}/{key}/field/{fieldKey}voidchannelMapRemoveChannelMapField(ChannelMapBase channelMap, ChannelMapField channelMapField) Removes ChannelMapField with g from given ChannelMapBase (can be PublicationProfileMap, PublicationProfileTypeMap, ImportProfileMap or ImportProfileTypeMap).<T extends ChannelMapBase>
TchannelMapSave(T channelMap, DataMap dataMap) Inserts or updates given ChannelMapBase by setting its fields from given dataMap.importChannelMap(String key, String channelMapName, boolean overwrite) POST: channelmap/{channelMapName}/{key}/fieldimport?overwrite=falsevoidimportDelete(String key) DELETE: import/{key}voidimportDelete(Import importEntity) Removes given import entity from database.voidimportProfileCopy(String key) POST: importprofile/{key}/copyimportProfileCopy(ImportProfile importProfile) Creates of copy of given importProfile including the ImportMap with its ChannelMapFields.voidimportProfileCreateTemplate(ImportProfile importProfile, OutputStream os) generate with help of export channel the template file with header for fields in channel map of import profile.voidDELETE: importprofile/{key}voidimportProfileDelete(ImportProfile importProfile) Removes ImportProfile from database.javax.ws.rs.core.ResponseimportProfileEdit(String key) POST: importprofile/{key}?data=[jsonDataMap]javax.ws.rs.core.ResponsePOST: importprofile?data=[jsonDataMap]voidimportProfilePerformImport(String key, String fileId, String filename) POST: importprofile/{key}/performimport?fileId={fileId}&filename={filename}voidimportProfilePerformImport(ImportProfile importProfile) Starts the import defined by this importProfile by starting the assigned workflowType.voidimportProfilePerformImport(ImportProfile importProfile, String fileId, String filename) Starts the import defined by this importProfile by starting the assigned workflowType.voidimportProfileRemoveImportMap(String key, String importMapKey) DELETE: importprofile/{key}/map/{importMapKey}/removevoidimportProfileRemoveImportMap(ImportProfile importProfile, ImportProfileMap importMap) Removes ImportProfileMap from ImportProfileand deletes the ImportProfileMap from DB.importProfileSave(ImportProfile importProfile, DataMap dataMap) Inserts or updates given ImportProfile by setting its fields from given dataMap.voidimportProfileSetImportFile(String key, String filename) POST: importprofile/{key}/filename/{filename} with uploaded file in POST bodyvoidimportProfileSetImportFile(ImportProfile importProfile, InputStream file, String filename) Stores the current file which contains the data to be imported with the ImportProfile in the file content store.voidPOST: importprofiletype/{key}/copy?collection={collectionKey}importProfileTypeCopy(ImportProfileType importProfileType) Creates a copy of the given ImportProfileType including the ImportMap with its ChannelMapFields.voidDELETE: importprofiletype/{key}voidimportProfileTypeDelete(ImportProfileType importProfileType) Checks if ImportProfileType is referenced by ImportProfile.javax.ws.rs.core.ResponsePOST: importprofiletype/{key}?data=[jsonDataMap]javax.ws.rs.core.ResponsePOST: importprofiletype?data=[jsonDataMap]voidimportProfileTypeRemoveImportMap(String key, String importMapKey) DELETE: importprofiletype/{key}/map/{ipTypeMapKey}/removevoidimportProfileTypeRemoveImportMap(ImportProfileType importProfileType, ImportProfileTypeMap importMap) Removes ImportProfileTypeMap with given id from ImportProfileType with given id and deletes the ImportProfileTypeMap.importProfileTypeSave(ImportProfileType importProfileType, DataMap dataMap) Inserts or updates given ImportProfileType by setting its fields from given dataMap.
The WorkflowType must be provided, either as attached entity in field or as id in the dataMap if the PublicationProfileType is new.voidnavigationAddClassification(String key, String classificationKey) POST: navigation/{key}/classification/{classificationKey}/addvoidnavigationAddClassification(Navigation navigation, Classification classification) Sets the Classification for this Navigation.voidnavigationAddNode(String key, String nodeKey, int prio) POST: navigation/{key}/node/{nodeKey}/add?prio=10navigationAddNode(Navigation navigation, Node node, int prio) Adds node to given navigation with given prio.voidnavigationChangeOrderOfNode(String key, String nodeKey, boolean decreaseOrder) POST: navigation/{key}/node/{nodeKey}/move?up=falsevoidnavigationChangeOrderOfNode(Navigation navigation, Node node, boolean decreaseOrder) Increases or decreases prio of node with given id within list of all nodes assigned to this Navigation.
Sets prio of all NodeNavigation of this Navigation accordingly.javax.ws.rs.core.ResponsenavigationCopy(String key, String parentKey) POST: navigation/{key}/copy?parent={parentKey}navigationCopy(Navigation toCopy, Navigation parent) Creates a copy of the navigation.voidnavigationDelete(String key) DELETE: navigation/{key}voidnavigationDelete(Navigation navigation) Checks if Navigation is referenced by other entities.javax.ws.rs.core.ResponsenavigationEdit(String key) POST: navigation/{key}?data=[jsonDataMap]voidnavigationHrcCopy(String key, String collectionKey) POST: navigationhrc/{key}/copy?collection={collectionKey}navigationHrcCopy(NavigationHrc navigationHrc, Collection targetCollection) Creates a deep copy of NavigationHierarchie in the target collection.
Copies the whole navigation tree for navigationHrc and the assignments to nodes.voidnavigationHrcCreatePreview(NavigationHrc navigationHrc) Get or create layout profile for this navigationHrc and perform layout export with it.voidDELETE: navigationhrc/{key}voidnavigationHrcDelete(NavigationHrc navigationHrc) Checks if NavigationHrc is referenced by Navigation or PublicationProfile.javax.ws.rs.core.ResponsenavigationHrcEdit(String key) POST: navigationhrc/{key}?data=[jsonDataMap]javax.ws.rs.core.ResponsePOST: navigationhrc?data=[jsonDataMap]navigationHrcSave(NavigationHrc navigationHrc, DataMap dataMap) Inserts or updates given NavigationHrc by setting its fields from given dataMap.
The NavigationHrcType must be provided, either as entity in field or as id in the dataMap.voidDELETE: navigationhrctype/{key}voidnavigationHrcTypeDelete(NavigationHrcType navigationHrcType) Checks if NavigationHrcType is referenced by NavigationHrc or NavigationType.javax.ws.rs.core.ResponsePOST: navigationhrctype/{key}?data=[jsonDataMap]javax.ws.rs.core.ResponsePOST: navigationhrctype?data=[jsonDataMap]navigationHrcTypeSave(NavigationHrcType navigationHrcType, DataMap dataMap) Inserts or updates given NavigationHrcType by setting its fields from given dataMap.javax.ws.rs.core.ResponsePOST: navigation?data=[jsonDataMap]voidnavigationMove(String key, String parentKey) POST: navigation/{key}/move/{parentKey}voidnavigationMove(Navigation toMove, Navigation parent) Moves a navigation to another parent navigation or makes it root level.voidDELETE: navigation/{key}/classification/{classificationKey}/addvoidnavigationRemoveClassification(Navigation navigation) Removes the Classification from given Navigation.voidnavigationRemoveNode(String key, String nodeKey) DELETE: navigation/{key}/node/{nodeKey}/removevoidnavigationRemoveNode(Navigation navigation, Node node) Removes node from navigation.navigationSave(Navigation navigation, DataMap dataMap) Inserts or updates given Navigation by setting its fields from given dataMap.
required right: RightType.INSERT by navigationHrc or parent navigation
CHECK: If this navigation is of the first level the navigationHrc must be set if navigation is persistent, if new the dataMap must contain the navigationHrc's id.voidnavigationToNodeSetNodes(String key, Set<String> children) POST: navigationtonode/{key}/set?child=abc&child=cdevoidnavigationToNodeSetNodes(NavigationToNode navToNode, List<Node> desiredNodes) voidDELETE: navigationtype/{key}voidnavigationTypeDelete(NavigationType navigationType) Deletes NavigationType from database if not used by Navigation or NavigationHrcType.javax.ws.rs.core.ResponsenavigationtypeEdit(String key) POST: navigationtype/{key}?data=[jsonDataMap]javax.ws.rs.core.ResponsePOST: navigationtype?data=[jsonDataMap]navigationTypeSave(NavigationType navigationType, DataMap dataMap) Inserts or updates given NavigationType by setting its fields from given dataMap.voidpublicationDelete(String key) DELETE: publication/{key}voidpublicationDelete(Publication publication) Removes given publication from database.voidpublicationProfileAddNavigationHierarchy(String key, String navigationHrcKey) POST: publicationprofile/{key}/navigationhrc/{navigationHrcKey}/addvoidpublicationProfileAddNavigationHierarchy(PublicationProfile publicationProfile, NavigationHrc navigationHrc, int prio) Adds NavigationHrc to given publicationProfile.voidpublicationProfileChangeOrderOfNavigationHierarchies(PublicationProfile publicationProfile, NavigationHrc navigationHrc, boolean decreaseOrder) Increases or decreases prio of assignment given navigation hierarchies.voidpublicationProfileChangeOrderOfNavigationHierarchies(PublicationProfile publicationProfile, NavigationHrc navigationHrc, int targetPosition) Changes place of navigation hierarchy to targetPosition in list of assignment given navigation hierarchiesvoidpublicationProfileCopy(String key, String collectionKey) POST: publicationprofile/{key}/copy?collection={collectionKey}publicationProfileCopy(PublicationProfile publicationProfile, Collection targetCollection) Creates a copy of given publicationProfile and inserts it in targetCollection if given, otherwise in collection of source publicationProfile.voidDELETE: publicationprofile/{key}voidpublicationProfileDelete(PublicationProfile publicationProfile) Removes PublicationProfile from database.javax.ws.rs.core.ResponsePOST: publicationprofile/{key}?data=[jsonDataMap]javax.ws.rs.core.ResponsePOST: publicationprofile?data=[jsonDataMap]voidPOST: publicationprofile/{key}/performexportvoidpublicationProfilePerformExport(PublicationProfile publicationProfile) Starts the export defined by this publicationProfile by starting the assigned workflowType.
With this a Publication object is created which is associated with a Report, both of which are stored in the database when the export is finished the Report holds any error and info messages created during the workflow.
If a file is created by the export it is stored with the Publication.voidpublicationProfilePerformExport(PublicationProfile publicationProfile, String searchResultId) Starts the export defined by this publicationProfile and with data from previous search defined by searchResultId.voidpublicationProfilePerformExport(PublicationProfile publicationProfile, Basket basket) Starts the export defined by this publicationProfile and with data defined by basket.voidpublicationProfilePerformExport(PublicationProfile publicationProfile, mc.core.system.search.SearchResult searchResult) Starts the export defined by this publicationProfile and with data from an earlier search.voidpublicationProfilePerformExportFromBasket(String key, String basketKey) POST: publicationprofile/{key}/basket/{basketKey}/performexportvoidpublicationProfilePerformExportFromSearchResult(String key, String searchResultId) POST: publicationprofile/{key}/searchresult/{searchResultId}/performexportvoidpublicationProfileRemoveNavigationHierarchy(String key, String navigationHrcKey, boolean force) DELETE: publicationprofile/{key}/navigationhrc/{navigationHrcKey}/remove?force=truevoidpublicationProfileRemoveNavigationHierarchy(PublicationProfile publicationProfile, NavigationHrc navigationHrc, boolean force) Removes assigned NavigationHrc from given PublicationProfile.voidpublicationProfileRemovePublicationMap(String key, String publicationMapKey) DELETE: publicationprofile/{key}/map/{publicationMapKey}/removevoidpublicationProfileRemovePublicationMap(PublicationProfile publicationProfile, PublicationProfileMap publicationMap) Removes PublicationProfileMap from PublicationProfile with and deletes the PublicationProfileMap.publicationProfileSave(PublicationProfile publicationProfile, DataMap dataMap) Inserts or updates given NavigationHrcType by setting its fields from given dataMap.
The PublicationProfileType must be provided, either as attached entity in field or as id in the dataMap.voidPOST: publicationprofile/{key}/locales?data=[list of datamap for PublicationProfileLocale]voidpublicationProfileSetLocales(PublicationProfile publicationProfile, List<PublicationProfileLocale> ppLocales) Sets the PublicationProfileLocales for PublicationProfile by overwriting any previous assignments.
PublicationProfileLocales hold information about primary and additional locales and their respective replacements locale.
The PublicationProfileLocales must be new entities and will be inserted.publicationProfilesGetForSearchResult(mc.core.system.search.SearchResult searchResult) Returns all publicationProfiles with flag searchResultPublication=true and, if profileType=flatFile, where nodeType of publication map equals nodeType of nodes in search result.voidPOST: publicationprofiletype/{key}/copypublicationProfileTypeCopy(PublicationProfileType publicationProfileType) Creates a copy of given PublicationProfileType.voidDELETE: publicationprofiletype/{key}voidpublicationProfileTypeDelete(PublicationProfileType publicationProfileType) Checks if PublicationProfileType is referenced by PublicationProfile.javax.ws.rs.core.ResponsePOST: publicationprofiletype/{key}?data=[jsonDataMap]javax.ws.rs.core.ResponsePOST: publicationprofiletype?data=[jsonDataMap]voidpublicationProfileTypeRemovePublicationMap(String key, String ppTypeMapKey) DELETE: publicationprofiletype/{key}/map/{ppTypeMapKey}/removevoidpublicationProfileTypeRemovePublicationMap(PublicationProfileType publicationProfileType, PublicationProfileTypeMap publicationMap) Removes PublicationProfileTypeMap from PublicationProfileType and deletes the PublicationProfileTypeMap.publicationProfileTypeSave(PublicationProfileType publicationProfileType, DataMap dataMap) Inserts or updates given PublicationProfileType by setting its fields from given dataMap.Methods inherited from class mc.core.domain.base.AbstractAPI
getAll, getAll, getFromId, getFromInternalDescription, getReference, ref, ref
-
Constructor Details
-
ChannelRI
public ChannelRI()
-
-
Method Details
-
publicationProfileInsert
@POST @Path("publicationprofile") public javax.ws.rs.core.Response publicationProfileInsert() throws UserException, ApplicationException, IOExceptionPOST: publicationprofile?data=[jsonDataMap]Insert a new publication profile with data provided in the json data map.
- Throws:
UserExceptionApplicationExceptionIOException- See Also:
-
ChannelAPI.publicationProfileSave(PublicationProfile, DataMap)
-
publicationProfileEdit
@POST @Path("publicationprofile/{key}") public javax.ws.rs.core.Response publicationProfileEdit(@PathParam("key") String key) throws UserException, ApplicationException, IOException POST: publicationprofile/{key}?data=[jsonDataMap]Save changes to a publication profile with data provided in the json data map.
- Throws:
UserExceptionApplicationExceptionIOException- See Also:
-
ChannelAPI.publicationProfileSave(PublicationProfile, DataMap)
-
publicationProfileDelete
@DELETE @Path("publicationprofile/{key}") public void publicationProfileDelete(@PathParam("key") String key) throws UserException, ApplicationException DELETE: publicationprofile/{key}Delete a publication profile with children.
- Throws:
UserExceptionApplicationException- See Also:
-
ChannelAPI.publicationProfileDelete(PublicationProfile)
-
publicationProfileCopy
@POST @Path("publicationprofile/{key}/copy") public void publicationProfileCopy(@PathParam("key") String key, @QueryParam("collection") String collectionKey) throws UserException, ApplicationException, IOException POST: publicationprofile/{key}/copy?collection={collectionKey}Copy publication profile defined by key to a new collection or same collection as source navigation hierarchy.
- Throws:
UserExceptionApplicationExceptionIOException- See Also:
-
ChannelAPI.publicationProfileCopy(PublicationProfile, Collection)
-
publicationProfileSetLocales
@POST @Path("publicationprofile/{key}/locales") public void publicationProfileSetLocales(@PathParam("key") String key) throws ApplicationException POST: publicationprofile/{key}/locales?data=[list of datamap for PublicationProfileLocale]Set all publication profile locales (locale with replacement locale) for the publication profile.
- Throws:
ApplicationException- See Also:
-
ChannelAPI.publicationProfileSetLocales(PublicationProfile, List)
-
publicationProfileRemovePublicationMap
@DELETE @Path("publicationprofile/{key}/map/{publicationMapKey}/remove") public void publicationProfileRemovePublicationMap(@PathParam("key") String key, @PathParam("publicationMapKey") String publicationMapKey) throws ApplicationException DELETE: publicationprofile/{key}/map/{publicationMapKey}/removeRemove the publication map from the publication profile.
- Throws:
ApplicationException- See Also:
-
ChannelAPI.publicationProfileRemovePublicationMap(PublicationProfile, PublicationProfileMap)
-
publicationProfilePerformExport
@POST @Path("publicationprofile/{key}/performexport") public void publicationProfilePerformExport(@PathParam("key") String key) throws ApplicationException POST: publicationprofile/{key}/performexportStarts the export defined by this publicationProfile
- Throws:
ApplicationException- See Also:
-
ChannelAPI.publicationProfilePerformExport(PublicationProfile)
-
publicationProfilePerformExportFromSearchResult
@POST @Path("publicationprofile/{key}/searchresult/{searchResultId}/performexport") public void publicationProfilePerformExportFromSearchResult(@PathParam("key") String key, @PathParam("searchResultId") String searchResultId) throws ApplicationException POST: publicationprofile/{key}/searchresult/{searchResultId}/performexportStarts the export defined by this publicationProfile with objects from the search result
- Throws:
ApplicationException- See Also:
-
ChannelAPI.publicationProfilePerformExport(PublicationProfile, String)
-
publicationProfilePerformExportFromBasket
@POST @Path("publicationprofile/{key}/basket/{basketKey}/performexport") public void publicationProfilePerformExportFromBasket(@PathParam("key") String key, @PathParam("basketKey") String basketKey) throws ApplicationException POST: publicationprofile/{key}/basket/{basketKey}/performexportStarts the export defined by this publicationProfile with objects from the basket
- Throws:
ApplicationException- See Also:
-
ChannelAPI.publicationProfilePerformExport(PublicationProfile, Basket)
-
publicationDelete
@DELETE @Path("publication/{key}") public void publicationDelete(@PathParam("key") String key) throws ApplicationException DELETE: publication/{key}Deletes the publication
- Throws:
ApplicationException- See Also:
-
ChannelAPI.publicationDelete(mc.core.model.channel.Publication)
-
publicationProfileTypeInsert
@POST @Path("publicationprofiletype") public javax.ws.rs.core.Response publicationProfileTypeInsert() throws UserException, ApplicationException, IOExceptionPOST: publicationprofiletype?data=[jsonDataMap]Insert a new publication profile type with data provided in the json data map.
- Throws:
UserExceptionApplicationExceptionIOException- See Also:
-
ChannelAPI.publicationProfileTypeSave(PublicationProfileType, DataMap)
-
publicationProfileTypeEdit
@POST @Path("publicationprofiletype/{key}") public javax.ws.rs.core.Response publicationProfileTypeEdit(@PathParam("key") String key) throws UserException, ApplicationException, IOException POST: publicationprofiletype/{key}?data=[jsonDataMap]Save changes to a publication profile type with data provided in the json data map.
- Throws:
UserExceptionApplicationExceptionIOException- See Also:
-
ChannelAPI.publicationProfileTypeSave(PublicationProfileType, DataMap)
-
publicationProfileTypeDelete
@DELETE @Path("publicationprofiletype/{key}") public void publicationProfileTypeDelete(@PathParam("key") String key) throws UserException, ApplicationException DELETE: publicationprofiletype/{key}Delete a publication profile type with children.
- Throws:
UserExceptionApplicationException- See Also:
-
ChannelAPI.publicationProfileTypeDelete(PublicationProfileType)
-
publicationProfileTypeCopy
@POST @Path("publicationprofiletype/{key}/copy") public void publicationProfileTypeCopy(@PathParam("key") String key) throws UserException, ApplicationException, IOException POST: publicationprofiletype/{key}/copyCopy publication profile type defined by key
- Throws:
UserExceptionApplicationExceptionIOException- See Also:
-
ChannelAPI.publicationProfileTypeCopy(PublicationProfileType)
-
publicationProfileTypeRemovePublicationMap
@DELETE @Path("publicationprofiletype/{key}/map/{ppTypeMapKey}/remove") public void publicationProfileTypeRemovePublicationMap(@PathParam("key") String key, @PathParam("ppTypeMapKey") String ppTypeMapKey) throws ApplicationException DELETE: publicationprofiletype/{key}/map/{ppTypeMapKey}/removeRemove the publication map from the publication profile.
- Throws:
ApplicationException- See Also:
-
ChannelAPI.publicationProfileTypeRemovePublicationMap(PublicationProfileType, mc.core.model.channel.PublicationProfileTypeMap)
-
importProfileInsert
@POST @Path("importprofile") public javax.ws.rs.core.Response importProfileInsert() throws UserException, ApplicationException, IOExceptionPOST: importprofile?data=[jsonDataMap]Insert a new import profile with data provided in the json data map.
- Throws:
UserExceptionApplicationExceptionIOException- See Also:
-
ChannelAPI.importProfileSave(ImportProfile, DataMap)
-
importProfileEdit
@POST @Path("importprofile/{key}") public javax.ws.rs.core.Response importProfileEdit(@PathParam("key") String key) throws UserException, ApplicationException, IOException POST: importprofile/{key}?data=[jsonDataMap]Save changes to a import profile with data provided in the json data map.
- Throws:
UserExceptionApplicationExceptionIOException- See Also:
-
ChannelAPI.importProfileSave(ImportProfile, DataMap)
-
importProfileDelete
@DELETE @Path("importprofile/{key}") public void importProfileDelete(@PathParam("key") String key) throws UserException, ApplicationException DELETE: importprofile/{key}Delete a import profile with children.
- Throws:
UserExceptionApplicationException- See Also:
-
ChannelAPI.importProfileDelete(ImportProfile)
-
importProfileCopy
@POST @Path("importprofile/{key}/copy") public void importProfileCopy(@PathParam("key") String key) throws UserException, ApplicationException, IOException POST: importprofile/{key}/copyCopy import profile defined by key.
- Throws:
UserExceptionApplicationExceptionIOException- See Also:
-
ChannelAPI.importProfileCopy(ImportProfile)
-
importProfileRemoveImportMap
@DELETE @Path("importprofile/{key}/map/{importMapKey}/remove") public void importProfileRemoveImportMap(@PathParam("key") String key, @PathParam("importMapKey") String importMapKey) throws ApplicationException DELETE: importprofile/{key}/map/{importMapKey}/removeRemove the import map from the import profile.
- Throws:
ApplicationException- See Also:
-
ChannelAPI.importProfileRemoveImportMap(ImportProfile, ImportProfileMap)
-
importProfileSetImportFile
@POST @Path("importprofile/{key}/filename/{filename}") public void importProfileSetImportFile(@PathParam("key") String key, @PathParam("filename") String filename) throws ApplicationException, IOException POST: importprofile/{key}/filename/{filename} with uploaded file in POST bodyUpload file for import profile.
- Throws:
ApplicationExceptionIOException- See Also:
-
ChannelAPI.importProfileSetImportFile(ImportProfile, InputStream, String)
-
importProfilePerformImport
@POST @Path("importprofile/{key}/performimport") public void importProfilePerformImport(@PathParam("key") String key, @QueryParam("fileId") String fileId, @QueryParam("filename") String filename) throws ApplicationException, IOException POST: importprofile/{key}/performimport?fileId={fileId}&filename={filename}Starts the import defined by this importProfile, if fileId and filename are given with these as reference for a file otherwise with file stored with import profile
- Throws:
ApplicationExceptionIOException- See Also:
-
ChannelAPI.importProfilePerformImport(ImportProfile)
-
importDelete
@DELETE @Path("import/{key}") public void importDelete(@PathParam("key") String key) throws ApplicationException DELETE: import/{key}Delete the import.
- Throws:
ApplicationException- See Also:
-
ChannelAPI.importDelete(mc.core.model.channel.Import)
-
importProfileTypeInsert
@POST @Path("importprofiletype") public javax.ws.rs.core.Response importProfileTypeInsert() throws UserException, ApplicationException, IOExceptionPOST: importprofiletype?data=[jsonDataMap]Insert a new import profile type with data provided in the json data map.
- Throws:
UserExceptionApplicationExceptionIOException- See Also:
-
ChannelAPI.importProfileTypeSave(ImportProfileType, DataMap)
-
importProfileTypeEdit
@POST @Path("importprofiletype/{key}") public javax.ws.rs.core.Response importProfileTypeEdit(@PathParam("key") String key) throws UserException, ApplicationException, IOException POST: importprofiletype/{key}?data=[jsonDataMap]Save changes to a import profile type with data provided in the json data map.
- Throws:
UserExceptionApplicationExceptionIOException- See Also:
-
ChannelAPI.importProfileTypeSave(ImportProfileType, DataMap)
-
importProfileTypeDelete
@DELETE @Path("importprofiletype/{key}") public void importProfileTypeDelete(@PathParam("key") String key) throws UserException, ApplicationException DELETE: importprofiletype/{key}Delete a import profile type with children.
- Throws:
UserExceptionApplicationException- See Also:
-
ChannelAPI.importProfileTypeDelete(ImportProfileType)
-
importProfileTypeCopy
@POST @Path("importprofiletype/{key}/copy") public void importProfileTypeCopy(@PathParam("key") String key) throws UserException, ApplicationException, IOException POST: importprofiletype/{key}/copy?collection={collectionKey}Copy import profile type defined by key.
- Throws:
UserExceptionApplicationExceptionIOException- See Also:
-
ChannelAPI.importProfileTypeCopy(ImportProfileType)
-
importProfileTypeRemoveImportMap
@DELETE @Path("importprofiletype/{key}/map/{ipTypeMapKey}/remove") public void importProfileTypeRemoveImportMap(@PathParam("key") String key, @PathParam("ipTypeMapKey") String importMapKey) throws ApplicationException DELETE: importprofiletype/{key}/map/{ipTypeMapKey}/removeRemove the import map from the import profile type.
- Throws:
ApplicationException- See Also:
-
ChannelAPI.importProfileTypeRemoveImportMap(ImportProfileType, ImportProfileTypeMap)
-
channelMapInsert
@POST @Path("channelmap/{channelMapName}") public <T extends ChannelMapBase> javax.ws.rs.core.Response channelMapInsert(@PathParam("channelMapName") String channelMapName) throws UserException, ApplicationException, IOException POST: channelmap/{channelMapName}?data=[jsonDataMap]Insert a new channel map (PublicationProfileMap, PublicationProfileTypeMap, ImportProfileMap or ImportProfileTypeMap) with data provided in the json data map.
- Throws:
UserExceptionApplicationExceptionIOException- See Also:
-
ChannelAPI.channelMapSave(ChannelMapBase, DataMap)
-
channelMapEdit
@POST @Path("channelmap/{channelMapName}/{key}") public <T extends ChannelMapBase> javax.ws.rs.core.Response channelMapEdit(@PathParam("key") String key, @PathParam("channelMapName") String channelMapName) throws UserException, ApplicationException, IOException POST: channelmap/{channelMapName}/{key}?data=[jsonDataMap]Save changes to a channel map with data provided in the json data map.
- Throws:
UserExceptionApplicationExceptionIOException- See Also:
-
ChannelAPI.channelMapSave(ChannelMapBase, DataMap)
-
channelMapRemoveChannelMapField
@DELETE @Path("channelmap/{channelMapName}/{key}/field/{fieldKey}") public <T extends ChannelMapBase> void channelMapRemoveChannelMapField(@PathParam("key") String key, @PathParam("channelMapName") String channelMapName, @PathParam("fieldKey") String fieldKey) throws ApplicationException DELETE: channelmap/{channelMapName}/{key}/field/{fieldKey}Remove channel map field from channel map
- Throws:
ApplicationException- See Also:
-
ChannelAPI.channelMapRemoveChannelMapField(ChannelMapBase, ChannelMapField)
-
channelMapChangeOrderOfMapField
@POST @Path("channelmap/{channelMapName}/{key}/field/{fieldKey}/move") public <T extends ChannelMapBase> void channelMapChangeOrderOfMapField(@PathParam("key") String key, @PathParam("channelMapName") String channelMapName, @PathParam("fieldKey") String fieldKey, @QueryParam("up") @DefaultValue("true") boolean decreaseOrder) throws ApplicationException POST: channelmap/{channelMapName}/{key}/field/{fieldKey}/move?up=falseMove channel map field up or down in list of fields of the channel map
- Throws:
ApplicationException- See Also:
-
ChannelAPI.channelMapChangeOrderOfMapField(ChannelMapBase, ChannelMapField, boolean)
-
importChannelMap
@POST @Path("channelmap/{channelMapName}/{key}/fieldimport") @Produces("text/plain") public String importChannelMap(@PathParam("key") String key, @PathParam("channelMapName") String channelMapName, @QueryParam("overwrite") boolean overwrite) throws ApplicationException, IOException POST: channelmap/{channelMapName}/{key}/fieldimport?overwrite=falseimport channel map fields from excel with fix defined format. send excel file in form POST body. append fields, optionally overwrite. format description and example see MC-6829.
-
publicationProfileSave
public PublicationProfile publicationProfileSave(PublicationProfile publicationProfile, DataMap dataMap) throws ApplicationException Inserts or updates given NavigationHrcType by setting its fields from given dataMap.
The PublicationProfileType must be provided, either as attached entity in field or as id in the dataMap.- Parameters:
publicationProfile- mandatorydataMap- mandatory, contains values for the PublicationProfile's fields as key-value pairs- Returns:
- inserted or updated PublicationProfile. If PublicationProfile has been inserted if contains now the newly created id
- Throws:
ApplicationException
-
publicationProfileCopy
public PublicationProfile publicationProfileCopy(PublicationProfile publicationProfile, Collection targetCollection) throws ApplicationException Creates a copy of given publicationProfile and inserts it in targetCollection if given, otherwise in collection of source publicationProfile.
required right: RightType.INSERT by targetCollection
- Parameters:
publicationProfile- mandatorytargetCollection- optional- Returns:
- copy of publicationProfile
- Throws:
ApplicationException- See Also:
-
publicationProfileDelete
public void publicationProfileDelete(PublicationProfile publicationProfile) throws ApplicationException Removes PublicationProfile from database.- Parameters:
publicationProfile- mandatory- Throws:
ApplicationException
-
publicationProfileSetLocales
public void publicationProfileSetLocales(PublicationProfile publicationProfile, List<PublicationProfileLocale> ppLocales) throws ApplicationException Sets the PublicationProfileLocales for PublicationProfile by overwriting any previous assignments.
PublicationProfileLocales hold information about primary and additional locales and their respective replacements locale.
The PublicationProfileLocales must be new entities and will be inserted.- Parameters:
publicationProfile- mandatoryppLocales- mandatory- Throws:
ApplicationException
-
publicationProfileRemovePublicationMap
public void publicationProfileRemovePublicationMap(PublicationProfile publicationProfile, PublicationProfileMap publicationMap) throws ApplicationException Removes PublicationProfileMap from PublicationProfile with and deletes the PublicationProfileMap. All ChannelMapFields of this PublicationProfileMap with their settings will be deleted with the map.- Parameters:
publicationProfile- mandatorypublicationMap- mandatory- Throws:
ApplicationException
-
publicationProfilesGetForSearchResult
public List<PublicationProfile> publicationProfilesGetForSearchResult(mc.core.system.search.SearchResult searchResult) throws ApplicationException Returns all publicationProfiles with flag searchResultPublication=true and, if profileType=flatFile, where nodeType of publication map equals nodeType of nodes in search result.- Parameters:
searchResult- Search result, must not benull- Returns:
- Matching publication profiles.
- Throws:
ApplicationException
-
publicationProfilePerformExport
public void publicationProfilePerformExport(PublicationProfile publicationProfile) throws UserException, ApplicationException Starts the export defined by this publicationProfile by starting the assigned workflowType.
With this a Publication object is created which is associated with a Report, both of which are stored in the database when the export is finished the Report holds any error and info messages created during the workflow.
If a file is created by the export it is stored with the Publication.
required right: RightType.EXECUTE by publicationProfile
- Parameters:
publicationProfile- mandatory- Throws:
UserException- with message keymessage.workflow.info.startedto signal start of workflow.ApplicationException- on any error
-
publicationProfilePerformExport
public void publicationProfilePerformExport(PublicationProfile publicationProfile, String searchResultId) throws UserException, ApplicationException Starts the export defined by this publicationProfile and with data from previous search defined by searchResultId.
required right: RightType.EXECUTE by publicationProfile
- Parameters:
publicationProfile- mandatorysearchResultId- mandatory, must be valid resultId from a prior search- Throws:
UserException- with message keymessage.workflow.info.startedto signal start of workflow.ApplicationException- on any error
-
publicationProfilePerformExport
public void publicationProfilePerformExport(PublicationProfile publicationProfile, mc.core.system.search.SearchResult searchResult) throws UserException, ApplicationException Starts the export defined by this publicationProfile and with data from an earlier search.
required right: RightType.EXECUTE by publicationProfile
- Parameters:
publicationProfile- Description for export contents. Must not benull.searchResult- Result of an earlier search. Must not benull.- Throws:
UserException- with message keymessage.workflow.info.startedto signal start of workflow.ApplicationException- on any error
-
publicationProfilePerformExport
public void publicationProfilePerformExport(PublicationProfile publicationProfile, Basket basket) throws UserException, ApplicationException Starts the export defined by this publicationProfile and with data defined by basket.- Parameters:
publicationProfile- mandatorybasket- mandatory- Throws:
UserException- with message keymessage.workflow.info.startedto signal start of workflow.ApplicationException- on any error
-
publicationDelete
Removes given publication from database. If report associated with publication is not used elsewhere also deletes the report.- Parameters:
publication- mandatory- Throws:
ApplicationException
-
publicationProfileTypeSave
public PublicationProfileType publicationProfileTypeSave(PublicationProfileType publicationProfileType, DataMap dataMap) throws UserException, ApplicationException Inserts or updates given PublicationProfileType by setting its fields from given dataMap.
required user role: UserBaseRole.CONFIGADMIN
- Parameters:
publicationProfileType- mandatorydataMap- mandatory, contains values for the NavigationHrcType's fields as key-value pairs- Returns:
- inserted or updated PublicationProfileType.
If PublicationProfileType has been inserted if contains now the newly created id - Throws:
UserException- if user has not role CONFIGADMINApplicationException
-
publicationProfileTypeCopy
public PublicationProfileType publicationProfileTypeCopy(PublicationProfileType publicationProfileType) throws UserException, ApplicationException Creates a copy of given PublicationProfileType.
required user role: only UserBaseRole.CONFIGADMIN
- Parameters:
publicationProfileType- mandatory- Returns:
- the copy
- Throws:
UserException- if user has not role CONFIGADMINApplicationException- See Also:
-
publicationProfileTypeDelete
public void publicationProfileTypeDelete(PublicationProfileType publicationProfileType) throws UserException, DeleteTiedElementException, ApplicationException Checks if PublicationProfileType is referenced by PublicationProfile. If not, removes it from database.
required user role: only UserBaseRole.CONFIGADMIN
- Parameters:
publicationProfileType- mandatory- Throws:
UserException- if user has not role CONFIGADMINDeleteTiedElementException- if publication profile type is in useApplicationException- See Also:
-
for usage of PublicationProfileType
-
publicationProfileTypeRemovePublicationMap
public void publicationProfileTypeRemovePublicationMap(PublicationProfileType publicationProfileType, PublicationProfileTypeMap publicationMap) throws UserException, ApplicationException Removes PublicationProfileTypeMap from PublicationProfileType and deletes the PublicationProfileTypeMap.
All ChannelMapFields of this PublicationProfileTypeMap with their settings will be deleted with the map.
required user role: only UserBaseRole.CONFIGADMIN
- Parameters:
publicationProfileType- mandatorypublicationMap- mandatory- Throws:
UserException- if user has not role CONFIGADMINApplicationException
-
importProfileSave
public ImportProfile importProfileSave(ImportProfile importProfile, DataMap dataMap) throws ApplicationException Inserts or updates given ImportProfile by setting its fields from given dataMap. The ImportProfileType must be provided, either as attached entity in field or as id in the dataMap if the PublicationProfileType is new.- Parameters:
importProfile- mandatorydataMap- mandatory, contains values for the ImportProfile's fields as key-value pairs- Returns:
- inserted or updated ImportProfile. If ImportProfile has been inserted if contains now the newly created id
- Throws:
ApplicationException
-
importProfileCopy
Creates of copy of given importProfile including the ImportMap with its ChannelMapFields.- Parameters:
importProfile- mandatory- Returns:
- copy
- Throws:
ApplicationException- See Also:
-
importProfileDelete
Removes ImportProfile from database.- Parameters:
importProfile- mandatory- Throws:
ApplicationException
-
importProfileRemoveImportMap
public void importProfileRemoveImportMap(ImportProfile importProfile, ImportProfileMap importMap) throws ApplicationException Removes ImportProfileMap from ImportProfileand deletes the ImportProfileMap from DB. All ChannelMapFields of this ImportProfileMap with their settings will be deleted with the map.- Parameters:
importProfile- mandatoryimportMap- mandatory- Throws:
ApplicationException
-
importProfileSetImportFile
public void importProfileSetImportFile(ImportProfile importProfile, InputStream file, String filename) throws ApplicationException Stores the current file which contains the data to be imported with the ImportProfile in the file content store. This method must be called before starting the import.- Parameters:
importProfile- mandatoryfile- mandatory, must be openfilename- mandatory- Throws:
ApplicationException
-
importProfileCreateTemplate
public void importProfileCreateTemplate(ImportProfile importProfile, OutputStream os) throws ApplicationException generate with help of export channel the template file with header for fields in channel map of import profile. (export of empty export data with map from import profile) use for flat file import profiles with import channel map only.- Parameters:
importProfile- mandatoryos- mandatory- Throws:
ApplicationException
-
importProfilePerformImport
public void importProfilePerformImport(ImportProfile importProfile) throws UserException, ApplicationException Starts the import defined by this importProfile by starting the assigned workflowType. With this an Import object is created which is associated with a Report, both of which are stored in the database when the import is finished the Report holds any error and info messages created during the workflow. If the imported data was provided by a file this file is stored with the Import.
required right: RightType.EXECUTE by importProfile
- Parameters:
importProfile- mandatory- Throws:
ApplicationExceptionUserException- with message keymessage.workflow.info.startedto signal start of workflow.
-
importProfilePerformImport
public void importProfilePerformImport(ImportProfile importProfile, String fileId, String filename) throws UserException, ApplicationException Starts the import defined by this importProfile by starting the assigned workflowType. With this an Import object is created which is associated with a Report, both of which are stored in the database when the import is finished the Report holds any error and info messages created during the workflow.
required right: RightType.EXECUTE by importProfile
- Parameters:
importProfile- mandatoryfileId- optionalfilename- optional, define the file with import data
if fileId or fileName is null, starts import with file from this importProfile.- Throws:
ApplicationExceptionUserException- with message keymessage.workflow.info.startedto signal start of workflow.
-
importDelete
Removes given import entity from database. If report associated with import is not used elsewhere also deletes the report.- Parameters:
importEntity- mandatory- Throws:
ApplicationException
-
importProfileTypeSave
public ImportProfileType importProfileTypeSave(ImportProfileType importProfileType, DataMap dataMap) throws UserException, ApplicationException Inserts or updates given ImportProfileType by setting its fields from given dataMap.
The WorkflowType must be provided, either as attached entity in field or as id in the dataMap if the PublicationProfileType is new.
required user role: UserBaseRole.CONFIGADMIN
- Parameters:
importProfileType- mandatorydataMap- mandatory, contains values for the ImportProfileType's fields as key-value pairs- Returns:
- inserted or updated ImportProfileType. If ImportProfileType has been inserted if contains now the newly created id
- Throws:
UserException- if user has not user role CONFIGADMINApplicationException
-
importProfileTypeCopy
public ImportProfileType importProfileTypeCopy(ImportProfileType importProfileType) throws UserException, ApplicationException Creates a copy of the given ImportProfileType including the ImportMap with its ChannelMapFields.
required user role: UserBaseRole.CONFIGADMIN
- Parameters:
importProfileType- mandatory- Returns:
- the copy
- Throws:
UserException- if user has not user role CONFIGADMINApplicationException- See Also:
-
importProfileTypeDelete
public void importProfileTypeDelete(ImportProfileType importProfileType) throws UserException, ApplicationException Checks if ImportProfileType is referenced by ImportProfile. If not, removes it from database.
required user role: UserBaseRole.CONFIGADMIN
- Parameters:
importProfileType- mandatory- Throws:
ApplicationExceptionUserException- if ImportProfileType is in use or user has not user role CONFIGADMIN- See Also:
-
for usage of ImportProfileType
-
importProfileTypeRemoveImportMap
public void importProfileTypeRemoveImportMap(ImportProfileType importProfileType, ImportProfileTypeMap importMap) throws UserException, ApplicationException Removes ImportProfileTypeMap with given id from ImportProfileType with given id and deletes the ImportProfileTypeMap. All ChannelMapFields of this ImportProfileTypeMap with their settings will be deleted with the map.
required user role: UserBaseRole.CONFIGADMIN
- Parameters:
importProfileType- mandatoryimportMap- mandatory- Throws:
UserException- if user has not user role CONFIGADMINApplicationException
-
channelMapSave
public <T extends ChannelMapBase> T channelMapSave(T channelMap, DataMap dataMap) throws UserException, ApplicationException Inserts or updates given ChannelMapBase by setting its fields from given dataMap. The ChannelMapType must be provided.
required user role: UserBaseRole.CONFIGADMIN
- Parameters:
channelMap- mandatorydataMap- mandatory, contains values for the ChannelMapBase's fields as key-value pairs- Returns:
- inserted or updated ChannelMapBase. If ChannelMapBase has been inserted if contains now the newly created id
- Throws:
UserException- if user has not user role CONFIGADMINApplicationException
-
channelMapRemoveChannelMapField
public void channelMapRemoveChannelMapField(ChannelMapBase channelMap, ChannelMapField channelMapField) throws ApplicationException Removes ChannelMapField with g from given ChannelMapBase (can be PublicationProfileMap, PublicationProfileTypeMap, ImportProfileMap or ImportProfileTypeMap).- Parameters:
channelMap- mandatorychannelMapField- mandatory- Throws:
ApplicationException
-
channelMapFieldSave
public ChannelMapField channelMapFieldSave(ChannelMapField channelMapField, DataMap dataMap) throws ApplicationException Inserts or updates given ChannelMapField by setting its fields from given paramMap.- Parameters:
channelMapField- mandatorydataMap- mandatory, contains values for the ChannelMapField's fields as key-value pairs- Returns:
- inserted or updated ChannelMapField. If ChannelMapField has been inserted if contains now the newly created id
- Throws:
ApplicationException
-
channelMapChangeOrderOfMapField
public void channelMapChangeOrderOfMapField(ChannelMapBase channelMap, ChannelMapField channelMapField, boolean decreaseOrder) throws ApplicationException Increases or decreases prio of ChannelMapField within list of all ChannelMapField of this channelMap.
Sets prio of all ChannelMapField of this ChannelMapBase accordingly.- Parameters:
channelMap- mandatorychannelMapField- mandatorydecreaseOrder- true if ChannelMapField is to move up one step in list, for move down set to false- Throws:
ApplicationException