<gh_stars>1-10
/*
 * Copyright 2013 <NAME>.
 *
 * 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.
 */
package es.logongas.ix3.security.model;

import es.logongas.ix3.core.annotations.ValuesList;

/**
 * Relación entre los "Identity" que están incluidos en un grupo
 * @author <NAME>
 */
public class GroupMember {
    private int idGroupMember;
    @ValuesList
    private Group group;
    @ValuesList
    private Identity identity;
    private Integer priority;

    public GroupMember() {
    }

    public GroupMember(int idGroupMember, Group group, Identity identity, Integer priority) {
        this.idGroupMember = idGroupMember;
        this.group = group;
        this.identity = identity;
        this.priority = priority;
    }

    /**
     * @return the idGroupMember
     */
    public int getIdGroupMember() {
        return idGroupMember;
    }

    /**
     * @param idGroupMember the idGroupMember to set
     */
    public void setIdGroupMember(int idGroupMember) {
        this.idGroupMember = idGroupMember;
    }

    /**
     * @return the group
     */
    public Group getGroup() {
        return group;
    }

    /**
     * @param group the group to set
     */
    public void setGroup(Group group) {
        this.group = group;
    }

    /**
     * @return the identity
     */
    public Identity getIdentity() {
        return identity;
    }

    /**
     * @param identity the identity to set
     */
    public void setIdentity(Identity identity) {
        this.identity = identity;
    }

    /**
     * @return the priority
     */
    public Integer getPriority() {
        return priority;
    }

    /**
     * @param priority the priority to set
     */
    public void setPriority(Integer priority) {
        this.priority = priority;
    }
}
