Class DeputyManagementStorageService
- java.lang.Object
-
- org.nuxeo.ecm.platform.login.deputy.management.DeputyManagementStorageService
-
- All Implemented Interfaces:
DeputyManager
public class DeputyManagementStorageService extends Object implements DeputyManager
-
-
Constructor Summary
Constructors Constructor Description DeputyManagementStorageService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMandate(DocumentModel entry)
List<String>
getAvalaibleDeputyIds(String userName)
List<DocumentModel>
getAvalaibleMandates(String userName)
String
getDeputySchemaName()
List<String>
getPossiblesAlternateLogins(String userName)
protected String
id(String username, String deputy)
protected String
id(DocumentModel entry)
protected void
initPersistentService()
protected DocumentModel
newEntry(String username, String deputy)
DocumentModel
newMandate(String username, String deputy)
DocumentModel
newMandate(String username, String deputy, Calendar start, Calendar end)
void
removeMandate(String username, String deputy)
void
resetDeputies()
-
-
-
Method Detail
-
getDeputySchemaName
public String getDeputySchemaName()
- Specified by:
getDeputySchemaName
in interfaceDeputyManager
-
initPersistentService
protected void initPersistentService()
-
resetDeputies
public void resetDeputies()
-
getPossiblesAlternateLogins
public List<String> getPossiblesAlternateLogins(String userName)
- Specified by:
getPossiblesAlternateLogins
in interfaceDeputyManager
-
getAvalaibleDeputyIds
public List<String> getAvalaibleDeputyIds(String userName)
- Specified by:
getAvalaibleDeputyIds
in interfaceDeputyManager
-
getAvalaibleMandates
public List<DocumentModel> getAvalaibleMandates(String userName)
- Specified by:
getAvalaibleMandates
in interfaceDeputyManager
-
newMandate
public DocumentModel newMandate(String username, String deputy)
- Specified by:
newMandate
in interfaceDeputyManager
-
newEntry
protected DocumentModel newEntry(String username, String deputy)
-
newMandate
public DocumentModel newMandate(String username, String deputy, Calendar start, Calendar end)
- Specified by:
newMandate
in interfaceDeputyManager
-
addMandate
public void addMandate(DocumentModel entry)
- Specified by:
addMandate
in interfaceDeputyManager
-
removeMandate
public void removeMandate(String username, String deputy)
- Specified by:
removeMandate
in interfaceDeputyManager
-
id
protected String id(DocumentModel entry)
-
-