001: /*
002: * NEMESIS-FORUM.
003: * Copyright (C) 2002 David Laurent(lithium2@free.fr). All rights reserved.
004: *
005: * Copyright (c) 2000 The Apache Software Foundation. All rights reserved.
006: *
007: * Copyright (C) 2001 Yasna.com. All rights reserved.
008: *
009: * Copyright (C) 2000 CoolServlets.com. All rights reserved.
010: *
011: * NEMESIS-FORUM. is free software; you can redistribute it and/or
012: * modify it under the terms of the Apache Software License, Version 1.1,
013: * or (at your option) any later version.
014: *
015: * NEMESIS-FORUM core framework, NEMESIS-FORUM backoffice, NEMESIS-FORUM frontoffice
016: * application are parts of NEMESIS-FORUM and are distributed under
017: * same terms of licence.
018: *
019: *
020: * NEMESIS-FORUM includes software developed by the Apache Software Foundation (http://www.apache.org/)
021: * and software developed by CoolServlets.com (http://www.coolservlets.com).
022: * and software developed by Yasna.com (http://www.yasna.com).
023: *
024: */
025:
026: package org.nemesis.forum.config;
027:
028: /**
029: * Contains constant values representing various objects.
030: */
031: public class Constants {
032:
033: /**
034: * Constant to represent threads in a forum.
035: */
036: public static final int THREAD = 0;
037:
038: /**
039: * Constant to represent messages in a forum.
040: */
041: public static final int MESSAGE = 1;
042:
043: /**
044: * Constant to represent the subject of a message.
045: */
046: public static final int MESSAGE_SUBJECT = 3;
047:
048: /**
049: * Constant to represent the body of a message.
050: */
051: public static final int MESSAGE_BODY = 4;
052:
053: /**
054: * Permission to read object.
055: */
056: public static final int READ = 0;
057:
058: /**
059: * Permission to administer the entire sytem.
060: */
061: public static final int SYSTEM_ADMIN = 1;
062:
063: /**
064: * Permission to administer a particular forum.
065: */
066: public static final int FORUM_ADMIN = 2;
067:
068: /**
069: * Permission to administer a particular user.
070: */
071: public static final int USER_ADMIN = 3;
072:
073: /**
074: * Permission to administer a particular group.
075: */
076: public static final int GROUP_ADMIN = 4;
077:
078: /**
079: * Permission to take on a moderator role.
080: */
081: public static final int MODERATOR = 5;
082:
083: /**
084: * Permission to create a new thread.
085: */
086: public static final int CREATE_THREAD = 6;
087:
088: /**
089: * Permission to create a new message.
090: */
091: public static final int CREATE_MESSAGE = 7;
092:
093: /**
094: * no forum moderation.
095: */
096: public static final int MODERATION_NONE = 0;
097: /**
098: *moderation to create thread.
099: */
100: public static final int MODERATION_THREAD = 1;
101: /**
102: *creat message moderation.
103: */
104: public static final int MODERATION_MESSAGE = 2;
105:
106: }
|