001package orgrdfs.sioc.ns;
002
003import org.openimaj.rdf.owl2java.Something;
004import org.openimaj.rdf.serialize.Predicate;
005
006import org.openimaj.rdf.serialize.RDFType;
007
008import java.util.ArrayList;
009import java.util.List;
010
011/**
012 * A set of UserAccounts whose owners have a common purpose or interest. Can be
013 * used for access control purposes.
014 */
015@RDFType("http://rdfs.org/sioc/ns#Usergroup")
016public class UsergroupImpl extends Something implements Usergroup
017{
018
019        /** A UserAccount that is a member of this Usergroup. */
020        @Predicate("http://rdfs.org/sioc/ns#has_member")
021        public List<orgrdfs.sioc.ns.UserAccount> has_member = new ArrayList<orgrdfs.sioc.ns.UserAccount>();
022
023
024        /** A Space that the Usergroup has access to. */
025        @Predicate("http://rdfs.org/sioc/ns#usergroup_of")
026        public List<orgrdfs.sioc.ns.Space> usergroup_of = new ArrayList<orgrdfs.sioc.ns.Space>();
027
028
029
030        // From class this
031
032
033        @Override
034        public List<orgrdfs.sioc.ns.UserAccount> getHas_member()
035        {
036                return this.has_member;
037        }
038        
039        @Override
040        public void setHas_member( final List<orgrdfs.sioc.ns.UserAccount> has_member )
041        {
042                this.has_member = has_member;
043        }
044
045
046        // From class this
047
048
049        @Override
050        public List<orgrdfs.sioc.ns.Space> getUsergroup_of()
051        {
052                return this.usergroup_of;
053        }
054        
055        @Override
056        public void setUsergroup_of( final List<orgrdfs.sioc.ns.Space> usergroup_of )
057        {
058                this.usergroup_of = usergroup_of;
059        }
060
061}
062