C# Class Aqueduct.SitecoreLib.Search.Utilities.ItemUtil

Mostra file Open project: aqueduct/Aqueduct.SitecoreLib

Public Methods

Method Description
GetIconPath ( Item item ) : string

Gets a path to an icon.

GetItem ( ID itemId, Database database ) : Item

Returns a Sitecore item.

GetItemPath ( Item item ) : string

Returns a full item path in the content tree.

GetStateId ( Item item ) : string

Returns a workflow state item ID.

GetStateItem ( Item item ) : Item

Gets a workflow state item a content item is in.

GetStateItem ( string stateId, Database database ) : Item

Gets a workflow state item.

HasExplicitDenies ( Item item ) : bool

Checks if an item has explicit security deny rules on it.

HasLayout ( Item item ) : bool

Checks if an item has a layout assigned.

IsApproved ( Item item ) : bool

Checks if item is in a final workflow state.

Method Details

GetIconPath() public static method

Gets a path to an icon.
public static GetIconPath ( Item item ) : string
item Item Sitecore item.
return string

GetItem() public static method

Returns a Sitecore item.
public static GetItem ( ID itemId, Database database ) : Item
itemId ID Item ID.
database Database Database the item is in.
return Item

GetItemPath() public static method

Returns a full item path in the content tree.
public static GetItemPath ( Item item ) : string
item Item Sitecore item.
return string

GetStateId() public static method

Returns a workflow state item ID.
public static GetStateId ( Item item ) : string
item Item Sitecore content item.
return string

GetStateItem() public static method

Gets a workflow state item a content item is in.
public static GetStateItem ( Item item ) : Item
item Item Sitecore content item.
return Item

GetStateItem() public static method

Gets a workflow state item.
public static GetStateItem ( string stateId, Database database ) : Item
stateId string Workflow state item id.
database Database Database the workflow state is in.
return Item

HasExplicitDenies() public static method

Checks if an item has explicit security deny rules on it.
public static HasExplicitDenies ( Item item ) : bool
item Item Sitecore item.
return bool

HasLayout() public static method

Checks if an item has a layout assigned.
public static HasLayout ( Item item ) : bool
item Item Sitecore item.
return bool

IsApproved() public static method

Checks if item is in a final workflow state.
public static IsApproved ( Item item ) : bool
item Item Sitecore item.
return bool