public class RuleElUtils extends Object
Constructor and Description |
---|
RuleElUtils() |
Modifier and Type | Method and Description |
---|---|
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,
double daysInFuture,
boolean addIfNotThere)
assign a disabled date in the future by X days
|
static boolean |
assignPermissionDisabledDaysForAttributeDefId(String attributeDefId,
String memberId,
double 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
|
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 disabledpublic 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, double daysInFuture)
attributeDefId
- memberId
- daysInFuture
- public static boolean assignMembershipDisabledDaysForGroupId(String groupId, String memberId, double 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
- Copyright © 2016 Internet2. All rights reserved.