using adas_core.Domain.Enums;
namespace adas_core.Domain;
///
/// Represents a set of permissions, providing functionality related to access control and authorization.
///
public class Permissions
{
public SourcePermissions Write { get; set; } = new()
{
Actions = [ActionsEnum.Actions.View, ActionsEnum.Actions.Write]
};
public SourcePermissions Read { get; set; } = new()
{
Actions = [ActionsEnum.Actions.View]
};
}
///
/// Represents a set of permissions associated with a source, defining the access rights or constraints applicable to it.
///
///
/// This class encapsulates permission-related information for a given source context.
///
public class SourcePermissions
{
public List Actions { get; set; } = [];
}