2019-06-10 12:17:45 +00:00
|
|
|
|
using System;
|
2019-07-02 10:47:24 +00:00
|
|
|
|
using System.Linq;
|
2020-08-27 14:01:37 +00:00
|
|
|
|
|
2019-08-13 13:05:36 +00:00
|
|
|
|
using ASC.People.Resources;
|
2019-06-10 12:17:45 +00:00
|
|
|
|
using ASC.Web.Core;
|
|
|
|
|
|
|
|
|
|
namespace ASC.People
|
|
|
|
|
{
|
|
|
|
|
public class PeopleProduct : Product
|
|
|
|
|
{
|
|
|
|
|
internal const string ProductPath = "/products/people/";
|
|
|
|
|
|
|
|
|
|
private ProductContext _context;
|
|
|
|
|
|
|
|
|
|
public static Guid ID
|
|
|
|
|
{
|
|
|
|
|
get { return new Guid("{F4D98AFD-D336-4332-8778-3C6945C81EA0}"); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override bool Visible { get { return true; } }
|
|
|
|
|
|
|
|
|
|
public override ProductContext Context
|
|
|
|
|
{
|
|
|
|
|
get { return _context; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override string Name
|
|
|
|
|
{
|
2019-07-02 10:47:24 +00:00
|
|
|
|
get { return PeopleResource.ProductName; }
|
2019-06-10 12:17:45 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override string Description
|
|
|
|
|
{
|
2019-07-02 10:47:24 +00:00
|
|
|
|
get { return PeopleResource.ProductDescription; }
|
2019-06-10 12:17:45 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override string ExtendedDescription
|
|
|
|
|
{
|
2019-07-02 10:47:24 +00:00
|
|
|
|
get { return PeopleResource.ProductDescription; }
|
2019-06-10 12:17:45 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override Guid ProductID
|
|
|
|
|
{
|
|
|
|
|
get { return ID; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override string StartURL
|
|
|
|
|
{
|
|
|
|
|
get { return ProductPath; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override string HelpURL
|
|
|
|
|
{
|
|
|
|
|
get { return string.Concat(ProductPath, "help.aspx"); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override string ProductClassName
|
|
|
|
|
{
|
|
|
|
|
get { return "people"; }
|
|
|
|
|
}
|
|
|
|
|
|
2019-07-05 13:58:04 +00:00
|
|
|
|
public override string ApiURL
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return "api/2.0/people/info.json";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2021-03-21 21:34:21 +00:00
|
|
|
|
public override bool IsPrimary { get => false; }
|
2021-01-25 14:37:26 +00:00
|
|
|
|
|
2019-06-10 12:17:45 +00:00
|
|
|
|
public override void Init()
|
|
|
|
|
{
|
|
|
|
|
_context = new ProductContext
|
|
|
|
|
{
|
|
|
|
|
DisabledIconFileName = "product_disabled_logo.png",
|
2021-03-21 21:34:21 +00:00
|
|
|
|
IconFileName = "images/people.menu.svg",
|
2019-08-05 15:24:34 +00:00
|
|
|
|
LargeIconFileName = "images/people.svg",
|
2019-06-10 12:17:45 +00:00
|
|
|
|
DefaultSortOrder = 50,
|
2019-07-02 10:47:24 +00:00
|
|
|
|
AdminOpportunities = () => PeopleResource.ProductAdminOpportunities.Split('|').ToList(),
|
|
|
|
|
UserOpportunities = () => PeopleResource.ProductUserOpportunities.Split('|').ToList()
|
2019-06-10 12:17:45 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//SearchHandlerManager.Registry(new SearchHandler());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|