Ejemplo n.º 1
0
 public virtual bool IsAllowedRemove(Net.Vpc.Upa.Entity entity, object id) /* throws Net.Vpc.Upa.Exceptions.UPAException */
 {
     Net.Vpc.Upa.EntitySecurityManager s = entity.GetEntitySecurityManager();
     if (s != null)
     {
         return(s.IsAllowedRemove(entity, id, null));
     }
     return(IsAllowedKey(entity, "Delete"));
 }
Ejemplo n.º 2
0
 public virtual bool IsAllowedClone(Net.Vpc.Upa.Entity entity, object instance, object newId) /* throws Net.Vpc.Upa.Exceptions.UPAException */
 {
     Net.Vpc.Upa.EntitySecurityManager s = entity.GetEntitySecurityManager();
     if (s != null)
     {
         return(s.IsAllowedClone(entity, instance, newId));
     }
     return(IsAllowedKey(entity, "Clone"));
 }
Ejemplo n.º 3
0
 public virtual bool IsAllowedUpdate(Net.Vpc.Upa.Entity entity, object id, object @value) /* throws Net.Vpc.Upa.Exceptions.UPAException */
 {
     Net.Vpc.Upa.EntitySecurityManager s = entity.GetEntitySecurityManager();
     if (s != null)
     {
         return(s.IsAllowedUpdate(entity, id, @value));
     }
     return(IsAllowedKey(entity, "Update"));
 }
Ejemplo n.º 4
0
 public virtual bool IsAllowedPersist(Net.Vpc.Upa.Entity entity, object @object) /* throws Net.Vpc.Upa.Exceptions.UPAException */
 {
     Net.Vpc.Upa.EntitySecurityManager s = entity.GetEntitySecurityManager();
     if (s != null)
     {
         return(s.IsAllowedPersist(entity, @object));
     }
     return(IsAllowedKey(entity, "Persist"));
 }
Ejemplo n.º 5
0
        /**
         *
         * @param entity
         * @return
         * @throws UPAException
         */

        public virtual Net.Vpc.Upa.Expressions.Expression GetEntityFilter(Net.Vpc.Upa.Entity entity) /* throws Net.Vpc.Upa.Exceptions.UPAException */
        {
            Net.Vpc.Upa.EntitySecurityManager s = entity.GetEntitySecurityManager();
            if (s != null)
            {
                return(s.GetEntityFilter(entity));
            }
            return(null);
        }
Ejemplo n.º 6
0
 public virtual bool IsAllowedNavigate(Net.Vpc.Upa.Entity entity, string navigationMode) /* throws Net.Vpc.Upa.Exceptions.UPAException */
 {
     Net.Vpc.Upa.EntitySecurityManager s = entity.GetEntitySecurityManager();
     if (s != null)
     {
         return(s.IsAllowedNavigate(entity, navigationMode));
     }
     return(IsAllowedKey(entity, "Navigate"));
 }
Ejemplo n.º 7
0
 public virtual bool IsAllowedLoad(Net.Vpc.Upa.Entity entity) /* throws Net.Vpc.Upa.Exceptions.UPAException */
 {
     Net.Vpc.Upa.EntitySecurityManager s = entity.GetEntitySecurityManager();
     if (s != null)
     {
         return(s.IsAllowedLoad(entity));
     }
     return(IsAllowedKey(entity, "Load"));
 }