PFItemPageContext Class |
Namespace: Packflow.Interface
public class PFItemPageContext : PFPageContext
The PFItemPageContext type exposes the following members.
Name | Description | |
---|---|---|
PFItemPageContext(HttpRequest) |
Initializes a new instance of the PFItemPageContext class.
| |
PFItemPageContext(HttpRequest, PFItem) |
Initializes a new instance of the PFItemPageContext class.
| |
PFItemPageContext(PFItem, String, PFView) |
Initializes a new instance of the PFItemPageContext class.
| |
PFItemPageContext(PFItem, String, PFItemPageContainer, PFView) |
Initializes a new instance of the PFItemPageContext class.
|
Name | Description | |
---|---|---|
Application |
Gets the current application.
(Inherited from PFContext.) | |
ApplicationContext |
Gets the current application context.
(Overrides PFPageContextApplicationContext.) | |
CanGetSiteFromRequestContext |
Gets a value indicating whether this instance can get the PFSite from the request context.
This avoids to load the site multiple times, e.g. from the controller factory and the binder.
But in that case, creating a new context from another identity will not return the PFSite with
the expected authentication. To be enabled carefully for optimization purpose.
Default value: False.
(Inherited from PFPageContext.) | |
CanSave |
Gets a value indicating whether the current user can save the current item.
In new mode, checks that at least one application context is available. In other cases, checks the update permissions and the lock. | |
Container |
Gets the type of container hosting the form being generated.
| |
ContentType |
Gets the current content-type.
(Inherited from PFContext.) | |
CurrentUserContextFilter |
Gets the id of the application context filtered by the current user.
If there is no filter, -1 is returned.
| |
DateObjectCreation |
Gets the date of the creation of this object in memory.
(Inherited from PFManagedObject.) | |
ForceReadOnly |
Gets or sets a value indicating whether the form should be in read-only
even if all conditions are met for an edition.
| |
IsAdmin |
Gets a value indicating whether the user has the owner privilege on the current item.
Will also return true if the user is member of the Site Administrators. | |
IsContainerInView |
Gets a value indicating whether the container hosting the form is in a View context.
It currently only concerns rows of gridviews. If True, the View property should be initialized. | |
Item |
Gets the current item.
(Inherited from PFContext.) | |
ItemLocks |
Gets the locks of the current item.
(Inherited from PFContext.) | |
LockActive |
Gets a value indicating whether a PFObjectLock is active for the current user on the current item.
| |
Logger |
Gets the logger, used to log any useful warning, error or information in the database.
(Inherited from PFManagedObject.) | |
LogIdentification |
Gets a technical text representing this object.
(Inherited from PFManagedObject.) | |
Mode |
Gets the display mode of the form.
| |
ModelForm |
Gets the current Form definition from the current application's model.
| |
NewMode |
Gets a value indicating whether a new item is being created and the form should be rendered accordingly.
| |
PossibleApplicationContexts |
Gets the possible application contexts.
Starts with the list of contexts in which the current user can create items of the current content-type. If a context is forced by the request parameter PFInterfaceConstants.Context_ForcedApplicationContext, only this one is returned. If a parent context is available, only this one is returned. Note: a forms restriction (from the application settings) may filter the output. | |
Site |
Gets the current site.
(Inherited from PFContext.) | |
SourceParentItem |
Gets the parent(source) item. Only available during the creation from another item (e.g. form gridviews).
| |
SourceParentItemLocalContextId |
Gets the parent(source) item application context.
The context is translated if the parent item is in another application.
Only available during the creation from another item (e.g. from a gridview).
| |
Theme |
Gets the current theme.
(Inherited from PFPageContext.) | |
Translations |
Gets the contextual translations provided by Packflow.
(Inherited from PFPageContext.) | |
UnlimitedModification |
Gets a value indicating whether the unlimited modification mode is active.
Returns false if the current user is not an admin, even if the mode is active . | |
Url |
Gets or sets the page URL.
(Inherited from PFPageContext.) | |
User |
Gets the current user.
(Inherited from PFContext.) | |
UserLock |
Gets the current user lock on the current item, if any.
| |
View |
Gets the current view.
(Inherited from PFContext.) |
Name | Description | |
---|---|---|
ApplyFormsRestrictions |
Checks if the form should be restricted by the application settings.
If it is read-only restricted, the ForceReadOnly flag is raised. If forms are disabled by application settings, an access denied exception is thrown. | |
InitializeLogger |
Gets a new instance of a PFLogger.
(Inherited from PFContext.) | |
ResetFocus |
Forces the reset of the scrolling position.
Next rendered view will display with scroll set at 0.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
TryGetView(HttpRequest) |
Tries to get the contextual PFView of the specified request.
(Inherited from PFPageContext.) | |
TryGetView(HttpRequest, Boolean) |
Tries to get the contextual PFView of the specified request.
(Inherited from PFPageContext.) |
Name | Description | |
---|---|---|
AsT |
Casts an object to another type. Returns default(T) if the object is null.
(Defined by Utils_Other.) | |
EqualsAll |
Checks that this object is equal to every object in parameters.
(Defined by Utils_Other.) | |
EqualsAny |
Checks that this object is equal to at least one of the parameters.
(Defined by Utils_Other.) | |
GetString |
Converts an object to String using ToString() method, else returns String.Empty.
(Defined by Utils_Other.) | |
IsGenericList | Overloaded.
Checks if this object is a System.Collections.Generic.List.
(Defined by Utils_Linq.) | |
IsGenericList(Type) | Overloaded.
Checks if this object is a System.Collections.Generic.List using type as T.
(Defined by Utils_Linq.) | |
Serialize | Overloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.) | |
Serialize(String) | Overloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.) | |
SerializeJson | Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.) | |
SerializeJson(ListType) | Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.) | |
SerializeJson(DataContractJsonSerializerSettings) | Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.) |