This repository has been archived by the owner on Feb 8, 2019. It is now read-only.
/
UpdateTechniqueLibrary.scala
58 lines (52 loc) · 2.24 KB
/
UpdateTechniqueLibrary.scala
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*
*************************************************************************************
* Copyright 2011 Normation SAS
*************************************************************************************
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* In accordance with the terms of section 7 (7. Additional Terms.) of
* the GNU Affero GPL v3, the copyright holders add the following
* Additional permissions:
* Notwithstanding to the terms of section 5 (5. Conveying Modified Source
* Versions) and 6 (6. Conveying Non-Source Forms.) of the GNU Affero GPL v3
* licence, when you create a Related Module, this Related Module is
* not considered as a part of the work and may be distributed under the
* license agreement of your choice.
* A "Related Module" means a set of sources files including their
* documentation that, without modification of the Source Code, enables
* supplementary functions or services in addition to those offered by
* the Software.
*
* This program 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/agpl.html>.
*
*************************************************************************************
*/
package com.normation.cfclerk.services
import net.liftweb.common.Box
import com.normation.cfclerk.domain.TechniqueId
import com.normation.eventlog.EventActor
/**
* A trait that allows to update the reference policy
* template library.
*/
trait UpdateTechniqueLibrary {
/**
* Update the lib, and return the list of
* actually updated policy templates.
*/
def update(actor:EventActor, reason: Option[String]) : Box[Seq[TechniqueId]]
/**
* Allows callbacks to be called on a Policy Template library update.
*/
def registerCallback(callback:TechniquesLibraryUpdateNotification) : Unit
}