Class PackageController
Inheritance
PackageController
Assembly: DotNetNuke.dll
Syntax
public class PackageController : ServiceLocator<IPackageController, PackageController>, IPackageController
Constructors
PackageController()
Declaration
public PackageController()
Methods
AddPackage(PackageInfo, bool)
Declaration
[Obsolete("Deprecated in DotNetNuke 7.2.0. Replaced by SaveExtensionPackage(PackageInfo package). Scheduled for removal in v10.0.0.")]
public static int AddPackage(PackageInfo package, bool includeDetail)
Parameters
Returns
CanDeletePackage(PackageInfo, PortalSettings)
Declaration
public static bool CanDeletePackage(PackageInfo package, PortalSettings portalSettings)
Parameters
Returns
DeleteExtensionPackage(PackageInfo)
Declaration
public void DeleteExtensionPackage(PackageInfo package)
Parameters
DeletePackage(PackageInfo)
Declaration
[Obsolete("Deprecated in DotNetNuke 7.2.0. Replaced by DeleteExtensionPackage(PackageInfo package). Scheduled for removal in v10.0.0.")]
public static void DeletePackage(PackageInfo package)
Parameters
DeletePackage(int)
Declaration
[Obsolete("Deprecated in DotNetNuke 7.2.0. Replaced by DeleteExtensionPackage(PackageInfo package). Scheduled for removal in v10.0.0.")]
public static void DeletePackage(int packageID)
Parameters
Type |
Name |
Description |
int |
packageID |
|
GetExtensionPackage(int, Func<PackageInfo, bool>)
Declaration
public PackageInfo GetExtensionPackage(int portalId, Func<PackageInfo, bool> predicate)
Parameters
Returns
GetExtensionPackage(int, Func<PackageInfo, bool>, bool)
Declaration
public PackageInfo GetExtensionPackage(int portalId, Func<PackageInfo, bool> predicate, bool useCopy)
Parameters
Returns
GetExtensionPackageType(Func<PackageType, bool>)
Declaration
public PackageType GetExtensionPackageType(Func<PackageType, bool> predicate)
Parameters
Returns
GetExtensionPackageTypes()
Declaration
public IList<PackageType> GetExtensionPackageTypes()
Returns
GetExtensionPackages(int)
Declaration
public IList<PackageInfo> GetExtensionPackages(int portalId)
Parameters
Type |
Name |
Description |
int |
portalId |
|
Returns
GetExtensionPackages(int, Func<PackageInfo, bool>)
Declaration
public IList<PackageInfo> GetExtensionPackages(int portalId, Func<PackageInfo, bool> predicate)
Parameters
Returns
GetFactory()
Declaration
protected override Func<IPackageController> GetFactory()
Returns
Overrides
GetModulePackagesInUse(int, bool)
Declaration
public static IDictionary<int, PackageInfo> GetModulePackagesInUse(int portalID, bool forHost)
Parameters
Type |
Name |
Description |
int |
portalID |
|
bool |
forHost |
|
Returns
GetPackage(int)
Declaration
[Obsolete("Deprecated in DotNetNuke 7.2.0. Replaced by GetExtensionPackage(int portalId, Func<PackageInfo, bool> predicate). Scheduled for removal in v10.0.0.")]
public static PackageInfo GetPackage(int packageID)
Parameters
Type |
Name |
Description |
int |
packageID |
|
Returns
GetPackage(int, bool)
Declaration
[Obsolete("Deprecated in DotNetNuke 7.2.0. Replaced by GetExtensionPackage(int portalId, Func<PackageInfo, bool> predicate). Scheduled for removal in v10.0.0.")]
public static PackageInfo GetPackage(int packageID, bool ignoreCache)
Parameters
Type |
Name |
Description |
int |
packageID |
|
bool |
ignoreCache |
|
Returns
GetPackageByName(int, string)
Declaration
[Obsolete("Deprecated in DotNetNuke 7.2.0. Replaced by GetExtensionPackage(int portalId, Func<PackageInfo, bool> predicate). Scheduled for removal in v10.0.0.")]
public static PackageInfo GetPackageByName(int portalId, string name)
Parameters
Type |
Name |
Description |
int |
portalId |
|
string |
name |
|
Returns
GetPackageByName(string)
Declaration
[Obsolete("Deprecated in DotNetNuke 7.2.0. Replaced by GetExtensionPackage(int portalId, Func<PackageInfo, bool> predicate). Scheduled for removal in v10.0.0.")]
public static PackageInfo GetPackageByName(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
Returns
GetPackageDependencies(Func<PackageDependencyInfo, bool>)
Declaration
public IList<PackageDependencyInfo> GetPackageDependencies(Func<PackageDependencyInfo, bool> predicate)
Parameters
Returns
GetPackageType(string)
Declaration
[Obsolete("Deprecated in DotNetNuke 7.2.0. Replaced by GetExtensionPackageType(Func<PackageType, bool> predicate). Scheduled for removal in v10.0.0.")]
public static PackageType GetPackageType(string type)
Parameters
Type |
Name |
Description |
string |
type |
|
Returns
GetPackageTypes()
Declaration
[Obsolete("Deprecated in DotNetNuke 7.2.0. Replaced by GetExtensionPackageTypes(). Scheduled for removal in v10.0.0.")]
public static List<PackageType> GetPackageTypes()
Returns
GetPackages()
Declaration
[Obsolete("Deprecated in DotNetNuke 7.2.0. Replaced by GetExtensionPackages(int portalId, Func<PackageInfo, bool> predicate). Scheduled for removal in v10.0.0.")]
public static List<PackageInfo> GetPackages()
Returns
GetPackages(int)
Declaration
[Obsolete("Deprecated in DotNetNuke 7.2.0. Replaced by GetExtensionPackages(int portalId, Func<PackageInfo, bool> predicate). Scheduled for removal in v10.0.0.")]
public static List<PackageInfo> GetPackages(int portalId)
Parameters
Type |
Name |
Description |
int |
portalId |
|
Returns
GetPackagesByType(int, string)
Declaration
[Obsolete("Deprecated in DotNetNuke 7.2.0. Replaced by GetExtensionPackages(int portalId, Func<PackageInfo, bool> predicate). Scheduled for removal in v10.0.0.")]
public static List<PackageInfo> GetPackagesByType(int portalId, string type)
Parameters
Type |
Name |
Description |
int |
portalId |
|
string |
type |
|
Returns
GetPackagesByType(string)
Declaration
[Obsolete("Deprecated in DotNetNuke 7.2.0. Replaced by GetExtensionPackages(int portalId, Func<PackageInfo, bool> predicate). Scheduled for removal in v10.0.0.")]
public static List<PackageInfo> GetPackagesByType(string type)
Parameters
Type |
Name |
Description |
string |
type |
|
Returns
ParsePackage(string, string, Dictionary<string, PackageInfo>, List<string>)
Declaration
public static void ParsePackage(string file, string installPath, Dictionary<string, PackageInfo> packages, List<string> invalidPackages)
Parameters
SaveExtensionPackage(PackageInfo)
Declaration
public void SaveExtensionPackage(PackageInfo package)
Parameters
SavePackage(PackageInfo)
Declaration
[Obsolete("Deprecated in DotNetNuke 7.2.0. Replaced by SaveExtensionPackage(PackageInfo package). Scheduled for removal in v10.0.0.")]
public static void SavePackage(PackageInfo package)
Parameters
UpdatePackage(PackageInfo)
Declaration
[Obsolete("Deprecated in DotNetNuke 7.2.0. Replaced by SaveExtensionPackage(PackageInfo package). Scheduled for removal in v10.0.0.")]
public static void UpdatePackage(PackageInfo package)
Parameters
Implements
Extension Methods