Jive API (4.5.7.0) Core Javadocs

com.jivesoftware.community
Interface TaggableTypeInfoProvider


public interface TaggableTypeInfoProvider

The tag subsystem uses this provider to perform tags-related operations on the behalf of the objects of this type.

See Also:
TaggableType

Method Summary
 ContainableType getContainableType()
          Returns the containable type of this type.
 boolean isAllowedToTag(JiveObject object, User user)
          Returns true it the user is allowed to tag the JiveObject.
 

Method Detail

isAllowedToTag

boolean isAllowedToTag(JiveObject object,
                       User user)
Returns true it the user is allowed to tag the JiveObject. False otherwise.

Parameters:
object - the object to check if the user has permission to edit.
user - the user to check if has permission to edit the objec.
Returns:
true it the user is allowed to edit the JiveObject.

getContainableType

ContainableType getContainableType()
Returns the containable type of this type. In most cases this will be this type itself, since most taggables types also implements the ContainableType. But there are other cases like blogs and blogs post, where blog post are taggable but not containable, and blogs are containable but not taggable. In that case the containable type of blog post is blog.

Returns:
the containableType of current type.

Jive Product Page

Copyright © 1999-2007 Jive Software.