Methods
Modifier and Type |
Method and Description |
void |
addGroup(String id) |
void |
addRole(XDATUser authenticatedUser,
String dRole)
Method used to add a user to a role.
|
void |
addRootPermission(String elementName,
PermissionCriteria pc) |
boolean |
can(ItemI item,
String action) |
boolean |
can(String elementName,
String xmlPath,
String action) |
boolean |
canAction(String xmlPath,
Object value,
String action) |
boolean |
canActivate(ItemI item) |
boolean |
canActivateBySelectGrandName(SchemaElementI root,
SecurityValues values) |
boolean |
canActivateByXMLPath(SchemaElementI root,
SecurityValues values) |
boolean |
canCreate(ItemI item) |
boolean |
canCreate(String xmlPath,
Object value) |
boolean |
canCreateBySelectGrandName(SchemaElementI root,
SecurityValues values) |
boolean |
canCreateByXMLPath(SchemaElementI root,
SecurityValues values) |
boolean |
canCreateElement(String elementName,
String xmlPath) |
boolean |
canDelete(ItemI item) |
boolean |
canDeleteBySelectGrandName(SchemaElementI root,
SecurityValues values) |
boolean |
canDeleteByXMLPath(SchemaElementI root,
SecurityValues values) |
boolean |
canEdit(ItemI item) |
boolean |
canEdit(String xmlPath,
Object value) |
boolean |
canEditBySelectGrandName(SchemaElementI root,
SecurityValues values) |
boolean |
canEditByXMLPath(SchemaElementI root,
SecurityValues values) |
boolean |
canQuery(String elementName) |
boolean |
canRead(ItemI item) |
boolean |
canRead(String xmlPath,
Object value) |
boolean |
canReadBySelectGrandName(SchemaElementI root,
SecurityValues values) |
boolean |
canReadByXMLPath(SchemaElementI root,
SecurityValues values) |
boolean |
canReadByXMLPath(String elementName,
SecurityValues values) |
boolean |
canReadStoredSearch(String ss_id) |
String |
canStoreItem(ItemI item,
boolean allowDataDeletion) |
boolean |
checkFeature(BaseElement item,
String feature)
Returns true if the user is part of any groups with the matching tag and feature
|
boolean |
checkFeature(Collection<String> tags,
String feature)
Returns true if the user is part of any groups with the matching tag and feature
|
boolean |
checkFeature(String tag,
String feature)
Returns true if the user is a part of a group with the matching tag and feature
|
boolean |
checkFeatureForAnyTag(String feature) |
boolean |
checkRole(String s) |
boolean |
checkSiteRole(String role) |
void |
clearBrowseableElementDisplays() |
void |
clearLocalCache() |
boolean |
containsGroup(String groupID) |
static String |
createNewSalt() |
void |
deleteRole(XDATUser authenticatedUser,
String dRole)
Removes the user from the specified role.
|
List<String> |
getAccessibleProjects()
Code copied here from
|
ElementAccessManager |
getAccessManager(String s) |
Hashtable<String,ElementAccessManager> |
getAccessManagers() |
ArrayList |
getAllItems(String elementName,
boolean preLoad) |
ArrayList |
getAllItems(String elementName,
boolean preLoad,
String sortBy) |
ArrayList |
getAllItems(String elementName,
boolean preLoad,
String sortBy,
String sortOrder) |
static Collection |
getAllLogins() |
List<Object> |
getAllowedValues(SchemaElement root,
String xmlPath,
String action) |
List<Object> |
getAllowedValues(String elementName,
String xmlPath,
String action) |
ArrayList<ElementDisplay> |
getBrowseableCreateableElementDisplays() |
ElementDisplay |
getBrowseableElementDisplay(String elementName) |
ArrayList<ElementDisplay> |
getBrowseableElementDisplays() |
File |
getCachedFile(String relativePath) |
ArrayList<ItemI> |
getCachedItems(String elementName,
String security_permission,
boolean preLoad) |
ArrayList<ItemI> |
getCachedItemsByFieldValue(String elementName,
String security_permission,
boolean preLoad,
String field,
Object value) |
Hashtable<Object,Object> |
getCachedItemValuesHash(String elementName,
String security_permission,
boolean preLoad,
String idField,
String valueField) |
ArrayList<ElementDisplay> |
getCreateableElementDisplays()
ArrayList of ElementDisplays which this user could edit
|
CriteriaCollection |
getCriteriaForBackendRead(GenericWrapperElement rootElement) |
CriteriaCollection |
getCriteriaForBackendRead(SchemaElementI rootElement) |
CriteriaCollection |
getCriteriaForDisplayRead(SchemaElement rootElement) |
CriteriaCollection |
getCriteriaForDisplayRead(SchemaElementI rootElement) |
DisplayManager |
getDisplayManager() |
List<ElementDisplay> |
getEditableElementDisplays()
ArrayList of ElementDisplays which this user could edit
|
ElementSecurity |
getElementSecurity(String name) |
String |
getEmail() |
Collection<String> |
getFeaturesForUserByTag(String tag) |
Collection<String> |
getFeaturesForUserByTags(Collection<String> tags) |
String |
getFirstname() |
UserGroup |
getGroup(String id) |
UserGroup |
getGroupByTag(String tag) |
Hashtable<String,UserGroup> |
getGroups() |
Map<String,ElementAccessManager> |
getGuestManagers() |
Integer |
getID() |
Date |
getLastLogin() |
String |
getLastname() |
ArrayList |
getLayeredStoredSearches() |
List<List<Object>> |
getPermissionItems()
ArrayList: 0:elementName 1:ArrayList of PermissionItems
|
List<Object> |
getPermissionItems(String elementName)
ArrayList: 0:elementName 1:ArrayList of PermissionItems
|
Date |
getPreviousLogin() |
XFTTable |
getQueryResults(String query) |
List<List> |
getQueryResults(String xmlPaths,
String rootElement)
returns an ArrayList of ArrayLists
xmlPaths: comma-delimited list of xmlPaths to return
|
ArrayList<List> |
getQueryResultsAsArrayList(String query) |
Hashtable |
getReadableCounts() |
List<ElementDisplay> |
getReadableElementDisplays()
ArrayList of ElementDisplays Which this user can read
|
ArrayList |
getRecentItems(String elementName,
int limit) |
List<String> |
getRoleNames() |
boolean |
getRootPermission(String elementName,
String fieldName,
Object value,
String action) |
PermissionCriteria |
getRootPermissionObject(String elementName,
String fieldName,
Object value) |
DisplaySearch |
getSearch(String elementName,
String display) |
ArrayList<ElementDisplay> |
getSearchableElementDisplays() |
ArrayList<ElementDisplay> |
getSearchableElementDisplays(Comparator comp) |
ArrayList<ElementDisplay> |
getSearchableElementDisplaysByDesc() |
ArrayList<ElementDisplay> |
getSearchableElementDisplaysByPluralDesc() |
String |
getServer() |
String |
getSQLSelect(SchemaElement root) |
DisplaySearch |
getStoredSearch(String id) |
ArrayList<XdatStoredSearch> |
getStoredSearches() |
XdatStoredSearch |
getStoredSearchItem(String id) |
Hashtable |
getTotalCounts() |
List<ElementDisplay> |
getUnSecuredElements()
ArrayList of ElementDisplays
|
static Integer |
getUserid(String username) |
String |
getUsername() |
static String |
getUsername(Integer xdat_user_id) |
static String |
getUsername(Object xdat_user_id) |
boolean |
hasAccessTo(String projectId) |
boolean |
hasPermissions() |
void |
init() |
void |
initGroups() |
boolean |
isEnabled() |
boolean |
isExtended() |
boolean |
isFavorite(String elementName,
String id) |
boolean |
isGuest() |
boolean |
isLoggedIn() |
boolean |
isMember(String tag) |
boolean |
isOwner(String tag) |
boolean |
isSiteAdmin() |
boolean |
isVerified() |
boolean |
login(String password) |
static void |
ModifyUser(XDATUser authenticatedUser,
ItemI found,
EventDetails ci) |
static void |
ModifyUser(XDATUser authenticatedUser,
ItemI found,
EventMetaI ci) |
String |
outputBundleHTMLMenu() |
void |
refreshGroup(String id) |
void |
replaceGroup(String id,
UserGroup g) |
void |
replacePreLoadedSearch(XdatStoredSearch i) |
ItemI |
secureItem(ItemI item) |
void |
setExtended(boolean b) |
void |
setLoggedIn(boolean b) |
void |
setPermissions(XDATUser effected,
XDATUser authenticated,
String elementName,
String psf,
String value,
Boolean create,
Boolean read,
Boolean delete,
Boolean edit,
Boolean activate,
boolean activateChanges,
EventMetaI ci) |