(Object feedOrEntryUrn)
| 187 | } |
| 188 | |
| 189 | public static final String toFeedIdString(Object feedOrEntryUrn) { |
| 190 | String feedId = feedOrEntryUrn.toString(); |
| 191 | if (feedId.startsWith(FEED_URN_PREFIX)) { |
| 192 | feedId = feedId.substring(FEED_URN_PREFIX.length()); |
| 193 | } else if (feedId.startsWith(ENTRY_URN_PREFIX)) { |
| 194 | feedId = feedId.substring(ENTRY_URN_PREFIX.length()); |
| 195 | feedId = feedId.substring(0, feedId.lastIndexOf(':')); |
| 196 | } |
| 197 | return feedId; |
| 198 | } |
| 199 | |
| 200 | /** |
| 201 | * Returns the shorthand alias for a full alias uri, for example: |
no outgoing calls
no test coverage detected