diff --git a/Lib/Portoa.Log4Net.dll b/Lib/Portoa.Log4Net.dll index 1223192..b406b2c 100644 Binary files a/Lib/Portoa.Log4Net.dll and b/Lib/Portoa.Log4Net.dll differ diff --git a/Lib/Portoa.NHibernate.dll b/Lib/Portoa.NHibernate.dll index 73ee06a..6c03032 100644 Binary files a/Lib/Portoa.NHibernate.dll and b/Lib/Portoa.NHibernate.dll differ diff --git a/Lib/Portoa.Web.dll b/Lib/Portoa.Web.dll index 210d0b1..56d4c9a 100644 Binary files a/Lib/Portoa.Web.dll and b/Lib/Portoa.Web.dll differ diff --git a/Lib/Portoa.Web.xml b/Lib/Portoa.Web.xml index d22c598..0dfc4a5 100644 --- a/Lib/Portoa.Web.xml +++ b/Lib/Portoa.Web.xml @@ -32,29 +32,27 @@ Executed when the user is forbidden from seeing the requested page - + - Represents a simple, consistent object to use for AJAX responses + Model binder that uses an IUnityContainer to resolve the model binder designated by + which will do the actual model binding + The model binder to resolve + - - - Gets or sets the error message that occurred. If null, it's assumed - that no error occurred. - - - - - Gets or sets any extra data the client may be expecting. This value should - not be null. - + + The container to use to resolve the model binder Model binder that uses a service provider to resolve the model binder designated by - which will do the action model binding + which will do the actual model binding The model binder to resolve + + + + The service provider to use to resolve the model binder @@ -130,7 +128,7 @@ Sets the HTTP status code on the response object before - calling base.ExecuteResult() + calling base.ExecuteResult() @@ -146,7 +144,7 @@ Gets or sets the delegate to create the error model. By default it creates - an instance of . + an instance of ErrorModel. @@ -155,10 +153,16 @@ normal means + + The system's logger + The current HttpContext + Handles global application errors by invoking the specified error controller + The exception that caused the error + The controller to use handle errors @@ -168,6 +172,35 @@ Adapted from http://blog.nathan-taylor.net/2010/06/aspnet-mvc-flags-enumeration-model.html + + + Represents an object that can create error results + + + + + + Creates an ActionResult for error actions + + The status code for the result + + + + Represents a simple, consistent object to use for AJAX responses + + + + + Gets or sets the error message that occurred. If null, it's assumed + that no error occurred. + + + + + Gets or sets any extra data the client may be expecting. This value should + not be null. + + Configures interception to occur for any subsequent container registrations @@ -181,6 +214,18 @@ AuthorizationFilter collections + + + Provides an interface for identifying the current user + + The user type + + + + Returns the user currently performing actions on the site, or null + if the user cannot be identified + + This class exists to get rid of the SessionState and TempData error. Just google it. @@ -195,8 +240,16 @@ Maps the type to the binder type - using the given service provider to resolve the binder + using the to resolve the binder + + + + + Maps the type to the binder type + using the to resolve the binder + + @@ -266,6 +319,24 @@ + + + Error result factory that returns a result suitable + for HTML views strongly typed to ErrorModel<T> + + + The user type + + + The currently logged in user + + + + Error result factory that returns a result suitable + for HTML views strongly typed to ErrorModel + + + Session store that uses the current HttpContext @@ -276,6 +347,9 @@ Controller for handling and displaying errors that aren't handled by application code + + The factory to use to create the action results + Call handler that wraps a method call in a unit of work @@ -305,6 +379,12 @@ Truncates a string to 150 characters in a pretty way, if necessary + + + Generic model for displaying errors where the currently logged in user is needed + + The user type + Generic model for displaying errors @@ -315,6 +395,11 @@ Gets or sets the exception that occurred + + + The currently logged in user, or null if no one is logged in + + Gets all model state errors as a line feed-delimited string @@ -322,10 +407,10 @@ - Creates a JSON response if an error occurred, appending all ModelState errors + Creates a JSON response if an error occurred, appending all errors to the response object - The error message to display to the user + The error message to display to the user, this value cannot be null @@ -339,21 +424,15 @@ Creates a JSON response object - The error message to display to the user + The error message to display to the user (null if no error occurred) Any extra data that needs to be passed to the client + Sets up the temporary data provider so that it won't barf with Session errors - - - - Runs an action in a transaction. If an exception is thrown during execution, the transaction - will be rolled back and the exception will be raised. - - Service that can create a transaction - The action to execute inside the transaction + @@ -375,17 +454,18 @@ Uses an IUnityContainer to create controllers - + Base for an MVC application using Unity/NHibernate + The user type - + The container associated with this application - + Handles uncaught application exceptions; default implementation uses and to @@ -393,18 +473,18 @@ The uncaught exception - + Override to perform any extra startup tasks; default implementation does nothing - + Override to configure the model binders for the application; default implementation does nothing - + Creates the configuration used for NHibernate; default implementation uses the default NHibernate configuration, and sets a custom interceptor. The configuration can be retrieved @@ -412,25 +492,25 @@ - + Registers any routes for the application; default implementation registers nothing - + Registers any applicable areas; default implementations calls AreaRegistration.RegisterAllAreas() - + Configures the controller factory; default implementation uses Unity to resolve each controller with a custom action invoker - + Performs any application-specific configuration for Unity; default implementation does nothing @@ -468,6 +548,71 @@ Reads the app config and applies the Unity configuration, if applicable + + + Model for displaying data that is paged + + The type of data to be paged + + + + Gets or sets the starting point of the records, starting from 1 (e.g. the number you Skip()'d) + + + + + Gets or sets the ending point of the records + + + + + Gets or sets the total number of records + + + + + Gets the page size (e.g. the number you Take()'d) + + + + + Gets the starting point of the next page + + + + + + Gets the ending point of the next page + + + + + + Gets the starting point of the previous page (0 is the minimum) + + + + + + Gets the ending point of the previous page (0 is the minimum) + + + + + + Gets whether or not a previous page is possible + + + + + Gets whether or not a next page is possible + + + + + Gets or sets filtered record set; Count() should be less than or equal to the page size + + Controller factory that uses a service provider to resolve controllers diff --git a/Lib/Portoa.dll b/Lib/Portoa.dll index c6990ac..b4f4e28 100644 Binary files a/Lib/Portoa.dll and b/Lib/Portoa.dll differ diff --git a/Lib/Portoa.xml b/Lib/Portoa.xml index 80fd4e6..6e79858 100644 --- a/Lib/Portoa.xml +++ b/Lib/Portoa.xml @@ -53,7 +53,7 @@ Gets whether or not the password has been set - + Determines if the entity has already been persisted @@ -74,7 +74,7 @@ - Represents a domain object that can be persisted by an + Represents a domain object that can be persisted by a repository The entity type The entity's identifier type @@ -398,6 +398,18 @@ Default password protector that does not allow null or empty passwords + + + Exposes an interface to map an entity to a DTO representation + + The DTO to map to + + + + + Returns a DTO representation of this object + + Validates that the value is greater than zero @@ -573,6 +585,17 @@ the object, its properties and its fields. + + + Converts a Unix timestamp to a + + + + + Converts a to a Unix timestamp (number of seconds since + 1970-01-01) + + Represents a service object that can start a transaction @@ -604,26 +627,10 @@ Signifies that this object should not be logged - + - Converts a Unix timestamp to a - - - - - Converts a to a Unix timestamp (number of seconds since - 1970-01-01) - - - - - Exposes an interface to map an object to a DTO representation - - The DTO to map to - - - - Returns a DTO representation of this object + Convenience class for data transfer objects that have an integral + identifier