com.basecmp.core.persistence.util
Class NavigationHelper

java.lang.Object
  extended byAbstractHelper
      extended bycom.basecmp.core.persistence.util.NavigationHelper

public class NavigationHelper
extends AbstractHelper

See Also:
Serialized Form

Method Summary
static boolean cidExists(java.lang.Long cid)
           
static java.lang.Long findNavigationEntryId(java.lang.Long assetId)
          Finds the first found linked page (naviagtion-entriy) which is linked directly to the given asset-id.
static java.util.List findNavigationEntryIds(java.lang.Long assetId)
          Finds all linked pages (naviagtion-entries) which are linked directly to the given asset-id.
static java.util.List findNonNavigationEntryIds(java.lang.Long assetId)
          Finds all linked non-page-assets (navigation-entries and page-items) which are linked directly to the given asset-id.
static java.util.List findNonNavigationEntryIdsForInlineRelations(java.lang.Long assetId)
          Finds all linked page-items which are linked directly to the given asset-id.
static java.util.List getChildCidsForCid(java.lang.Long cid)
           
static java.lang.Long getCidForRequestPath(java.lang.String requestPath)
           
static java.lang.Long getCidForSlashUrl(java.lang.String slashUrl)
           
static java.lang.Long getParentCidForCid(java.lang.Long cid)
           
static java.lang.Long getParentCidForSlashUrl(java.lang.String slashUrl)
           
static java.util.List getPath(java.lang.Long cid)
           
static java.util.List getPathCids(java.lang.Long cid)
           
static java.lang.String getRequestPath(java.lang.Long cid)
           
static java.util.List getVisibleChildCidsForCid(java.lang.Long cid)
           
static boolean isVisible(java.lang.Long cid)
           
protected  void load()
           
static void move(long cid, long newParentCid, int order)
           
 void processEvent(java.util.EventObject event)
           
static boolean slashUrlExists(java.lang.String slashUrl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

cidExists

public static boolean cidExists(java.lang.Long cid)

findNavigationEntryId

public static java.lang.Long findNavigationEntryId(java.lang.Long assetId)
Finds the first found linked page (naviagtion-entriy) which is linked directly to the given asset-id. If no page is linked to the given asset-id or anything goes wrong, null is being returned. Convenience-method! Calls internally findNavigationEntryIds(int) and delivers index 0 of returned array.


findNavigationEntryIds

public static java.util.List findNavigationEntryIds(java.lang.Long assetId)
Finds all linked pages (naviagtion-entries) which are linked directly to the given asset-id. If no page is linked to the given asset-id or anything goes wrong, an empty array is being returned.


findNonNavigationEntryIds

public static java.util.List findNonNavigationEntryIds(java.lang.Long assetId)
Finds all linked non-page-assets (navigation-entries and page-items) which are linked directly to the given asset-id. If no basic-asset is linked to the given asset-id or anything goes wrong, an empty array is being returned.


findNonNavigationEntryIdsForInlineRelations

public static java.util.List findNonNavigationEntryIdsForInlineRelations(java.lang.Long assetId)
Finds all linked page-items which are linked directly to the given asset-id. If no basic-asset is linked to the given asset-id or anything goes wrong, an empty array is being returned.


getChildCidsForCid

public static java.util.List getChildCidsForCid(java.lang.Long cid)

getCidForRequestPath

public static java.lang.Long getCidForRequestPath(java.lang.String requestPath)

getCidForSlashUrl

public static java.lang.Long getCidForSlashUrl(java.lang.String slashUrl)

getParentCidForCid

public static java.lang.Long getParentCidForCid(java.lang.Long cid)

getParentCidForSlashUrl

public static java.lang.Long getParentCidForSlashUrl(java.lang.String slashUrl)

getPath

public static java.util.List getPath(java.lang.Long cid)

getPathCids

public static java.util.List getPathCids(java.lang.Long cid)

getRequestPath

public static java.lang.String getRequestPath(java.lang.Long cid)

getVisibleChildCidsForCid

public static java.util.List getVisibleChildCidsForCid(java.lang.Long cid)

isVisible

public static boolean isVisible(java.lang.Long cid)

load

protected void load()

move

public static void move(long cid,
                        long newParentCid,
                        int order)

processEvent

public void processEvent(java.util.EventObject event)

slashUrlExists

public static boolean slashUrlExists(java.lang.String slashUrl)


Copyright © 2004 by basecmp® - Professional Web Solutions