Package org.jenkinsci.plugins.saml.user
Class LoginDetailsProperty
java.lang.Object
hudson.model.UserProperty
org.jenkinsci.plugins.saml.user.LoginDetailsProperty
- All Implemented Interfaces:
ExtensionPoint
,Describable<UserProperty>
,ReconfigurableDescribable<UserProperty>
Store details about create and login processes
- Author:
- Kuisathaverat
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
static class
Listen to the login success/failure event to persistLoginDetailsProperty
s properly.Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class hudson.model.UserProperty
user
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LoginDetailsProperty
static void
long
long
long
reconfigure
(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject form) void
setCreateTimestamp
(long createTimestamp) void
setLastLoginTimestamp
(long lastLoginTimestamp) void
setLoginCount
(long loginCount) void
update()
Methods inherited from class hudson.model.UserProperty
all, allByCategoryClass, getDescriptor, reconfigure, setUser
-
Constructor Details
-
LoginDetailsProperty
@DataBoundConstructor public LoginDetailsProperty()
-
-
Method Details
-
currentUserLoginDetails
-
currentUserSetLoginDetails
public static void currentUserSetLoginDetails() -
update
public void update() -
getCreateTimestamp
public long getCreateTimestamp() -
getLastLoginTimestamp
public long getLastLoginTimestamp() -
getCreateDate
-
getLastLoginDate
-
getLoginCount
public long getLoginCount() -
setCreateTimestamp
public void setCreateTimestamp(long createTimestamp) -
setLastLoginTimestamp
public void setLastLoginTimestamp(long lastLoginTimestamp) -
setLoginCount
public void setLoginCount(long loginCount) -
reconfigure
public UserProperty reconfigure(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject form) - Specified by:
reconfigure
in interfaceReconfigurableDescribable<UserProperty>
- Overrides:
reconfigure
in classUserProperty
-