IRestorableManageableApplicationType
is defined in the Telligent.Evolution.Extensibility.Content.Version2
namespace of Telligent.Evolution.Platform.dll
Definition
interface IRestorableManageableApplicationType : IApplicationType, IManageableApplicationType, IPlugin, IQueryableApplicationType { bool CanRestore(int userId, Guid applicationId); IList<IApplication> ListDeleted(int userId, Guid containerTypeId, Guid containerId); void Restore(int userId, Guid applicationId); IList<IApplication> SearchDeleted(int userId, Guid containerTypeId, Guid containerId, string searchText); }
Methods
bool CanRestore(int userId, Guid applicationId);
Returns true if the provided user can restore the provided deleted application.
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
userId | int | User Id | Required | ||
applicationId | Guid | Application Id | Required |
Return Type
bool
IList<IApplication> ListDeleted(int userId, Guid containerTypeId, Guid containerId);
Lists deleted applications (enabled or disabled) within a container. This should return a maximum of 50 name-ordered applications.
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
userId | int | User Id | Required | ||
containerTypeId | Guid | Container Type Id | Required | ||
containerId | Guid | Container Id | Required |
Return Type
IList<IApplication>
void Restore(int userId, Guid applicationId);
Restores a deleted application. Any errors should be returned via throwing an IUserRenderableException.
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
userId | int | User Id | Required | ||
applicationId | Guid | Application Id | Required |
IList<IApplication> SearchDeleted(int userId, Guid containerTypeId, Guid containerId, string searchText);
Searches deleted applications (enabled or disabled) within a container returning a maximum of 50 name-ordered applications.
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
userId | int | User Id | Required | ||
containerTypeId | Guid | Container Type Id | Required | ||
containerId | Guid | Container Id | Required | ||
searchText | string | Search Text | Required |
Return Type
IList<IApplication>