CCT-WEB

From PlcWiki

Revision as of 07:52, 18 April 2012 by Mcaslava (Talk | contribs)
Jump to: navigation, search

Contents

Introduction

Tool dedicated to manage key configuration data of the Clever System (PLC).

See Talk ...

Versions

Latest version: There is no official version because application is still under development.

Features at a Glance

  • GWT application - user oriented UI
  • Two project modes: LOCK (all source files will be locked at startup) and MERGE
  • One shared project for all users
  • Computing the difference between project (application) data and original source data
  • Source data consistency analysis during import to the application project

Quick Start

Coming soon...

How-To

Where I find a build number of the application? See web.xml

Technical Info

Dependency

  • Apache Tomcat
  • CCT - command line tool
  • CleverGWT
  • Lexicon
  • Application data storage (SQLite DB)
  • Temporary directory (only for tests)
  • Directory with configuration file config.yaml
# /etc/sudoers
tomcat ALL = (root) NOPASSWD: /usr/local/plc/bin/cct *

Authorization

Server Side

Práva přiřazovaná uživateli jsou rozlišována na následující úrovni:

  • user - aktuálně přihlášený uživatel
  • method - identifikace požadované funkce rozhraní serveru
  • action - minimální požadované oprávnění (Read/Write = 2, Read = 1)
  • value - parametr funkce rozhraní určený k prověření jeho hodnoty
  • position - pozice parametru ve funkci

Funkce, které mají být zahrnuty do autorizačního procesu se anotují ve třídě RemoteService. Např.:

 @Secure(action = Secure.Action.READ_WRITE)
 public void generateDiffView(@Secure.Check String configName, AsyncCallback<String> callback);

Client Side

Not implemented yet. (Jedná se o disable/enable tlačítek GUI)

Deploy

  • See build.xml
  • web.xml - setup path where to find config.yaml <param-name>configuration</param-name>

Test

Personal tools