ScimMeta.java 3.0 KB
Newer Older
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
/*
 * Copyright [2020] [MaxKey of copyright http://www.maxkey.top]
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *     http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
 

M
webapi  
MaxKey 已提交
18
package org.maxkey.webapi.identity.scim.resources;
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
19 20 21 22 23

import java.io.Serializable;
import java.util.Date;
import java.util.Set;

MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
24 25 26 27 28
import org.maxkey.json.*;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

M
MaxKey 已提交
29
public class ScimMeta implements Serializable {
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
30 31 32 33 34 35 36
    
    /**
     * 
     */
    private static final long serialVersionUID = -2244662962968933591L;
    
    private  String resourceType;
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
37 38 39
    
    @JsonSerialize(using = JsonISODateSerializer.class)
    @JsonDeserialize(using = JsonISODateDeserializer.class)
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
40
    private  Date created;
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
41 42 43 44
    
    @JsonSerialize(using = JsonISODateSerializer.class)
    @JsonDeserialize(using = JsonISODateDeserializer.class)
    
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
45
    private  Date lastModified;
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
46
    
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
47
    private  String location;
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
48
    
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
49
    private  String version;
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
50
    
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
    private  Set<String> attributes;
    
    
    public Date getCreated() {
        return created;
    }
    public void setCreated(Date created) {
        this.created = created;
    }
    public Date getLastModified() {
        return lastModified;
    }
    public void setLastModified(Date lastModified) {
        this.lastModified = lastModified;
    }
    public String getLocation() {
        return location;
    }
    public void setLocation(String location) {
        this.location = location;
    }
    public String getVersion() {
        return version;
    }
    public void setVersion(String version) {
        this.version = version;
    }
    public Set<String> getAttributes() {
        return attributes;
    }
    public void setAttributes(Set<String> attributes) {
        this.attributes = attributes;
    }
    public String getResourceType() {
        return resourceType;
    }
    public void setResourceType(String resourceType) {
        this.resourceType = resourceType;
    }
M
MaxKey 已提交
90
    public ScimMeta() {
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
91 92

    }
M
MaxKey 已提交
93 94 95 96 97 98 99
    
    public ScimMeta(String resourceType) {
    	this.resourceType 	= 	resourceType;
    	this.version 		= 	"1.0";
    }
    
    public ScimMeta(String resourceType, Date created, Date lastModified, String location, String version,
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
100 101 102 103 104 105 106 107 108 109 110 111
            Set<String> attributes) {
        super();
        this.resourceType = resourceType;
        this.created = created;
        this.lastModified = lastModified;
        this.location = location;
        this.version = version;
        this.attributes = attributes;
    }
    
    
}