Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter
11g Release 1 (11.1.1.3.0)
E15995-02


oracle.webcenter.tagging.model
Interface Resource


public interface Resource

A resource represents anything in the system that can be tagged. The uniqueness of the resource is specified through the combination of two attributes, the serviceId and the resourceId.

Since:
11.1.1.0.0

Method Summary
 int getBookmarkCount()
          Return the resource's number of bookmarks, that is, the number of times the resource has been bookmarked
 java.lang.String getId()
          Returns the resource's id
 java.util.Date getLastTaggedDate()
          Return the last time this resource has been tagged
 java.lang.String getName()
          Returns the name of the resource.
 int getScalarValue()
          Return the resource's scalar value.
 java.lang.String getScope()
          Returns the resource's scope
 java.lang.String getServiceId()
          Returns the ID of the service owning the resource.
 java.lang.String getTagWords()
          Return a single string which contains tag words (space delimited) for this resource
 boolean isSurrogate()
          Returns whether this resource is a surrogate for another resource that may have been deleted
 boolean isTaggedBy(java.lang.String userId)
          Return a boolean whether this resource has been tagged by the specified user id

 

Method Detail

getId

java.lang.String getId()
Returns the resource's id
Returns:
the resource's id

getScope

java.lang.String getScope()
Returns the resource's scope
Returns:
the resource's scope

getBookmarkCount

int getBookmarkCount()
Return the resource's number of bookmarks, that is, the number of times the resource has been bookmarked
Returns:
the resource's number of bookmarks

getName

java.lang.String getName()
Returns the name of the resource.
Returns:
the resource's name

getServiceId

java.lang.String getServiceId()
Returns the ID of the service owning the resource.
Returns:
the resource's service ID

getScalarValue

int getScalarValue()
Return the resource's scalar value. The scalar value could mean different things depending on the method which are called to return this Resource <p/>
Returns:
the resource's scalar value

getTagWords

java.lang.String getTagWords()
Return a single string which contains tag words (space delimited) for this resource
Returns:
a space-delimited tag words string

getLastTaggedDate

java.util.Date getLastTaggedDate()
Return the last time this resource has been tagged
Returns:
a date when this resource has been tagged the last time

isTaggedBy

boolean isTaggedBy(java.lang.String userId)
Return a boolean whether this resource has been tagged by the specified user id
Parameters:
userId - the current userId
Returns:
a boolean that indicates whether this resource has been tagged by the specified user id

isSurrogate

boolean isSurrogate()
Returns whether this resource is a surrogate for another resource that may have been deleted
Returns:
whether this resource is a surrogate

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter
11g Release 1 (11.1.1.3.0)
E15995-02


Copyright © 2009, 2010, Oracle. All rights reserved.