public class ElementSecurity extends ItemWrapper
Modifier and Type | Class and Description |
---|---|
class |
ElementSecurity.ElementActionGroup |
class |
ElementSecurity.ESComparator |
ItemWrapper.FieldEmptyException
Modifier and Type | Field and Description |
---|---|
static Hashtable |
elementDistinctIds |
static Hashtable<String,ElementSecurity> |
elements |
static String |
SCHEMA_ELEMENT_NAME |
allowXMLDBAccess
Constructor and Description |
---|
ElementSecurity() |
ElementSecurity(ItemI i) |
activate, canActivate, canCreate, canDelete, canEdit, canRead, extend, getBooleanProperty, getBooleanProperty, getBooleanProperty, getChildItemCollection, getChildItemCollection, getChildItems, getChildItems, getChildItems, getChildItems, getCurrentDBVersion, getCurrentDBVersion, getDateProperty, getDBName, getDoubleProperty, getFloatProperty, getInsertDate, getInsertUser, getIntegerProperty, getItem, getLongCreateTime, getMetaCreatedBy, getParent, getPossibleValues, getProperty, getProps, getStringProperty, getUser, getXSIType, hasProperty, isActive, lock, needsActivation, output, output, postSave, preSave, quarantine, readExternal, save, save, setItem, setParent, setProperty, toHTML, toJoinedXML, toXML_BOS, toXML, toXML, toXML, toXML, toXML, toXML, validate, writeExternal
public static final String SCHEMA_ELEMENT_NAME
public static Hashtable<String,ElementSecurity> elements
public static Hashtable elementDistinctIds
public ElementSecurity()
public ElementSecurity(ItemI i)
i
- public static Hashtable<String,ElementSecurity> GetElementSecurities() throws Exception
Exception
public String getSchemaElementName()
getSchemaElementName
in class ItemWrapper
public static void refresh()
public static ElementSecurity GetElementSecurity(String elementName) throws Exception
elementName
- Exception
public static ArrayList<ElementSecurity> GetInSecureElements() throws Exception
Exception
public static boolean HasDefinedElementSecurity(String elementName)
elementName
- public static ArrayList<ElementSecurity> GetSecureElements() throws Exception
Exception
public static ArrayList<String> GetSecurityElements() throws Exception
Exception
public static ArrayList<ElementSecurity> GetQuarantinedElements() throws Exception
Exception
public static ArrayList<ElementSecurity> GetPreLoadElements() throws Exception
Exception
public static boolean IsSecureElement(String elementName) throws Exception
elementName
- Exception
public static boolean IsSecureElement(String elementName, String action) throws Exception
elementName
- Exception
public static boolean IsInSecureElement(String elementName) throws Exception
elementName
- Exception
public static ArrayList<ElementSecurity> GetBrowseableElements() throws Exception
Exception
public static boolean IsBrowseableElement(String elementName) throws Exception
elementName
- Exception
public static boolean IsSearchable(String elementName) throws Exception
elementName
- Exception
public static boolean HasPrimarySecurityFields(String elementName) throws Exception
elementName
- Exception
public String getElementName() throws XFTInitException, ElementNotFoundException, FieldNotFoundException
XFTInitException
ElementNotFoundException
FieldNotFoundException
public Integer getSequence() throws XFTInitException, ElementNotFoundException, FieldNotFoundException
XFTInitException
ElementNotFoundException
FieldNotFoundException
public SchemaElement getSchemaElement() throws Exception
Exception
public boolean isSecure()
public boolean isSecure(String action)
public boolean isSecureRead()
public boolean isSecureEdit()
public boolean isSecureCreate()
public boolean isSecureDelete()
public boolean isBrowseable()
public boolean isSearchable()
public boolean isSecurePassword()
public boolean isSecureIP()
public void addPrimarySecurityField(String s)
s
- public ArrayList<ElementAction> getElementActions()
public ArrayList<ElementSecurity.ElementActionGroup> getElementActionsByGroupings()
public void addElementAction(ElementAction ea)
ea
- public ArrayList<XdatElementSecurityListingAction> getListingActions()
public String getListingActionsJSON()
public void addListingAction(XdatElementSecurityListingAction ea)
ea
- public List<PermissionItem> getPermissionItemsForTag(String tag) throws XFTInitException, ElementNotFoundException, FieldNotFoundException
public List<PermissionItem> getPermissionItems(String login) throws Exception
Exception
public boolean hasDisplayValueOption() throws Exception
Exception
public static Hashtable GetDistinctIdValuesFor(String elementName, String fieldName, String login) throws Exception
elementName
- fieldName
- Exception
public static SecurityValues GetSecurityValues(ItemI item) throws InvalidItemException, Exception
item
- Exception
InvalidItemException
public SecurityValues getSecurityValues(ItemI item) throws FieldNotFoundException, InvalidItemException
item
- FieldNotFoundException
InvalidItemException
public static ArrayList GetAbsentElements()
public static ArrayList GetElementNames() throws Exception
Exception
public static ArrayList GetNonXDATElementNames() throws Exception
Exception
public String getSecurityFields()
public static XDATUser GetGuestUser()
public boolean hasField(String field)
public void initPSF(String field, EventMetaI meta)
public void initExistingPermissions(String userName)
public Comparator getComparator()
public Boolean getAccessible()
public String getUsage()
public void setUsage(String v)
v
- Value to Set.public boolean matchesUsageEntry(String id)
public String getSingular()
public void setSingular(String v)
v
- Value to Set.public String getPlural()
public void setPlural(String v)
v
- Value to Set.public String getCode()
public void setCode(String v)
v
- Value to Set.public String getCategory()
public void setCategory(String v)
v
- Value to Set.public String getSingularDescription()
public String getPluralDescription()
Copyright © 2015 Neuroinformatics Research Group. All rights reserved.