public interface AdminTagMgrIf
Modifier and Type | Method and Description |
---|---|
void |
addCategoriesToTagGroups(int tagGroupId,
int[] categories)
Add the array of categories to the tagGroup specified.
|
void |
addTagGroupsToCategory(AdminTagGroup[] tagGroups,
int categoryId)
Add the array of tagGroups to the category identified by categoryId.
|
void |
addTagsToProduct(AdminTag[] tags,
int productId)
Add the array of tags to the product identified by productId.
|
void |
deleteSingleTag(int id,
int languageId)
Delete a single Tag from the database with this Id and languageId.
|
void |
deleteSingleTagGroup(int id,
int languageId)
Delete a single TagGroup from the database.
|
void |
deleteTag(java.lang.String sessionId,
int id)
Delete a Tag from the database.
|
void |
deleteTagGroup(java.lang.String sessionId,
int id)
Delete a TagGroup from the database.
|
AdminTagGroupSearchResult |
getTagGroups(java.lang.String sessionId,
AdminSearch search,
int offset,
int size)
Return the TagGroup objects defined by the search criteria.
|
AdminTagGroup[] |
getTagGroupsPerCategory(int categoryId,
int languageId)
Return an array of AdminTagGroup objects for a category.
|
AdminTagGroupToTag[] |
getTagGroupToTags(java.lang.String sessionId,
AdminSearch search,
int offset,
int size)
Return the TagGroupToTag objects defined by the search criteria.
|
AdminTagSearchResult |
getTags(java.lang.String sessionId,
AdminSearch search,
int offset,
int size)
Return the Tag objects defined by the search criteria.
|
AdminTag[] |
getTagsPerProduct(int productId,
int languageId)
Fetches all of the tags for a product.
|
int |
insertTag(AdminTag tag)
Insert a new Tag object.
|
int |
insertTag(java.lang.String sessionId,
AdminTag tag)
Insert a new Tag object.
|
int |
insertTagGroup(AdminTagGroup tagGroup)
Insert a new TagGroup object.
|
int |
insertTagGroup(java.lang.String sessionId,
AdminTagGroup tagGroup)
Insert a new TagGroup object.
|
int |
insertTagGroups(java.lang.String sessionId,
AdminTagGroup[] tagGroups)
Insert an array of TagGroup objects - provide a TagGroup object for each language
|
void |
insertTagGroupToTags(AdminTagGroupToTag tagGroupToTag)
Insert an AdminTagGroupToTag record
|
int |
insertTags(java.lang.String sessionId,
AdminTag[] tags)
Insert an array of Tag objects - provide a Tag record for each supported language.
|
void |
refreshConfigs()
Refresh the configuration of the Manager
|
void |
removeTagGroupsFromCategory(AdminTagGroup[] tagGroups,
int categoryId)
If associations exist between the tagGroupss and the category identified by categoryId, then
they are removed.
|
void |
removeTagsFromProduct(AdminTag[] tags,
int productId)
If associations exist between the tags and the product identified by productId, then they are
removed.
|
int |
updateTag(java.lang.String sessionId,
AdminTag tag)
Update an existing Tag object - only the Name, the SortOrder and associated TagGroups (if
present) can be updated.
|
int |
updateTagGroup(java.lang.String sessionId,
AdminTagGroup tagGroup)
Update an existing TagGroup object - You can update the name, description and the set of tags
associated to the tag group if the tags attribute is non-null.
|
AdminTagSearchResult getTags(java.lang.String sessionId, AdminSearch search, int offset, int size) throws KKAdminException
sessionId
- session Id of logged in Admin usersearch
- the generic Admin search object that defines the tag objects to search for. If
null we use the default AdminSearch object. If null we use the default AdminSearch
object. If you specify the LanguageId in the search object, only the tag for that
specified language will be returned. If you specify AdminLanguage.ALL_LANGUAGES
for the languageId the search will be made on the default language, and if tags
are found, tags with these tagIds for all of the languages are returned.offset
- starting offset in database - so that you can page through resultssize
- size of the group that will be returned - the maximum number of records returnedKKAdminException
- an unexpected exception in the KonaKart Admin engineAdminTagGroupSearchResult getTagGroups(java.lang.String sessionId, AdminSearch search, int offset, int size) throws KKAdminException
sessionId
- session Id of logged in Admin usersearch
- the generic Admin search object that defines the tag group objects to search foroffset
- starting offset in database - so that you can page through resultssize
- size of the group that will be returned - the maximum number of records returnedKKAdminException
- an unexpected exception in the KonaKart Admin engineAdminTagGroupToTag[] getTagGroupToTags(java.lang.String sessionId, AdminSearch search, int offset, int size) throws KKAdminException
sessionId
- session Id of logged in Admin usersearch
- the generic Admin search object that defines the tag objects to search for. If
null we use the default AdminSearch object. If id is not -1 this is used to define
the tag Group Id. If id2 is not -1 this is used to define the tag Id.offset
- starting offset in database - so that you can page through resultssize
- size of the group that will be returned - the maximum number of records returnedKKAdminException
- an unexpected exception in the KonaKart Admin engineint insertTags(java.lang.String sessionId, AdminTag[] tags) throws java.lang.Exception
sessionId
- session Id of logged in Admin usertags
- the array of AdminTag objects to insert - do not fill out the Id on these as this
will be created. It is assumed that all of these tags will have the same ID, and
there will be one for each language.java.lang.Exception
- an unexpected exceptionint insertTag(java.lang.String sessionId, AdminTag tag) throws java.lang.Exception
sessionId
- session Id of logged in Admin usertag
- the new AdminTag object to insert - do not fill out the Id as this will be
created. If the tag specifies -1 (KonakartAdminConstants.DEFAULT_LANGUAGE_ID) for
the languageId, we set the id of the default language before inserting)java.lang.Exception
- an unexpected exceptionint insertTag(AdminTag tag) throws java.lang.Exception
tag
- the new AdminTag object to insert - do not fill out the Id as this will be
created. If the tag specifies -1 (KonakartAdminConstants.DEFAULT_LANGUAGE_ID) for
the languageId, we set the id of the default language before inserting)java.lang.Exception
- an unexpected exceptionint insertTagGroups(java.lang.String sessionId, AdminTagGroup[] tagGroups) throws KKAdminException
sessionId
- session Id of logged in Admin usertagGroups
- the new AdminTagGroup object to insert - do not fill out the Id on these as this
will be created. It is assumed that all of these tagGroups will have the same ID,
and there will be one for each language.KKAdminException
- an unexpected exception in the KonaKart Admin engineint insertTagGroup(java.lang.String sessionId, AdminTagGroup tagGroup) throws KKAdminException
sessionId
- session Id of logged in Admin usertagGroup
- the new AdminTagGroup object to insert - do not fill out the Id as this will be
created. If the tag group specifies -1
(KonakartAdminConstants.DEFAULT_LANGUAGE_ID) for the languageId, we set the id of
the default language before inserting)KKAdminException
- an unexpected exception in the KonaKart Admin engineint insertTagGroup(AdminTagGroup tagGroup) throws KKAdminException
tagGroup
- the new AdminTagGroup object to insert - do not fill out the Id as this will be
created. If the tag group specifies -1
(KonakartAdminConstants.DEFAULT_LANGUAGE_ID) for the languageId, we set the id of
the default language before inserting)KKAdminException
- an unexpected exception in the KonaKart Admin enginevoid insertTagGroupToTags(AdminTagGroupToTag tagGroupToTag) throws KKAdminException
tagGroupToTag
- the tagGroupToTagKKAdminException
- an unexpected exception in the KonaKart Admin engineint updateTag(java.lang.String sessionId, AdminTag tag) throws KKAdminException
sessionId
- session Id of logged in Admin usertag
- the AdminTag object to updateKKAdminException
- an unexpected exception in the KonaKart Admin engineint updateTagGroup(java.lang.String sessionId, AdminTagGroup tagGroup) throws KKAdminException
sessionId
- session Id of logged in Admin usertagGroup
- the AdminTagGroup object to updateKKAdminException
- an unexpected exception in the KonaKart Admin enginevoid deleteTag(java.lang.String sessionId, int id) throws KKAdminException
sessionId
- session Id of logged in Admin userid
- the id of the AdminTag to deleteKKAdminException
- an unexpected exception in the KonaKart Admin enginevoid deleteSingleTag(int id, int languageId) throws KKAdminException
id
- the id of the AdminTag to deletelanguageId
- the languageId of the AdminTag to deleteKKAdminException
- an unexpected exception in the KonaKart Admin enginevoid deleteTagGroup(java.lang.String sessionId, int id) throws KKAdminException
sessionId
- session Id of logged in Admin userid
- the id of the AdminTagGroup to deleteKKAdminException
- an unexpected exception in the KonaKart Admin enginevoid deleteSingleTagGroup(int id, int languageId) throws KKAdminException
id
- the id of the AdminTagGroup to deletelanguageId
- the languageId of the AdminTagGroup to deleteKKAdminException
- an unexpected exception in the KonaKart Admin engineAdminTagGroup[] getTagGroupsPerCategory(int categoryId, int languageId) throws java.lang.Exception
categoryId
- the categoryIdlanguageId
- the languageIdjava.lang.Exception
- an unexpected exceptionvoid addTagGroupsToCategory(AdminTagGroup[] tagGroups, int categoryId) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
tagGroups
- the tagGroupscategoryId
- the categoryIdorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)KKAdminException
- an unexpected exception in the KonaKart Admin enginevoid addCategoriesToTagGroups(int tagGroupId, int[] categories) throws org.apache.torque.TorqueException, KKAdminException
tagGroupId
- the tag group Id to link to the categoriescategories
- an array of category Ids to link to the Tag Grouporg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)KKAdminException
- an unexpected exception in the KonaKart Admin enginevoid removeTagGroupsFromCategory(AdminTagGroup[] tagGroups, int categoryId) throws org.apache.torque.TorqueException, KKAdminException
tagGroups
- the tagGroupscategoryId
- the categoryIdorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)KKAdminException
- an unexpected exception in the KonaKart Admin engineAdminTag[] getTagsPerProduct(int productId, int languageId) throws java.lang.Exception
productId
- the productIdlanguageId
- the languageIdjava.lang.Exception
- an unexpected exceptionvoid addTagsToProduct(AdminTag[] tags, int productId) throws org.apache.torque.TorqueException, KKAdminException
tags
- the tagsproductId
- the productIdorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)KKAdminException
- an unexpected exception in the KonaKart Admin enginevoid removeTagsFromProduct(AdminTag[] tags, int productId) throws org.apache.torque.TorqueException, KKAdminException
tags
- the tagsproductId
- the productIdorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)KKAdminException
- an unexpected exception in the KonaKart Admin enginevoid refreshConfigs() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionCopyright © 2018 DS Data Systems UK Ltd.