MCPcopy Create free account
hub / github.com/TrsstProject/trsst / toFeedIdString

Method toFeedIdString

src/main/java/com/trsst/Common.java:189–198  ·  view source on GitHub ↗
(Object feedOrEntryUrn)

Source from the content-addressed store, hash-verified

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:

Callers 7

doPullMethod · 0.95
postMethod · 0.95
ingestFeedMethod · 0.95
ingestAggregateFeedMethod · 0.95
pushRawPostIfNeededMethod · 0.95
pushRawPostMethod · 0.95
pushToServiceMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected