//Copyright (C) 2009 Stefan Nerlich | stefan.nerlich@hotmail.com
//
//This file is part of ARInside.
//
//    ARInside is free software: you can redistribute it and/or modify
//    it under the terms of the GNU General Public License as published by
//    the Free Software Foundation, version 2 of the License.
//
//    ARInside is distributed in the hope that it will be useful,
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//    GNU General Public License for more details.
//
//    You should have received a copy of the GNU General Public License
//    along with Foobar.  If not, see <http://www.gnu.org/licenses/>.

#pragma once
#include "DocBase.h"
#include "../output/AlTable.h"
#include "../output/ContainerTable.h"

class CDocGroupDetails :
	public CDocBase
{
public:
	CDocGroupDetails(CARGroup &arGroup);
	~CDocGroupDetails(void);

	void Documentation();
private:
	CARGroup &group;

	string GroupPermissions();
	void UserDoc(int &nResult, string title);
	void FormsDoc(int &nResult, string title);
	void AlPermissionDoc(int &nResult, string title);
	void ContainerPermissionDoc(int &nResult, string title, int containerType);
	void FieldPermissionDoc(int &nResult, string title);
	int NumAllowedFields(CARSchema& schema);

	string RoleReferences();	
};
