|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.internet2.middleware.grouper.rules.RuleElUtils
public class RuleElUtils
methods available to EL of rules through the alias: ruleElUtils. Note the methods here are static, and generally should input/output primitives or strings for security reasons
Constructor Summary | |
---|---|
RuleElUtils()
|
Method Summary | |
---|---|
static boolean |
addMemberToGroupId(String groupId,
String memberId)
remove a member of a group |
static boolean |
addMemberToGroupName(String groupName,
String memberId)
remove a member of a group |
static boolean |
assignAttributeDefPrivilege(String attributeDefId,
String sourceId,
String subjectId,
String subjectIdentifier,
String privilegeNamesCommaSeparated)
assign attributeDef privileges |
static boolean |
assignGroupPrivilege(String groupId,
String sourceId,
String subjectId,
String subjectIdentifier,
String privilegeNamesCommaSeparated)
assign group privileges |
static boolean |
assignMembershipDisabledDaysForGroupId(String groupId,
String memberId,
int daysInFuture,
boolean addIfNotThere)
assign a disabled date in the future by X days |
static boolean |
assignPermissionDisabledDaysForAttributeDefId(String attributeDefId,
String memberId,
int daysInFuture)
assign a disabled date in the future by X days |
static boolean |
assignStemPrivilege(String stemId,
String sourceId,
String subjectId,
String subjectIdentifier,
String privilegeNamesCommaSeparated)
assign stem privileges |
static String |
formatDate(Date date,
String format)
format a date, default to yyy/MM/dd. |
static boolean |
hasMembershipByGroupId(String groupId,
String memberId,
String membershipType,
String enabled)
|
static boolean |
removeMemberFromGroupId(String groupId,
String memberId)
remove a member of a group |
static boolean |
removeMemberFromGroupName(String groupName,
String memberId)
remove a member of a group |
static RuleVeto |
veto(String reasonKey,
String reason)
veto this for some reason |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RuleElUtils()
Method Detail |
---|
public static boolean hasMembershipByGroupId(String groupId, String memberId, String membershipType, String enabled)
groupId
- memberId
- membershipType
- @see MembershipType
, null for allenabled
- null for all, T for only enabled, F for only disabled
public static boolean removeMemberFromGroupId(String groupId, String memberId)
groupId
- memberId
-
public static boolean removeMemberFromGroupName(String groupName, String memberId)
groupName
- memberId
-
public static boolean assignGroupPrivilege(String groupId, String sourceId, String subjectId, String subjectIdentifier, String privilegeNamesCommaSeparated)
groupId
- sourceId
- subjectId
- subjectIdentifier
- privilegeNamesCommaSeparated
-
public static boolean assignPermissionDisabledDaysForAttributeDefId(String attributeDefId, String memberId, int daysInFuture)
attributeDefId
- memberId
- daysInFuture
-
public static boolean assignMembershipDisabledDaysForGroupId(String groupId, String memberId, int daysInFuture, boolean addIfNotThere)
groupId
- memberId
- daysInFuture
- addIfNotThere
-
public static RuleVeto veto(String reasonKey, String reason)
reasonKey
- reason
-
public static boolean assignStemPrivilege(String stemId, String sourceId, String subjectId, String subjectIdentifier, String privilegeNamesCommaSeparated)
stemId
- sourceId
- subjectId
- subjectIdentifier
- privilegeNamesCommaSeparated
-
public static boolean assignAttributeDefPrivilege(String attributeDefId, String sourceId, String subjectId, String subjectIdentifier, String privilegeNamesCommaSeparated)
attributeDefId
- sourceId
- subjectId
- subjectIdentifier
- privilegeNamesCommaSeparated
-
public static String formatDate(Date date, String format)
date
- format
-
SimpleDateFormat
public static boolean addMemberToGroupId(String groupId, String memberId)
groupId
- memberId
-
public static boolean addMemberToGroupName(String groupName, String memberId)
groupName
- memberId
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |