|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.dotmarketing.tag.ajax.TagAjax
public class TagAjax
| Constructor Summary | |
|---|---|
TagAjax()
|
|
| Method Summary | |
|---|---|
static java.util.Map<java.lang.String,java.lang.Object> |
addTag(java.lang.String tagNames,
java.lang.String userId,
java.lang.String hostId)
Tags an object, validates the existence of a tag(s), creates it if it doesn't exists and then tags the object |
static void |
addTagFullCommand(java.lang.String tagName,
java.lang.String userId)
Tags the users in selected in the User Manager, validates the existence of a tag(s), creates it if it doesn't exists and then tags the object |
void |
deleteTag(java.lang.String tagId)
Deletes a tag |
java.util.Map<java.lang.String,java.util.List<Tag>> |
deleteTag(java.lang.String tagName,
java.lang.String userId)
Deletes an object tag assignment(s) |
static void |
deleteTagFullCommand(java.lang.String tagName)
|
java.util.List |
deleteTagInode(java.lang.String tagName,
java.lang.String inode)
Deletes an object tag assignment(s) |
java.util.List |
getAllTag(java.lang.String userId)
Gets all the tags created, with the respective owner and permission information |
java.util.List<Tag> |
getAllTags()
Get a list of all the tags created |
java.util.List<Tag> |
getSuggestedTag(java.lang.String tagName,
java.lang.String selectedHostId)
Gets a suggested tag(s), by name |
static java.util.List<Tag> |
getTagByName(java.lang.String tagName)
Gets a tag with the owner information, searching by name |
java.util.List<Tag> |
getTagByUser(java.lang.String userId)
Gets all the tag created by an user |
java.util.List |
getTagInfoByName(java.lang.String tagName)
Gets a tag with the owner information, searching by name |
static java.util.List |
getTagInodeByInode(java.lang.String inode)
Gets all tags associated to an object |
java.util.Map<java.lang.String,java.util.List<Tag>> |
getTagsByUser(java.lang.String userId)
Gets all the tag created by an user |
java.util.List<Tag> |
getUsersTags()
|
static java.util.Map<java.lang.String,java.lang.Object> |
importTags(byte[] uploadFile)
|
static java.util.Map<java.lang.String,java.lang.Object> |
updateTag(java.lang.String tagId,
java.lang.String tagName,
java.lang.String hostId)
Updates an existing tag. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TagAjax()
| Method Detail |
|---|
public static java.util.Map<java.lang.String,java.lang.Object> addTag(java.lang.String tagNames,
java.lang.String userId,
java.lang.String hostId)
tagName - tag(s) to createuserId - owner of the taginode - object to tag
public static java.util.Map<java.lang.String,java.lang.Object> updateTag(java.lang.String tagId,
java.lang.String tagName,
java.lang.String hostId)
tagName - tag to updateuserId - owner of the taghostId - the storage host id
public static void addTagFullCommand(java.lang.String tagName,
java.lang.String userId)
tagName - tag(s) to createuserId - owner of the tagpublic java.util.List<Tag> getTagByUser(java.lang.String userId)
userId - id of the user
public java.util.Map<java.lang.String,java.util.List<Tag>> getTagsByUser(java.lang.String userId)
userId - id of the user
public void deleteTag(java.lang.String tagId)
tagName - name of the tag to be deleteduserId - id of the tag ownerpublic java.util.List getAllTag(java.lang.String userId)
userId - id of the user that searches the tag
public static java.util.List<Tag> getTagByName(java.lang.String tagName)
name - name of the tag
public java.util.List getTagInfoByName(java.lang.String tagName)
name - name of the tag
public static java.util.List getTagInodeByInode(java.lang.String inode)
inode - inode of the object tagged
public java.util.List deleteTagInode(java.lang.String tagName,
java.lang.String inode)
tagName - name(s) of the tag(s)inode - inode of the object tagged
public java.util.Map<java.lang.String,java.util.List<Tag>> deleteTag(java.lang.String tagName,
java.lang.String userId)
tagName - name(s) of the tag(s)inode - inode of the object tagged
public static void deleteTagFullCommand(java.lang.String tagName)
public java.util.List<Tag> getSuggestedTag(java.lang.String tagName,
java.lang.String selectedHostId)
name - name of the tag searched
public java.util.List<Tag> getAllTags()
public java.util.List<Tag> getUsersTags()
public static java.util.Map<java.lang.String,java.lang.Object> importTags(byte[] uploadFile)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||