001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */
017: package org.apache.jetspeed.om.common;
018:
019: import java.util.List;
020:
021: /**
022: * <p>
023: * SecurityConstraint
024: * </p>
025: * <p>
026: * Used by SecureResource to specify access constraints for
027: * security purposes.
028: *
029: * </p>
030: * @author <a href="mailto:rwatler@finali.com">Randy Watler</a>
031: * @version $Id: SecurityConstraint.java 516448 2007-03-09 16:25:47Z ate $
032: *
033: */
034: public interface SecurityConstraint {
035: String WILD_CHAR = "*";
036:
037: /**
038: * <p>
039: * getUsers
040: * </p>
041: *
042: * @return constraint users list as List of String
043: */
044: List getUsers();
045:
046: /**
047: * <p>
048: * setUsers
049: * </p>
050: *
051: * @param users constraint users list as List of String
052: */
053: void setUsers(List users);
054:
055: /**
056: * <p>
057: * getRoles
058: * </p>
059: *
060: * @return constraint roles list as List of String
061: */
062: List getRoles();
063:
064: /**
065: * <p>
066: * setRoles
067: * </p>
068: *
069: * @param roles constraint roles list as List of String
070: */
071: void setRoles(List roles);
072:
073: /**
074: * <p>
075: * getGroups
076: * </p>
077: *
078: * @return constraint groups list as List of String
079: */
080: List getGroups();
081:
082: /**
083: * <p>
084: * setGroups
085: * </p>
086: *
087: * @param groups constraint groups list as List of String
088: */
089: void setGroups(List groups);
090:
091: /**
092: * <p>
093: * getPermissions
094: * </p>
095: *
096: * @return constraint permissions list as List of String
097: */
098: List getPermissions();
099:
100: /**
101: * <p>
102: * setPermissions
103: * </p>
104: *
105: * @param permissions constraint permissions list as List of String
106: */
107: void setPermissions(List permissions);
108: }
|