|
Nuxeo Enterprise Platform 5.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuxeo.runtime.model.DefaultComponent
org.nuxeo.runtime.api.login.LoginComponent
public class LoginComponent
| Nested Class Summary | |
|---|---|
static class |
LoginComponent.SystemID
|
| Field Summary | |
|---|---|
static String |
CLIENT_LOGIN
|
static ComponentName |
NAME
|
static String |
SYSTEM_LOGIN
|
static String |
SYSTEM_USERNAME
|
| Constructor Summary | |
|---|---|
LoginComponent()
|
|
| Method Summary | ||
|---|---|---|
void |
activate(ComponentContext context)
Activates the component. |
|
void |
addSecurityDomain(SecurityDomain domain)
|
|
void |
deactivate(ComponentContext context)
Deactivates the component. |
|
|
getAdapter(Class<T> adapter)
Returns an object which is an instance of the given class associated with this object. |
|
AppConfigurationEntry[] |
getAppConfigurationEntry(String name)
|
|
SecurityDomain |
getSecurityDomain(String name)
|
|
SecurityDomain[] |
getSecurityDomains()
|
|
boolean |
isSystemId(Principal principal)
|
|
static boolean |
isSystemLogin(Object principal)
|
|
LoginContext |
login()
System login, using a private principal that has all privileges. |
|
LoginContext |
login(CallbackHandler cbHandler)
Client login using a custom callback handler to retrieve login info. |
|
LoginContext |
login(String username,
Object credentials)
Client login using the given username and password. |
|
LoginContext |
loginAs(String username)
System login, using a private principal that has all privileges. |
|
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor)
|
|
void |
removeSecurityDomain(String name)
|
|
void |
removeSecurityDomains()
|
|
void |
unregisterContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor)
|
|
| Methods inherited from class org.nuxeo.runtime.model.DefaultComponent |
|---|
applicationStarted, registerExtension, unregisterExtension |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final ComponentName NAME
public static final String SYSTEM_LOGIN
public static final String CLIENT_LOGIN
public static final String SYSTEM_USERNAME
| Constructor Detail |
|---|
public LoginComponent()
| Method Detail |
|---|
public void activate(ComponentContext context)
throws Exception
ComponentThis method is called by the runtime when a component is activated.
activate in interface Componentactivate in class DefaultComponentcontext - the runtime context
Exception - if an error occurs during activation
public void deactivate(ComponentContext context)
throws Exception
ComponentThis method is called by the runtime when a component is deactivated.
deactivate in interface Componentdeactivate in class DefaultComponentcontext - the runtime context
Exception - if an error occurs during activation
public void registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor)
registerContribution in class DefaultComponent
public void unregisterContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor)
unregisterContribution in class DefaultComponentpublic AppConfigurationEntry[] getAppConfigurationEntry(String name)
public <T> T getAdapter(Class<T> adapter)
Adaptablenull if
no such object can be found.
getAdapter in interface AdaptablegetAdapter in class DefaultComponentadapter - the adapter class to look up
null if this object does not
have an adapter for the given classpublic SecurityDomain getSecurityDomain(String name)
getSecurityDomain in interface LoginServicepublic void addSecurityDomain(SecurityDomain domain)
addSecurityDomain in interface LoginServicepublic void removeSecurityDomain(String name)
removeSecurityDomain in interface LoginServicepublic SecurityDomain[] getSecurityDomains()
getSecurityDomains in interface LoginServicepublic void removeSecurityDomains()
removeSecurityDomains in interface LoginService
public LoginContext login()
throws LoginException
LoginService
The method requires the caller to have the SystemLoginPermission
permission.
login in interface LoginServiceLoginException
public LoginContext loginAs(String username)
throws LoginException
LoginService
The method requires the caller to have the SystemLoginPermission
permission.
loginAs in interface LoginServiceusername - the username that originated the system login
LoginException
public LoginContext login(String username,
Object credentials)
throws LoginException
LoginService
login in interface LoginServiceLoginException
public LoginContext login(CallbackHandler cbHandler)
throws LoginException
LoginService
login in interface LoginServicecbHandler - the callback handler to use to retrieve the login info
LoginExceptionpublic boolean isSystemId(Principal principal)
isSystemId in interface LoginServicepublic static boolean isSystemLogin(Object principal)
|
Nuxeo Enterprise Platform 5.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||