|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AdminTagMgrIf
AdminTagMgrIf
Method Summary | |
---|---|
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 |
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(java.lang.String sessionId,
AdminTag tag)
Insert a new Tag 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. |
Method Detail |
---|
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 returned
KKAdminException
AdminTagGroupSearchResult 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 returned
KKAdminException
AdminTagGroupToTag[] 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 returned
KKAdminException
int 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
int 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
int 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
int 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
void insertTagGroupToTags(AdminTagGroupToTag tagGroupToTag) throws KKAdminException
tagGroupToTag
-
KKAdminException
int updateTag(java.lang.String sessionId, AdminTag tag) throws KKAdminException
sessionId
- session Id of logged in Admin usertag
- the AdminTag object to update
KKAdminException
int updateTagGroup(java.lang.String sessionId, AdminTagGroup tagGroup) throws KKAdminException
sessionId
- session Id of logged in Admin usertagGroup
- the AdminTagGroup object to update
KKAdminException
void deleteTag(java.lang.String sessionId, int id) throws KKAdminException
sessionId
- session Id of logged in Admin userid
- the id of the AdminTag to delete
KKAdminException
void deleteTagGroup(java.lang.String sessionId, int id) throws KKAdminException
sessionId
- session Id of logged in Admin userid
- the id of the AdminTagGroup to delete
KKAdminException
AdminTagGroup[] getTagGroupsPerCategory(int categoryId, int languageId) throws java.lang.Exception
categoryId
- languageId
-
java.lang.Exception
void addTagGroupsToCategory(AdminTagGroup[] tagGroups, int categoryId) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
tagGroups
- categoryId
-
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKAdminException
void 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 Group
org.apache.torque.TorqueException
KKAdminException
void removeTagGroupsFromCategory(AdminTagGroup[] tagGroups, int categoryId) throws org.apache.torque.TorqueException, KKAdminException
tagGroups
- categoryId
-
org.apache.torque.TorqueException
KKAdminException
AdminTag[] getTagsPerProduct(int productId, int languageId) throws java.lang.Exception
productId
- languageId
-
java.lang.Exception
void addTagsToProduct(AdminTag[] tags, int productId) throws org.apache.torque.TorqueException, KKAdminException
tags
- productId
-
org.apache.torque.TorqueException
KKAdminException
void removeTagsFromProduct(AdminTag[] tags, int productId) throws org.apache.torque.TorqueException, KKAdminException
tags
- productId
-
org.apache.torque.TorqueException
KKAdminException
void refreshConfigs() throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |